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

/dns/zones/{name}

First published 3 Oct 20260.1.0Unchanged since publication

Get a DNS zone and its records

Who may call it
AdministratorResellerCustomer
Token scope, any of
dnsreadall
Answers200 OK

Returns the named zone regardless of ownership. The response includes its kind, automatic status, serial, ownership details where applicable, the configured and public nameservers, and whether the zone is delegated to this server. An unknown zone name returns 404.

The records array includes each record's origin. The panel_rows array lists generated apex NS and glue records. The taken array lists record sets an administrator has taken over, with the values UrbeStack would provide if it managed those sets again.

Parameters

namepath ·DomainNameRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X GET "$API/dns/zones/example.com" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "zone": {
    "automatic": true,
    "delegated_here": "yes",
    "domain": "example.com",
    "kind": "domain",
    "name": "alice",
    "nameservers": [
      "text"
    ],
    "panel_rows": [
      {
        "content": "text",
        "name": "alice",
        "type": "rebuild"
      }
    ],
    "public_nameservers": [
      "text"
    ],
    "records": [
      {
        "content": "text",
        "created_at": "2026-09-09T10:15:00Z",
        "id": 1,
        "managed_key": "text",
        "name": "alice",
        "origin": "yours",
        "priority": 1,
        "server": true,
        "system": true,
        "ttl": 1,
        "type": "A"
      }
    ],
    "serial": 1,
    "taken": [
      {
        "name": "alice",
        "panel": [
          "text"
        ],
        "type": "rebuild"
      }
    ],
    "user": "alice"
  }
}

Errors

10 errors, each a status and a sentence
400Domain name required
400Domain name too long
400Invalid IPv4 address
400Invalid IPv6 address
400Invalid domain name
400Invalid port
400Invalid setting key
401Authentication required
404Setting '<key>' not found
404Zone '<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-dns-zones-name/