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

/packages

First published 3 Oct 20260.1.0Unchanged since publication

Create a hosting package

Who may call it
AdministratorResellerCustomer
Token scope, any of
usersall
Answers201 Created

The package sets resource limits and feature access for the accounts assigned to it. The response includes the created package. name is required, must be unique regardless of case, and can be up to 64 characters. It must start with an ASCII letter or digit and can contain ASCII letters, digits, spaces, dots, underscores, and hyphens. Returns 400 for a missing or invalid name.

Disk, bandwidth, and resource count limits default to 0, meaning unlimited. Numeric limits must be nonnegative integers. UrbeStack applies count limits when resources are created and preserves existing resources. cron_jobs caps the jobs in each customer's crontab and is checked whenever a job is added, including through the API. customers caps how many customers a reseller on the package may own. Disk and bandwidth limits for that reseller apply to the combined measured usage of the reseller and their customers.

shell, backups, and cron default to true, subject to each customer's settings. Set shell to false to disable shell access for every customer on the package. Set backups to false to disable on-demand backups. Nightly backups continue. Set cron to false to set aside customer crontabs and suspend their jobs until cron is enabled again.

domain_hourly_limit and account_hourly_limit set hourly mail limits per domain and per mail account. A domain's own setting takes precedence over the package setting, which takes precedence over the server setting. Omit either field or pass null or an empty string to inherit the server setting. Use 0 for no limit. botmail_keys_per_mailbox caps the number of bot keys per mailbox. The server ceiling applies if the field is omitted or set to null, an empty string, 0, or a value above the ceiling.

Administrators can set owner to a reseller's username to create a package for that reseller's customers. Omitting owner or passing null or an empty string creates an administrator-owned package. Packages created by a reseller are owned by that reseller. A reseller-owned package must have customers set to 0. For each other limit that is positive in the reseller's own package, the new limit must be positive and no higher. Any feature switch disabled in the reseller's own package must also be disabled.

Supplying plugin switches in plugins returns 400 with the message Invalid arguments. Use PATCH /packages/{name} to set plugin switches.

As a command

Run as root on the server

Request body

JSON ·PackageCreate· 17 fields
namePackageNameRequired
A package name can contain up to 64 characters drawn from letters, digits, spaces, dots, underscores and dashes.
account_hourly_limitinteger, 0 or more or null
Package limit on messages per hour per mail account, between the domain's default for mail accounts and the server setting in the configuration hierarchy.
backupsboolean
Whether the package allows on-demand backups. The user's nightly backup setting controls whether the server's nightly run backs up that user.
bandwidth_mbinteger, 0 or more
Monthly limit in MB for web, mail and FTP traffic. A value of 0 means unlimited.
botmailboolean
Whether the package allows BotMail access to mailboxes. Turning this off prevents accounts on the package from creating bot keys and pauses their existing bot keys.
botmail_keys_per_mailboxinteger, 0 or more or null
Maximum number of BotMail keys per mailbox, subject to the server ceiling in mail.botmail_keys_per_mailbox and, for a reseller's packages, the limit on the reseller's own package. A value of null leaves the package limit unset so the server ceiling applies, and 0 or a value above the ceiling is capped at the ceiling.
cronboolean
Whether the package allows cron jobs. Turning this off sets aside all customer crontabs on the package and stops their jobs until it is turned on again.
cron_jobsinteger, 0 or more
Maximum number of jobs in the customer's crontab, with 0 meaning unlimited. The web interface and API enforce the limit when adding jobs, and customers with shell access can exceed it by editing their crontab directly.
customersinteger, 0 or more
Maximum number of customers a reseller on this package may own, with 0 meaning unlimited. Only administrator packages have this field, and their disk and bandwidth limits for resellers apply to the combined measured usage of the reseller and their customers.
databasesinteger, 0 or more
disk_mbinteger, 0 or more
Disk limit in MB for the entire home directory, including web content, mail and the customer's own backups, plus the customer's databases. A value of 0 means unlimited.
domain_hourly_limitinteger, 0 or more or null
Package limit on messages per hour per sending domain, between the domain's own limit and the server setting in the configuration hierarchy. A value of null leaves the package limit unset, and 0 means unlimited.
domainsinteger, 0 or more
Maximum number of domains, including subdomains, with 0 meaning unlimited. UrbeStack enforces the limit only when a domain or subdomain is created.
ftp_accountsinteger, 0 or more
mail_accountsinteger, 0 or more
Reseller for whom the package is created. An administrator can specify a reseller, and a reseller's packages belong to that reseller.
shellboolean
Whether the package permits shell access. When false, it disables shell access for every customer on the package regardless of their individual shell access setting.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X POST "$API/packages" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "account_hourly_limit": 1,
    "backups": true,
    "bandwidth_mb": 1,
    "botmail": true,
    "botmail_keys_per_mailbox": 1,
    "cron": true,
    "cron_jobs": 1,
    "customers": 1,
    "databases": 1,
    "disk_mb": 1,
    "domain_hourly_limit": 1,
    "domains": 1,
    "ftp_accounts": 1,
    "mail_accounts": 1,
    "name": "alice",
    "owner": "alice",
    "shell": true
  }'
Response · 201 Created
{
  "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

6 errors, each a status and a sentence
400--name is required
400Invalid <what>: expected a non-negative integer
400Invalid package name: letters, digits, spaces, dots, underscores and dashes, up to 64, starting with a letter or digit
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400Username '<value>' is reserved
401Authentication required
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/post-packages/