API operation · domains group
GET
/domains/{name}
First published 3 Oct 2026
0.1.0Unchanged since publicationGet a domain
Who may call it
AdministratorResellerCustomer
Token scope, any of
domainsreadallAnswers200 OK
The response contains the domain in domain, including its effective PHP configuration in php_effective, its aliases and redirects, and the names of its direct subdomains in subdomains.
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.
Parameters
namepath ·DomainNameRequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X GET "$API/domains/example.com" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"domain": {
"bandwidth_cut": true,
"created_at": "2026-09-09T10:15:00Z",
"directory_listing": true,
"docroot": "/home/alice/files/web/example.com/public_html",
"error_pages": true,
"id": 1,
"move_state": "text",
"name": "example.com",
"package": "basic",
"parent": "example.com",
"php_effective": {},
"php_settings": {},
"php_version": "8.4",
"ssl": {},
"stats_enabled": true,
"status": "active",
"template": "default",
"user": "alice",
"user_id": 2,
"wildcard": true,
"www_alias": true,
"www_redirect": "none"
}
}Errors
6 errors, each a status and a sentence400Domain name required400Domain name too long400Invalid domain name401Authentication required403Insufficient privileges404Domain '<name>' not foundNo error of this operation matches.
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/get-domains-name/