# GET /users/{name}/limits

First published 14 Oct 2026 (release 0.2.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the users group.

Get a customer's resource counts and package limits

- Who may call it: administrator, reseller, customer
- Token scope, any of: users, read, all
- Answers: 200 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

- [urbestack-cron-list](https://urbestack.com/docs/commands/urbestack-cron-list.md): Lists a customer's cron jobs from crontab -u NAME -l.

## Parameters

- `name` (path, Username, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
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

- 400: --user is required
- 400: <name> is an administrator: administrators have no package
- 400: Invalid setting key
- 400: Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
- 400: Username '<value>' is reserved
- 401: Authentication required
- 404: Setting '<key>' not found
- 404: User '<user>' not found
