API operation · users group
GET
/users/{name}/disk
First published 3 Oct 2026
0.1.0Unchanged since publicationGet a customer's disk usage and package limit
Who may call it
AdministratorResellerCustomer
Token scope, any of
usersreadallAnswers200 OK
The response includes home directory usage, database usage, and the package's disk limit. It identifies the filesystem that contains the home directories and reports whether the kernel enforces disk quotas on it.
UrbeStack reads home directory usage from the kernel when disk quotas are enabled and uses the last nightly measurement otherwise. Database usage always comes from the last nightly measurement.
Customers can request their own usage, resellers can request usage for their customers, and administrators can request usage for any customer. Requests for an administrator's disk usage are rejected because administrators have no home directory.
As a command
Run as root on the serverParameters
namepath ·UsernameRequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X GET "$API/users/alice/disk" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"quota": {
"checked_at": "text",
"fstype": "text",
"on": 1,
"pending_reboot": 1,
"target": "https://example.com/new",
"unknown": 1
},
"usage": {
"bytes": 1,
"database_bytes": 1,
"home_bytes": 1,
"limit_bytes": 1,
"measured_at": "text",
"name": "alice",
"over": 1,
"package": "basic",
"percent": 1,
"quota": "kernel"
}
}Errors
5 errors, each a status and a sentence400<user.name> is an administrator: administrators have no home400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Username '<value>' is reserved401Authentication required404User '<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-users-name-disk/