/users
0.1.0Unchanged since publicationList user accounts
usersreadallAdministrators can list every account. Resellers can list their own account and their customers' accounts. If you omit both page and per_page, users contains all matching accounts. An invalid month or sort, or a per_page outside 1 to 1000, returns 400.
Each account includes bandwidth_bytes for the selected month and the package limits disk_limit_bytes and bandwidth_limit_bytes. Both limits are in bytes. A limit of 0 means unlimited, and null means the account has no package. Each reseller entry includes its customer count in customers.
For customers and resellers, home gives the path configured through home_base and uid gives the Linux user ID. uid is null when the Linux account is missing. Administrators have null for both fields.
The counts object applies every filter except status. near_threshold is the first warning threshold for disk and bandwidth usage. Both status=near and counts.near use that threshold.
Parameters
qquery ·string, up to 200 charactersstatusquery ·string, one of active, suspended, moving, nearrolequery ·string, one of admin, reseller, userownerquery ·string, matching ^(?:[a-z][a-z0-9_]{1,31}|-)$sortquery ·string, one of name, disk, bandwidthpagequery ·integer, 1 or moreper_pagequery ·integer, 1 to 1000monthquery ·string, matching ^\d{4}-(?:0[1-9]|1[0-2])$Example
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/users?q=text&status=active&role=admin&owner=text&sort=name&page=1&per_page=1&month=text" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"all": {
"admin": 1,
"owned": 1,
"reseller": 1,
"total": 1,
"user": 1
},
"counts": {
"active": 1,
"admin": 1,
"moving": 1,
"near": 1,
"owned": 1,
"reseller": 1,
"suspended": 1,
"user": 1
},
"month": "text",
"more": true,
"near_threshold": 1,
"page": 1,
"pages": 1,
"per_page": 1,
"total": 1,
"users": [
{
"backups": true,
"bandwidth_bytes": 1,
"bandwidth_cut": true,
"bandwidth_cut_at": "text",
"bandwidth_limit_bytes": 1,
"created_at": "2026-09-09T10:15:00Z",
"customers": 1,
"disk_limit_bytes": 1,
"email": "alice@example.com",
"home": "text",
"id": 1,
"move_state": "leaving",
"name": "alice",
"owner": "text",
"owner_id": 1,
"package": "basic",
"package_backups": true,
"package_id": 1,
"package_shell": true,
"role": "user",
"second_factor": true,
"shell": true,
"status": "active",
"system_password": true,
"uid": 1
}
]
}Errors
5 errors, each a status and a sentence400A month is written YYYY-MM400A sort is name, disk or bandwidth400Invalid <what>: expected a non-negative integer400per_page is a number from 1 to 1000401Authentication requiredurbestack.com/docs/api/get-users/