Get your free beta license ↗
API operation · users group
GET

/users/{name}/limits

First published 14 Oct 20260.2.0Unchanged since publication

Get a customer's resource counts and package limits

Who may call it
AdministratorResellerCustomer
Token scope, any of
usersreadall
Answers200 OK

The response includes the customer name, the package name, and used and limit values for domains, mail accounts, databases, FTP accounts, and cron jobs. For a reseller, it also includes the number of customers they own and the corresponding limit. If UrbeStack set aside the customer's crontab because the account is suspended or the package disallows cron, the cron job count comes from the saved crontab.

The response gives disk and bandwidth limits in bytes and reports whether the package allows shell access, on-demand backups, cron, and BotMail (botmail). A limit of 0 means unlimited. For an account without a package, package is null, every limit is 0, and all four feature flags are true.

Customers can request their own limits, resellers can request limits for their customers, and administrators can request limits for any customer. Returns 400 if the requested account is an administrator.

As a command

Run as root on the server

Parameters

namepath ·UsernameRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X GET "$API/users/alice/limits" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "limits": {
    "backups": true,
    "bandwidth_limit_bytes": 1,
    "cron": true,
    "cron_jobs": {
      "limit": 1,
      "used": 1
    },
    "customers": {
      "limit": 1,
      "used": 1
    },
    "databases": {
      "limit": 1,
      "used": 1
    },
    "disk_limit_bytes": 1,
    "domains": {
      "limit": 1,
      "used": 1
    },
    "ftp_accounts": {
      "limit": 1,
      "used": 1
    },
    "mail_accounts": {
      "limit": 1,
      "used": 1
    },
    "name": "alice",
    "package": "basic",
    "shell": true
  }
}

Errors

8 errors, each a status and a sentence
400--user is required
400<name> is an administrator: administrators have no package
400Invalid setting key
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400Username '<value>' is reserved
401Authentication required
404Setting '<key>' not found
404User '<user>' not found
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.0 on 14 Oct 2026.
urbestack.com/docs/api/get-users-name-limits/