API operation · users group
GET
/packages/{name}
First published 3 Oct 2026
0.1.0Unchanged since publicationGet a hosting package
Who may call it
AdministratorResellerCustomer
Token scope, any of
usersreadallAnswers200 OK
The response includes the package and a switch for each plugin with a customer page. Each switch defaults to true. Use use=1 to compare each account's recorded usage with proposed package limits. With this option, the response gives 0 bytes for an account without a recorded disk measurement or without recorded traffic for the current month, respectively.
Administrators can retrieve any package. Resellers can retrieve administrator-owned packages and their own. Returns 400 for an invalid package name and 404 if the package is missing or belongs to another reseller and the caller is a reseller.
Parameters
namepath ·PackageNameRequiredusequery ·booleanSet to true to include each account's last nightly disk measurement and current server-local month's bandwidth usage, both in bytes, plus counts of domains, mail accounts, databases, and FTP accounts. Cron job counts are omitted.
Example
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X GET "$API/packages/alice?use=1" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"accounts": [
{
"bandwidth_bytes": 1,
"databases": 1,
"disk_bytes": 1,
"domains": 1,
"ftp_accounts": 1,
"mail_accounts": 1,
"name": "alice"
}
],
"package": {
"account_hourly_limit": 1,
"backups": true,
"bandwidth_mb": 1,
"botmail": true,
"botmail_keys_per_mailbox": 1,
"created_at": "2026-09-09T10:15:00Z",
"cron": true,
"cron_jobs": 1,
"customers": 1,
"databases": 1,
"disk_mb": 1,
"domain_hourly_limit": 1,
"domains": 1,
"ftp_accounts": 1,
"id": 1,
"mail_accounts": 1,
"name": "alice",
"owner": "text",
"owner_id": 1,
"plugins": {},
"shell": true,
"users": 1
}
}Errors
3 errors, each a status and a sentence400Invalid package name: letters, digits, spaces, dots, underscores and dashes, up to 64, starting with a letter or digit401Authentication required404Package '<name>' not foundNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/get-packages-name/