/domains/{name}/aliases
0.1.0Unchanged since publicationAdd an alias to a domain
domainsallApache serves the domain name and the alias from the same document root. UrbeStack updates DNS and mail configuration and returns the updated aliases list. The alias must be unique among domains and aliases on this server.
Only administrators can add reserved aliases, the server's own names, names above or below the server's own names, or names in the server's own DNS zones. The same restriction applies to aliases above or below another account's domain or alias, names whose zones this server holds for DNS clients, and names that overlap another server's zone in the DNS distribution network. When mail.unpointed_domains is set to refuse, the alias must already point to this server unless the caller is an administrator.
An unknown domain returns 404. Access to an existing domain is limited to administrators, the domain owner and the owner's reseller. Other callers receive 403.
As a command
Run as root on the serverParameters
namepath ·DomainNameRequirednameDomainNameRequiredExample
See the API overview for how to set $API and $TOKEN.curl -sS -X POST "$API/domains/example.com/aliases" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "example.com"
}'201 Created{
"aliases": [
{
"created_at": "2026-09-09T10:15:00Z",
"id": 1,
"name": "alice"
}
]
}Errors
13 errors, each a status and a sentence400Domain name required400Domain name too long400Invalid IPv4 address400Invalid IPv6 address400Invalid domain name400Invalid port400Invalid setting key401Authentication required403Insufficient privileges404Domain '<name>' not found404Setting '<key>' not found409'<alias>' is already a domain here409'<alias>' is already an aliasurbestack.com/docs/api/post-domains-name-aliases/