# GET /packages/{name}

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the users group.

Get a hosting package

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

- `name` (path, PackageName, required)
- `use` (query, boolean): Set 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

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

- 400: Invalid package name: letters, digits, spaces, dots, underscores and dashes, up to 64, starting with a letter or digit
- 401: Authentication required
- 404: Package '<name>' not found
