Get your free beta license ↗
API operation · domains group
GET

/domains/{name}

First published 3 Oct 20260.1.0Unchanged since publication

Get a domain

Who may call it
AdministratorResellerCustomer
Token scope, any of
domainsreadall
Answers200 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 ·DomainNameRequired

Example

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 sentence
400Domain name required
400Domain name too long
400Invalid domain name
401Authentication required
403Insufficient privileges
404Domain '<name>' not found
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/