API reference · DNS and domains / DNS
DNS
Host zones on Pantech DNS and manage their records: one at a time, in batches of up to 1,000, or as BIND zone files.
Create a zone, set its four name_servers at your domain's registrar, and add records. A zone is awaiting_delegation until the registry points at those name servers, then active. Writes answer 202 with the record pending; it is active at every location within about a minute. Reads are served at once. See Pantech DNS and records.
The DNS zone object
A zone hosted on Pantech DNS.
Fields
idstringrequirede.g.
dnsz_....namestringrequiredThe zone's name, lower-case; an internationalised name in punycode.
descriptionstringrequiredYour note about it; may be empty.
statusstringrequiredpending(being created),awaiting_delegation(setname_serversat your registrar),active(delegated to Pantech),suspended(by an operator),deleting,deleted, orfailed(seefailure_code).One of
pending,awaiting_delegation,active,suspended,deleting,deleted,failed.failure_codestring or nullrequiredWhy it failed:
delegation_timeout(not delegated within 14 days, so it was removed),provider_rejectedorprovider_limit. Null unlessfailed.One of
delegation_timeout,provider_rejected,provider_limit,null.name_serversarray of stringrequiredThe zone's own two Pantech DNS name servers, to delegate to at your registrar: set exactly these, no more and no fewer. Every zone gets its own pair, never the one the domain is delegated to when the zone is created, so a stale delegation can never serve someone else's zone. Empty while
pending.domain_idstring or nullrequiredThe Pantech domain (
dom_…) delegated to this zone; null when none is.record_countintegerrequiredRecord sets in the zone, including the managed SOA and NS.
last_checked_atstring or nullrequiredWhen its delegation was last checked (RFC 3339, UTC); null before the first check.
delegation_deadline_atstring or nullrequiredWhile the zone awaits delegation, when it is removed if the registrar still does not delegate to its name servers (14 days after it started waiting); null otherwise.
activated_atstring or nullrequiredWhen it last became
active(RFC 3339, UTC); null if it never has.suspended_reasonstring or nullrequiredWhy an operator suspended it; null unless
suspended.created_atstringrequiredWhen it was created (RFC 3339, UTC).
updated_atstringrequiredWhen it last changed (RFC 3339, UTC).
versionintegerrequiredIncreases with every change.
The DNS record object
One record set: a name and type, its TTL and every value.
Fields
idstringrequirede.g.
dnsr_....zone_idstringrequiredThe zone (
dnsz_…).namestringrequiredRelative to the zone:
@for the apex,www,*.dev,_dmarc.fqdnstringrequiredThe absolute name, without a trailing dot.
typestringrequiredSOAonly for the managed apex record.One of
A,AAAA,CNAME,MX,TXT,SRV,CAA,NS,PTR,SOA.ttlintegerrequiredSeconds resolvers may cache it, 60 to 86400.
valuesarray of stringrequiredIts values, canonical and sorted: host names with a trailing dot, TXT as quoted 255-byte strings.
allow_privatebooleanrequiredWhether private and carrier-grade NAT addresses are allowed in
values.commentstringrequiredYour note about it; may be empty. Never published in DNS.
managedbooleanrequiredTrue for the apex
SOAandNS, which Pantech manages: read-only.statusstringrequiredpendinguntil its latest change is live,active,deleting, orfailed(seefailure_code; the last values that applied keep answering).One of
pending,active,deleting,failed.failure_codestring or nullrequiredWhy its latest change failed, e.g.
invalid_change. Null unlessfailed.versionintegerrequiredIncreases with every change; send it as
If-Matchto change only what you read.created_atstringrequiredWhen it was created (RFC 3339, UTC).
updated_atstringrequiredWhen it last changed (RFC 3339, UTC).
List DNS zones
Your organization's hosted zones, newest first. Served from Pantech's own records: listing never waits on the DNS network.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Query parameters
qstringOnly zones whose name contains this text (case-insensitive), at most 255 characters. An internationalised name is matched in its punycode form.
At most 255 characters.
statusstringOnly zones in this status.
One of
pending,awaiting_delegation,active,suspended,deleting,deleted,failed.limitintegerItems per page, 1 to 100. Defaults to 50.
From 1 to 100. Defaults to
50.cursorstringThe previous page's
next_cursor, to get the next page. Leave out for the first page; keep the other parameters the same.
Response 200
Zones.dataarray of DNSZonerequiredShow 15 child fieldsHide child fields
idstringrequirede.g.
dnsz_....namestringrequiredThe zone's name, lower-case; an internationalised name in punycode.
descriptionstringrequiredYour note about it; may be empty.
statusstringrequiredpending(being created),awaiting_delegation(setname_serversat your registrar),active(delegated to Pantech),suspended(by an operator),deleting,deleted, orfailed(seefailure_code).One of
pending,awaiting_delegation,active,suspended,deleting,deleted,failed.failure_codestring or nullrequiredWhy it failed:
delegation_timeout(not delegated within 14 days, so it was removed),provider_rejectedorprovider_limit. Null unlessfailed.One of
delegation_timeout,provider_rejected,provider_limit,null.name_serversarray of stringrequiredThe zone's own two Pantech DNS name servers, to delegate to at your registrar: set exactly these, no more and no fewer. Every zone gets its own pair, never the one the domain is delegated to when the zone is created, so a stale delegation can never serve someone else's zone. Empty while
pending.domain_idstring or nullrequiredThe Pantech domain (
dom_…) delegated to this zone; null when none is.record_countintegerrequiredRecord sets in the zone, including the managed SOA and NS.
last_checked_atstring or nullrequiredWhen its delegation was last checked (RFC 3339, UTC); null before the first check.
delegation_deadline_atstring or nullrequiredWhile the zone awaits delegation, when it is removed if the registrar still does not delegate to its name servers (14 days after it started waiting); null otherwise.
activated_atstring or nullrequiredWhen it last became
active(RFC 3339, UTC); null if it never has.suspended_reasonstring or nullrequiredWhy an operator suspended it; null unless
suspended.created_atstringrequiredWhen it was created (RFC 3339, UTC).
updated_atstringrequiredWhen it last changed (RFC 3339, UTC).
versionintegerrequiredIncreases with every change.
next_cursorstring or nullrequiredPass as
cursorfor the next page; null on the last one.
Errors
- 400
INVALID_FILTER: a query parameter is not one of its allowed values.detailnames it and what it takes.INVALID_CURSOR: the cursor is not valid for this list and these filters. Start again without a cursor. - 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
DNS_UNAVAILABLE: Pantech DNS is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl "https://api.pantechdynamics.com/public/v1/dns/zones" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"data": [
{
"id": "dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "example.com",
"description": "Marketing site",
"status": "active",
"failure_code": "delegation_timeout",
"name_servers": [
"ana-ns.pantechdynamics.com",
"ayo-ns.pantechdynamics.com"
],
"domain_id": "dom_06gk3x9tq7m2v8r4y1c5d0zp8w",
"record_count": 1,
"last_checked_at": "2026-10-03T09:30:00Z",
"delegation_deadline_at": "2026-10-03T09:30:00Z",
"activated_at": "2026-10-03T09:30:00Z",
"suspended_reason": null,
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z",
"version": 1
}
],
"next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
}Price DNS zones
What hosted zones cost your organization. The first free_zones (5) live zones are free; each further zone costs monthly_per_zone_minor a month in your organization's currency, billed by the hour on your monthly invoice ("DNS zones beyond 5 free"). A zone is live from when Pantech DNS creates it (awaiting_delegation) until it is deleted; a pending, failed or deleted zone is not counted. monthly_estimate_minor is what your zones beyond the free ones cost over a 730-hour month at today's price.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Response 200
The price.free_zonesintegerrequiredLive zones each organization keeps for free: 5.
live_zonesintegerrequiredYour live zones now.
billable_zonesintegerrequiredYour live zones beyond the free ones: max(0, live_zones - free_zones).
currencystringrequiredOne of
NGN,USD.monthly_per_zone_minorintegerrequiredOne zone beyond the free ones over a 730-hour month, in the minor unit of currency (50 is $0.50).
monthly_estimate_minorintegerrequiredbillable_zones × monthly_per_zone_minor: what your zones beyond the free ones cost a month at today's price.
nominal_month_hoursintegerrequired
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
NOT_FOUND: cost quotes are not available on this platform yet. - 409
INVALID_RESOURCE_STATE: DNS zones have no price in your currency yet. Show the free allowance without a price. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
DNS_UNAVAILABLE: Pantech DNS is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl "https://api.pantechdynamics.com/public/v1/dns/zones/quote" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"free_zones": 1,
"live_zones": 1,
"billable_zones": 1,
"currency": "NGN",
"monthly_per_zone_minor": 1,
"monthly_estimate_minor": 3760000,
"nominal_month_hours": 730
}Create a DNS zone
Hosts a zone for a domain you own (or a subdomain of one) on Pantech DNS, Pantech's own name servers. The zone starts pending, gets its own pair of name servers within seconds and moves to awaiting_delegation: set exactly those two name_servers at your domain's registrar. Records you add meanwhile stay pending and are served once the zone is active. Pantech checks the delegation from the parent zone's own servers; the zone becomes active when it matches, and is removed (failed, delegation_timeout) if it never does within 14 days. A zone for a domain registered through Pantech is delegated for you.
Names are lower-cased and an internationalised name is stored in punycode (café.example becomes xn--caf-dma.example). At most 25 zones per organization, and 10 creates in 24 hours. The first 5 live zones are free; each further zone is billed by the hour on your monthly invoice (see GET /dns/zones/quote for the price in your currency). Owners and admins only.
Idempotency: a retry with the same Idempotency-Key returns the zone the first request made. The same key with a different request returns 409 IDEMPOTENCY_CONFLICT.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Body
application/jsonnamestringrequiredA domain you own or a subdomain of one, at most 253 characters. Internationalised names are accepted.
descriptionstringA note for yourself, at most 255 characters.
Response 201
The new zone, or the original one on a replay.idstringrequirede.g.
dnsz_....namestringrequiredThe zone's name, lower-case; an internationalised name in punycode.
descriptionstringrequiredYour note about it; may be empty.
statusstringrequiredpending(being created),awaiting_delegation(setname_serversat your registrar),active(delegated to Pantech),suspended(by an operator),deleting,deleted, orfailed(seefailure_code).One of
pending,awaiting_delegation,active,suspended,deleting,deleted,failed.failure_codestring or nullrequiredWhy it failed:
delegation_timeout(not delegated within 14 days, so it was removed),provider_rejectedorprovider_limit. Null unlessfailed.One of
delegation_timeout,provider_rejected,provider_limit,null.name_serversarray of stringrequiredThe zone's own two Pantech DNS name servers, to delegate to at your registrar: set exactly these, no more and no fewer. Every zone gets its own pair, never the one the domain is delegated to when the zone is created, so a stale delegation can never serve someone else's zone. Empty while
pending.domain_idstring or nullrequiredThe Pantech domain (
dom_…) delegated to this zone; null when none is.record_countintegerrequiredRecord sets in the zone, including the managed SOA and NS.
last_checked_atstring or nullrequiredWhen its delegation was last checked (RFC 3339, UTC); null before the first check.
delegation_deadline_atstring or nullrequiredWhile the zone awaits delegation, when it is removed if the registrar still does not delegate to its name servers (14 days after it started waiting); null otherwise.
activated_atstring or nullrequiredWhen it last became
active(RFC 3339, UTC); null if it never has.suspended_reasonstring or nullrequiredWhy an operator suspended it; null unless
suspended.created_atstringrequiredWhen it was created (RFC 3339, UTC).
updated_atstringrequiredWhen it last changed (RFC 3339, UTC).
versionintegerrequiredIncreases with every change.
Errors
- 400
IDEMPOTENCY_KEY_REQUIRED: theIdempotency-Keyheader is missing. Send a new unique value, such as a UUID, with every write.INVALID_IDEMPOTENCY_KEY: theIdempotency-Keyheader is longer than 255 characters. Use a shorter value.INVALID_REQUEST_BODY: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint. - 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks thewritescope. Use a key with that scope.FORBIDDEN: the member who created the key is not an owner or admin. Use a key created by one.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.DNS_ZONE_LIMIT_REACHED: your organization already has 25 zones. Delete one first.DNS_ZONE_CREATE_LIMIT_REACHED: your organization created 10 zones in the last 24 hours. Try again tomorrow. - 409
IDEMPOTENCY_CONFLICT: thisIdempotency-Keywas already used for a different request. Use a new key.DNS_ZONE_NAME_TAKEN: your organization already has a zone with this name. Use it.DNS_ZONE_ACTIVE_ELSEWHERE: another organization serves this name on Pantech. If the domain is yours, contact support.ACCOUNT_SUSPENDED: the account is suspended or has an overdue invoice, so nothing new can be added. Pay the invoice under Billing in the console, then try again. - 413
REQUEST_TOO_LARGE: the body is larger than 64 KiB. Send a smaller request. - 422
VALIDATION_FAILED: a field is invalid. Each entry oferrorsnames thefieldand itscode:nameREQUIRED,INVALID_NAMEorINVALID_ZONE_NAME: send a domain you own such asexample.comorshop.example.com: at least two labels, at most 253 characters, not a public suffix such ascomorco.uk.nameRESERVED_ZONE_NAME: the name is reserved by Pantech. Choose another.descriptionINVALID_DESCRIPTION: send at most 255 characters.UNKNOWN_FIELD: the body has a field this endpoint does not take (named infield). Remove it or fix its spelling. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
DNS_UNAVAILABLE: Pantech DNS is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X POST "https://api.pantechdynamics.com/public/v1/dns/zones" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "example.com"
}'{
"id": "dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "example.com",
"description": "Marketing site",
"status": "active",
"failure_code": "delegation_timeout",
"name_servers": [
"ana-ns.pantechdynamics.com",
"ayo-ns.pantechdynamics.com"
],
"domain_id": "dom_06gk3x9tq7m2v8r4y1c5d0zp8w",
"record_count": 1,
"last_checked_at": "2026-10-03T09:30:00Z",
"delegation_deadline_at": "2026-10-03T09:30:00Z",
"activated_at": "2026-10-03T09:30:00Z",
"suspended_reason": null,
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z",
"version": 1
}Get a DNS zone
One zone: its status, the name servers to delegate to, and when its delegation was last checked.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Path parameters
zone_idstringrequiredThe zone's id (
dnsz_…).
Response 200
The zone.idstringrequirede.g.
dnsz_....namestringrequiredThe zone's name, lower-case; an internationalised name in punycode.
descriptionstringrequiredYour note about it; may be empty.
statusstringrequiredpending(being created),awaiting_delegation(setname_serversat your registrar),active(delegated to Pantech),suspended(by an operator),deleting,deleted, orfailed(seefailure_code).One of
pending,awaiting_delegation,active,suspended,deleting,deleted,failed.failure_codestring or nullrequiredWhy it failed:
delegation_timeout(not delegated within 14 days, so it was removed),provider_rejectedorprovider_limit. Null unlessfailed.One of
delegation_timeout,provider_rejected,provider_limit,null.name_serversarray of stringrequiredThe zone's own two Pantech DNS name servers, to delegate to at your registrar: set exactly these, no more and no fewer. Every zone gets its own pair, never the one the domain is delegated to when the zone is created, so a stale delegation can never serve someone else's zone. Empty while
pending.domain_idstring or nullrequiredThe Pantech domain (
dom_…) delegated to this zone; null when none is.record_countintegerrequiredRecord sets in the zone, including the managed SOA and NS.
last_checked_atstring or nullrequiredWhen its delegation was last checked (RFC 3339, UTC); null before the first check.
delegation_deadline_atstring or nullrequiredWhile the zone awaits delegation, when it is removed if the registrar still does not delegate to its name servers (14 days after it started waiting); null otherwise.
activated_atstring or nullrequiredWhen it last became
active(RFC 3339, UTC); null if it never has.suspended_reasonstring or nullrequiredWhy an operator suspended it; null unless
suspended.created_atstringrequiredWhen it was created (RFC 3339, UTC).
updated_atstringrequiredWhen it last changed (RFC 3339, UTC).
versionintegerrequiredIncreases with every change.
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
DNS_ZONE_NOT_FOUND: no DNS zone with this id in your organization. List your zones to find it.RESOURCE_NOT_FOUND: the id is not a DNS zone id (dnsz_…). Check the id. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
DNS_UNAVAILABLE: Pantech DNS is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl "https://api.pantechdynamics.com/public/v1/dns/zones/dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"id": "dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "example.com",
"description": "Marketing site",
"status": "active",
"failure_code": "delegation_timeout",
"name_servers": [
"ana-ns.pantechdynamics.com",
"ayo-ns.pantechdynamics.com"
],
"domain_id": "dom_06gk3x9tq7m2v8r4y1c5d0zp8w",
"record_count": 1,
"last_checked_at": "2026-10-03T09:30:00Z",
"delegation_deadline_at": "2026-10-03T09:30:00Z",
"activated_at": "2026-10-03T09:30:00Z",
"suspended_reason": null,
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z",
"version": 1
}Change a DNS zone
Changes the zone's description. A zone's name never changes: create another zone instead. Owners and admins only.
Idempotency: the same request applied twice leaves the zone the same.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
zone_idstringrequiredThe zone's id (
dnsz_…).
Body
application/jsondescriptionstringA new note, at most 255 characters.
Response 200
The changed zone.idstringrequirede.g.
dnsz_....namestringrequiredThe zone's name, lower-case; an internationalised name in punycode.
descriptionstringrequiredYour note about it; may be empty.
statusstringrequiredpending(being created),awaiting_delegation(setname_serversat your registrar),active(delegated to Pantech),suspended(by an operator),deleting,deleted, orfailed(seefailure_code).One of
pending,awaiting_delegation,active,suspended,deleting,deleted,failed.failure_codestring or nullrequiredWhy it failed:
delegation_timeout(not delegated within 14 days, so it was removed),provider_rejectedorprovider_limit. Null unlessfailed.One of
delegation_timeout,provider_rejected,provider_limit,null.name_serversarray of stringrequiredThe zone's own two Pantech DNS name servers, to delegate to at your registrar: set exactly these, no more and no fewer. Every zone gets its own pair, never the one the domain is delegated to when the zone is created, so a stale delegation can never serve someone else's zone. Empty while
pending.domain_idstring or nullrequiredThe Pantech domain (
dom_…) delegated to this zone; null when none is.record_countintegerrequiredRecord sets in the zone, including the managed SOA and NS.
last_checked_atstring or nullrequiredWhen its delegation was last checked (RFC 3339, UTC); null before the first check.
delegation_deadline_atstring or nullrequiredWhile the zone awaits delegation, when it is removed if the registrar still does not delegate to its name servers (14 days after it started waiting); null otherwise.
activated_atstring or nullrequiredWhen it last became
active(RFC 3339, UTC); null if it never has.suspended_reasonstring or nullrequiredWhy an operator suspended it; null unless
suspended.created_atstringrequiredWhen it was created (RFC 3339, UTC).
updated_atstringrequiredWhen it last changed (RFC 3339, UTC).
versionintegerrequiredIncreases with every change.
Errors
- 400
IDEMPOTENCY_KEY_REQUIRED: theIdempotency-Keyheader is missing. Send a new unique value, such as a UUID, with every write.INVALID_IDEMPOTENCY_KEY: theIdempotency-Keyheader is longer than 255 characters. Use a shorter value.INVALID_REQUEST_BODY: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint. - 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
DNS_ZONE_NOT_FOUND: no DNS zone with this id in your organization. List your zones to find it.RESOURCE_NOT_FOUND: the id is not a DNS zone id (dnsz_…). Check the id. - 409
DNS_ZONE_NOT_WRITABLE: the zone is being deleted or has failed.CONFLICT: the zone was changed at the same time. Get it again and retry. - 413
REQUEST_TOO_LARGE: the body is larger than 64 KiB. Send a smaller request. - 422
VALIDATION_FAILED: a field is invalid. Each entry oferrorsnames thefieldand itscode:descriptionINVALID_DESCRIPTION: send at most 255 characters.UNKNOWN_FIELD: the body has a field this endpoint does not take (named infield). Remove it or fix its spelling. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
DNS_UNAVAILABLE: Pantech DNS is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X PATCH "https://api.pantechdynamics.com/public/v1/dns/zones/dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'{
"id": "dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "example.com",
"description": "Marketing site",
"status": "active",
"failure_code": "delegation_timeout",
"name_servers": [
"ana-ns.pantechdynamics.com",
"ayo-ns.pantechdynamics.com"
],
"domain_id": "dom_06gk3x9tq7m2v8r4y1c5d0zp8w",
"record_count": 1,
"last_checked_at": "2026-10-03T09:30:00Z",
"delegation_deadline_at": "2026-10-03T09:30:00Z",
"activated_at": "2026-10-03T09:30:00Z",
"suspended_reason": null,
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z",
"version": 1
}Delete a DNS zone
Deletes the zone and every record in it from the DNS network straight away: its names stop answering within about a minute. The zone answers deleting, then deleted. A zone a Pantech domain delegates to cannot be deleted until the domain points elsewhere. Owners and admins only.
Idempotency: deleting a zone that is already being deleted returns it again.
Scope: write. Destructive: an AI app's key also needs delete.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
zone_idstringrequiredThe zone's id (
dnsz_…).
Response 202
The zone,deleting.idstringrequirede.g.
dnsz_....namestringrequiredThe zone's name, lower-case; an internationalised name in punycode.
descriptionstringrequiredYour note about it; may be empty.
statusstringrequiredpending(being created),awaiting_delegation(setname_serversat your registrar),active(delegated to Pantech),suspended(by an operator),deleting,deleted, orfailed(seefailure_code).One of
pending,awaiting_delegation,active,suspended,deleting,deleted,failed.failure_codestring or nullrequiredWhy it failed:
delegation_timeout(not delegated within 14 days, so it was removed),provider_rejectedorprovider_limit. Null unlessfailed.One of
delegation_timeout,provider_rejected,provider_limit,null.name_serversarray of stringrequiredThe zone's own two Pantech DNS name servers, to delegate to at your registrar: set exactly these, no more and no fewer. Every zone gets its own pair, never the one the domain is delegated to when the zone is created, so a stale delegation can never serve someone else's zone. Empty while
pending.domain_idstring or nullrequiredThe Pantech domain (
dom_…) delegated to this zone; null when none is.record_countintegerrequiredRecord sets in the zone, including the managed SOA and NS.
last_checked_atstring or nullrequiredWhen its delegation was last checked (RFC 3339, UTC); null before the first check.
delegation_deadline_atstring or nullrequiredWhile the zone awaits delegation, when it is removed if the registrar still does not delegate to its name servers (14 days after it started waiting); null otherwise.
activated_atstring or nullrequiredWhen it last became
active(RFC 3339, UTC); null if it never has.suspended_reasonstring or nullrequiredWhy an operator suspended it; null unless
suspended.created_atstringrequiredWhen it was created (RFC 3339, UTC).
updated_atstringrequiredWhen it last changed (RFC 3339, UTC).
versionintegerrequiredIncreases with every change.
Errors
- 400
IDEMPOTENCY_KEY_REQUIRED: theIdempotency-Keyheader is missing. Send a new unique value, such as a UUID, with every write.INVALID_IDEMPOTENCY_KEY: theIdempotency-Keyheader is longer than 255 characters. Use a shorter value. - 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks thewritescope, or it is an AI app's key withoutdelete. Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key is not an owner or admin. Use a key created by one.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps. - 404
DNS_ZONE_NOT_FOUND: no DNS zone with this id in your organization. List your zones to find it.RESOURCE_NOT_FOUND: the id is not a DNS zone id (dnsz_…). Check the id. - 409
DNS_ZONE_IN_USE_BY_DOMAIN: a Pantech domain delegates to this zone. Point the domain at other name servers first.DNS_ZONE_SUSPENDED: an operator suspended the zone. Contact support. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
DNS_UNAVAILABLE: Pantech DNS is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X DELETE "https://api.pantechdynamics.com/public/v1/dns/zones/dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"id": "dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "example.com",
"description": "Marketing site",
"status": "active",
"failure_code": "delegation_timeout",
"name_servers": [
"ana-ns.pantechdynamics.com",
"ayo-ns.pantechdynamics.com"
],
"domain_id": "dom_06gk3x9tq7m2v8r4y1c5d0zp8w",
"record_count": 1,
"last_checked_at": "2026-10-03T09:30:00Z",
"delegation_deadline_at": "2026-10-03T09:30:00Z",
"activated_at": "2026-10-03T09:30:00Z",
"suspended_reason": null,
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z",
"version": 1
}Check a zone's delegation now
Asks Pantech to check the zone's delegation within seconds instead of on its schedule: call it after changing the name servers at your registrar, then get the zone to see whether it became active. Has no effect on a zone that is not awaiting_delegation or active. Owners and admins only.
Idempotency: asking twice checks once.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
zone_idstringrequiredThe zone's id (
dnsz_…).
Response 202
The zone; the check follows within seconds.idstringrequirede.g.
dnsz_....namestringrequiredThe zone's name, lower-case; an internationalised name in punycode.
descriptionstringrequiredYour note about it; may be empty.
statusstringrequiredpending(being created),awaiting_delegation(setname_serversat your registrar),active(delegated to Pantech),suspended(by an operator),deleting,deleted, orfailed(seefailure_code).One of
pending,awaiting_delegation,active,suspended,deleting,deleted,failed.failure_codestring or nullrequiredWhy it failed:
delegation_timeout(not delegated within 14 days, so it was removed),provider_rejectedorprovider_limit. Null unlessfailed.One of
delegation_timeout,provider_rejected,provider_limit,null.name_serversarray of stringrequiredThe zone's own two Pantech DNS name servers, to delegate to at your registrar: set exactly these, no more and no fewer. Every zone gets its own pair, never the one the domain is delegated to when the zone is created, so a stale delegation can never serve someone else's zone. Empty while
pending.domain_idstring or nullrequiredThe Pantech domain (
dom_…) delegated to this zone; null when none is.record_countintegerrequiredRecord sets in the zone, including the managed SOA and NS.
last_checked_atstring or nullrequiredWhen its delegation was last checked (RFC 3339, UTC); null before the first check.
delegation_deadline_atstring or nullrequiredWhile the zone awaits delegation, when it is removed if the registrar still does not delegate to its name servers (14 days after it started waiting); null otherwise.
activated_atstring or nullrequiredWhen it last became
active(RFC 3339, UTC); null if it never has.suspended_reasonstring or nullrequiredWhy an operator suspended it; null unless
suspended.created_atstringrequiredWhen it was created (RFC 3339, UTC).
updated_atstringrequiredWhen it last changed (RFC 3339, UTC).
versionintegerrequiredIncreases with every change.
Errors
- 400
IDEMPOTENCY_KEY_REQUIRED: theIdempotency-Keyheader is missing. Send a new unique value, such as a UUID, with every write.INVALID_IDEMPOTENCY_KEY: theIdempotency-Keyheader is longer than 255 characters. Use a shorter value. - 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
DNS_ZONE_NOT_FOUND: no DNS zone with this id in your organization. List your zones to find it.RESOURCE_NOT_FOUND: the id is not a DNS zone id (dnsz_…). Check the id. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
DNS_UNAVAILABLE: Pantech DNS is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X POST "https://api.pantechdynamics.com/public/v1/dns/zones/dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w/verify" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"id": "dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "example.com",
"description": "Marketing site",
"status": "active",
"failure_code": "delegation_timeout",
"name_servers": [
"ana-ns.pantechdynamics.com",
"ayo-ns.pantechdynamics.com"
],
"domain_id": "dom_06gk3x9tq7m2v8r4y1c5d0zp8w",
"record_count": 1,
"last_checked_at": "2026-10-03T09:30:00Z",
"delegation_deadline_at": "2026-10-03T09:30:00Z",
"activated_at": "2026-10-03T09:30:00Z",
"suspended_reason": null,
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z",
"version": 1
}List a zone's records
The zone's record sets, by name then type, including the apex SOA and NS that Pantech manages (managed: true, read-only). A record set is one name and type with its TTL and every value.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Path parameters
zone_idstringrequiredThe zone's id (
dnsz_…).
Query parameters
namestringOnly the record sets at this name, relative to the zone (
@,www,*.dev).At most 255 characters.
qstringOnly record sets whose name contains this text (case-insensitive), at most 255 characters.
At most 255 characters.
typestringOnly record sets of this type (case-insensitive).
One of
A,AAAA,CNAME,MX,TXT,SRV,CAA,NS,PTR,SOA.limitintegerItems per page, 1 to 100. Defaults to 50.
From 1 to 100. Defaults to
50.cursorstringThe previous page's
next_cursor, to get the next page. Leave out for the first page; keep the other parameters the same.
Response 200
Record sets.dataarray of DNSRecordrequiredShow 15 child fieldsHide child fields
idstringrequirede.g.
dnsr_....zone_idstringrequiredThe zone (
dnsz_…).namestringrequiredRelative to the zone:
@for the apex,www,*.dev,_dmarc.fqdnstringrequiredThe absolute name, without a trailing dot.
typestringrequiredSOAonly for the managed apex record.One of
A,AAAA,CNAME,MX,TXT,SRV,CAA,NS,PTR,SOA.ttlintegerrequiredSeconds resolvers may cache it, 60 to 86400.
valuesarray of stringrequiredIts values, canonical and sorted: host names with a trailing dot, TXT as quoted 255-byte strings.
allow_privatebooleanrequiredWhether private and carrier-grade NAT addresses are allowed in
values.commentstringrequiredYour note about it; may be empty. Never published in DNS.
managedbooleanrequiredTrue for the apex
SOAandNS, which Pantech manages: read-only.statusstringrequiredpendinguntil its latest change is live,active,deleting, orfailed(seefailure_code; the last values that applied keep answering).One of
pending,active,deleting,failed.failure_codestring or nullrequiredWhy its latest change failed, e.g.
invalid_change. Null unlessfailed.versionintegerrequiredIncreases with every change; send it as
If-Matchto change only what you read.created_atstringrequiredWhen it was created (RFC 3339, UTC).
updated_atstringrequiredWhen it last changed (RFC 3339, UTC).
next_cursorstring or nullrequiredPass as
cursorfor the next page; null on the last one.
Errors
- 400
INVALID_FILTER: a query parameter is not one of its allowed values.detailnames it and what it takes.INVALID_CURSOR: the cursor is not valid for this list and these filters. Start again without a cursor. - 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
DNS_ZONE_NOT_FOUND: no DNS zone with this id in your organization. List your zones to find it.RESOURCE_NOT_FOUND: the id is not a DNS zone id (dnsz_…). Check the id. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
DNS_UNAVAILABLE: Pantech DNS is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl "https://api.pantechdynamics.com/public/v1/dns/zones/dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w/records" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"data": [
{
"id": "dnsr_06gk3x9tq7m2v8r4y1c5d0zp8w",
"zone_id": "dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "www",
"fqdn": "www.example.com",
"type": "A",
"ttl": 300,
"values": [
"<server-public-ip>",
"<second-server-public-ip>"
],
"allow_private": true,
"comment": "comment",
"managed": true,
"status": "active",
"failure_code": null,
"version": 1,
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}
],
"next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
}Create a record set
Adds a record set: one name and type, a TTL, and 1 to 100 values. It answers pending and is live on the DNS network, active, typically within a minute.
Values by type: A an IPv4 address; AAAA an IPv6 address; CNAME, NS and PTR a host name; MX 10 mail.example.com; SRV 10 5 5060 sip.example.com; CAA 0 issue "ca.example.net"; TXT any printable text up to 4,000 bytes, split into 255-byte strings for you (quoted strings are accepted too). Host names are returned with a trailing dot. Private and carrier-grade NAT addresses are refused unless allow_private is true. A CNAME stands alone at its name and is never at the apex; NS delegates a subdomain only. At most 10,000 record sets per zone. Owners and admins only.
Idempotency: a retry with the same Idempotency-Key returns the record set the first request made, as it is now. The same key with a different request returns 409 IDEMPOTENCY_CONFLICT. A key is remembered for 24 hours.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
zone_idstringrequiredThe zone's id (
dnsz_…).
Body
application/jsonnamestringrequiredRelative to the zone (
@,www,*.dev,_dmarc), or fully qualified ending in the zone.typestringrequiredOne of
A,AAAA,CNAME,MX,TXT,SRV,CAA,NS,PTR.ttlintegerSeconds, 60 to 86400. Defaults to 300.
From 60 to 86400. Defaults to
300.valuesarray of stringrequired1 to 100 values in the type's format.
allow_privatebooleanAllow private and carrier-grade NAT addresses (for names that resolve inside a private network). Defaults to false.
commentstringA note for yourself, at most 255 characters.
Response 202
The new record set,pending.idstringrequirede.g.
dnsr_....zone_idstringrequiredThe zone (
dnsz_…).namestringrequiredRelative to the zone:
@for the apex,www,*.dev,_dmarc.fqdnstringrequiredThe absolute name, without a trailing dot.
typestringrequiredSOAonly for the managed apex record.One of
A,AAAA,CNAME,MX,TXT,SRV,CAA,NS,PTR,SOA.ttlintegerrequiredSeconds resolvers may cache it, 60 to 86400.
valuesarray of stringrequiredIts values, canonical and sorted: host names with a trailing dot, TXT as quoted 255-byte strings.
allow_privatebooleanrequiredWhether private and carrier-grade NAT addresses are allowed in
values.commentstringrequiredYour note about it; may be empty. Never published in DNS.
managedbooleanrequiredTrue for the apex
SOAandNS, which Pantech manages: read-only.statusstringrequiredpendinguntil its latest change is live,active,deleting, orfailed(seefailure_code; the last values that applied keep answering).One of
pending,active,deleting,failed.failure_codestring or nullrequiredWhy its latest change failed, e.g.
invalid_change. Null unlessfailed.versionintegerrequiredIncreases with every change; send it as
If-Matchto change only what you read.created_atstringrequiredWhen it was created (RFC 3339, UTC).
updated_atstringrequiredWhen it last changed (RFC 3339, UTC).
Errors
- 400
IDEMPOTENCY_KEY_REQUIRED: theIdempotency-Keyheader is missing. Send a new unique value, such as a UUID, with every write.INVALID_IDEMPOTENCY_KEY: theIdempotency-Keyheader is longer than 255 characters. Use a shorter value.INVALID_REQUEST_BODY: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint. - 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks thewritescope. Use a key with that scope.FORBIDDEN: the member who created the key is not an owner or admin. Use a key created by one.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.DNS_RECORD_LIMIT_REACHED: the zone already holds 10,000 record sets. - 404
DNS_ZONE_NOT_FOUND: no DNS zone with this id in your organization. List your zones to find it.RESOURCE_NOT_FOUND: the id is not a DNS zone id (dnsz_…). Check the id. - 409
DNS_RECORD_EXISTS: a record set with this name and type exists. Change it instead.IDEMPOTENCY_CONFLICT: thisIdempotency-Keywas already used for a different request. Use a new key.DNS_CNAME_CONFLICT: a CNAME must be the only record at its name.DNS_RECORD_READ_ONLY: the apexNS(andSOA) are managed by Pantech.DNS_ZONE_SUSPENDED: an operator suspended the zone. Contact support.DNS_ZONE_NOT_WRITABLE: the zone is being deleted or has failed. Create the zone again to manage its records. - 413
REQUEST_TOO_LARGE: the body is larger than 64 KiB. Send a smaller request. - 422
VALIDATION_FAILED: a field is invalid. Each entry oferrorsnames thefieldand itscode:nameINVALID_NAMEorINVALID_RECORD_NAME: send@for the apex, a name inside the zone such aswwwor_dmarc, a wildcard such as*.dev, or a fully-qualified name ending in the zone. Internationalised names are accepted and stored in punycode.nameCNAME_AT_APEX: a CNAME cannot be at the apex; use A or AAAA records there.typeINVALID_RECORD_TYPE: send one ofA,AAAA,CNAME,MX,TXT,SRV,CAA,NS,PTR.ttlINVALID_TTL: send 60 to 86400 seconds.valuesINVALID_VALUES: send 1 to 100 distinct values.values[i]INVALID_VALUE: that value is not valid for the type;messagesays why (for example a private address withoutallow_private).commentINVALID_COMMENT: send at most 255 characters.UNKNOWN_FIELD: the body has a field this endpoint does not take (named infield). Remove it or fix its spelling. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
DNS_UNAVAILABLE: Pantech DNS is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X POST "https://api.pantechdynamics.com/public/v1/dns/zones/dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w/records" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "www",
"type": "A",
"values": [
"<server-public-ip>"
]
}'{
"id": "dnsr_06gk3x9tq7m2v8r4y1c5d0zp8w",
"zone_id": "dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "www",
"fqdn": "www.example.com",
"type": "A",
"ttl": 300,
"values": [
"<server-public-ip>",
"<second-server-public-ip>"
],
"allow_private": true,
"comment": "comment",
"managed": true,
"status": "active",
"failure_code": null,
"version": 1,
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}Get a record set
One record set. status is pending until its latest change is live, then active; failed carries a failure_code, and the DNS network keeps answering the last values that applied.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Path parameters
zone_idstringrequiredThe zone's id (
dnsz_…).record_idstringrequiredThe record set's id (
dnsr_…).
Response 200
The record set.idstringrequirede.g.
dnsr_....zone_idstringrequiredThe zone (
dnsz_…).namestringrequiredRelative to the zone:
@for the apex,www,*.dev,_dmarc.fqdnstringrequiredThe absolute name, without a trailing dot.
typestringrequiredSOAonly for the managed apex record.One of
A,AAAA,CNAME,MX,TXT,SRV,CAA,NS,PTR,SOA.ttlintegerrequiredSeconds resolvers may cache it, 60 to 86400.
valuesarray of stringrequiredIts values, canonical and sorted: host names with a trailing dot, TXT as quoted 255-byte strings.
allow_privatebooleanrequiredWhether private and carrier-grade NAT addresses are allowed in
values.commentstringrequiredYour note about it; may be empty. Never published in DNS.
managedbooleanrequiredTrue for the apex
SOAandNS, which Pantech manages: read-only.statusstringrequiredpendinguntil its latest change is live,active,deleting, orfailed(seefailure_code; the last values that applied keep answering).One of
pending,active,deleting,failed.failure_codestring or nullrequiredWhy its latest change failed, e.g.
invalid_change. Null unlessfailed.versionintegerrequiredIncreases with every change; send it as
If-Matchto change only what you read.created_atstringrequiredWhen it was created (RFC 3339, UTC).
updated_atstringrequiredWhen it last changed (RFC 3339, UTC).
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
DNS_ZONE_NOT_FOUND: no DNS zone with this id in your organization. List your zones to find it.RESOURCE_NOT_FOUND: the id is not a DNS zone id (dnsz_…). Check the id.DNS_RECORD_NOT_FOUND: no record with this id in this zone. List the zone's records to find it.RESOURCE_NOT_FOUND: the record id is not a record id (dnsr_…). Check the id. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
DNS_UNAVAILABLE: Pantech DNS is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl "https://api.pantechdynamics.com/public/v1/dns/zones/dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w/records/dnsr_06gk3x9tq7m2v8r4y1c5d0zp8w" \
-H "Authorization: Bearer $PANTECH_API_KEY"{
"id": "dnsr_06gk3x9tq7m2v8r4y1c5d0zp8w",
"zone_id": "dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "www",
"fqdn": "www.example.com",
"type": "A",
"ttl": 300,
"values": [
"<server-public-ip>",
"<second-server-public-ip>"
],
"allow_private": true,
"comment": "comment",
"managed": true,
"status": "active",
"failure_code": null,
"version": 1,
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}Change a record set
Changes the TTL, values, allow_private or comment; fields you leave out keep their value, and values replaces every value. A record set's name and type never change: delete it and create another. Send If-Match: <version> to refuse the change if someone else changed the record since you read it. Owners and admins only.
Idempotency: the same request applied twice leaves the record the same.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
zone_idstringrequiredThe zone's id (
dnsz_…).record_idstringrequiredThe record set's id (
dnsr_…).
Body
application/jsonttlintegerA new TTL in seconds.
From 60 to 86400.
valuesarray of stringThe new values, replacing every old one.
allow_privatebooleancommentstringA new note, at most 255 characters.
Response 202
The changed record set,pending when its TTL or values changed.idstringrequirede.g.
dnsr_....zone_idstringrequiredThe zone (
dnsz_…).namestringrequiredRelative to the zone:
@for the apex,www,*.dev,_dmarc.fqdnstringrequiredThe absolute name, without a trailing dot.
typestringrequiredSOAonly for the managed apex record.One of
A,AAAA,CNAME,MX,TXT,SRV,CAA,NS,PTR,SOA.ttlintegerrequiredSeconds resolvers may cache it, 60 to 86400.
valuesarray of stringrequiredIts values, canonical and sorted: host names with a trailing dot, TXT as quoted 255-byte strings.
allow_privatebooleanrequiredWhether private and carrier-grade NAT addresses are allowed in
values.commentstringrequiredYour note about it; may be empty. Never published in DNS.
managedbooleanrequiredTrue for the apex
SOAandNS, which Pantech manages: read-only.statusstringrequiredpendinguntil its latest change is live,active,deleting, orfailed(seefailure_code; the last values that applied keep answering).One of
pending,active,deleting,failed.failure_codestring or nullrequiredWhy its latest change failed, e.g.
invalid_change. Null unlessfailed.versionintegerrequiredIncreases with every change; send it as
If-Matchto change only what you read.created_atstringrequiredWhen it was created (RFC 3339, UTC).
updated_atstringrequiredWhen it last changed (RFC 3339, UTC).
Errors
- 400
IDEMPOTENCY_KEY_REQUIRED: theIdempotency-Keyheader is missing. Send a new unique value, such as a UUID, with every write.INVALID_IDEMPOTENCY_KEY: theIdempotency-Keyheader is longer than 255 characters. Use a shorter value.INVALID_REQUEST_BODY: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint.VALIDATION_FAILEDwithIf-MatchINVALID_VERSION: send the record'sversion, a positive integer. - 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
DNS_ZONE_NOT_FOUND: no DNS zone with this id in your organization. List your zones to find it.RESOURCE_NOT_FOUND: the id is not a DNS zone id (dnsz_…). Check the id.DNS_RECORD_NOT_FOUND: no record with this id in this zone. List the zone's records to find it.RESOURCE_NOT_FOUND: the record id is not a record id (dnsr_…). Check the id. - 409
DNS_CNAME_CONFLICT: a CNAME must be the only record at its name.DNS_RECORD_READ_ONLY: the apexSOAandNSare managed by Pantech.CONFLICT: the record is being deleted.DNS_ZONE_SUSPENDED: an operator suspended the zone. Contact support.DNS_ZONE_NOT_WRITABLE: the zone is being deleted or has failed. Create the zone again to manage its records. - 412
VERSION_CONFLICT:If-Matchis not the record's current version. Get it again and retry. - 413
REQUEST_TOO_LARGE: the body is larger than 64 KiB. Send a smaller request. - 422
VALIDATION_FAILED: a field is invalid. Each entry oferrorsnames thefieldand itscode:ttlINVALID_TTL: send 60 to 86400 seconds.valuesINVALID_VALUES: send 1 to 100 distinct values.values[i]INVALID_VALUE: that value is not valid for the type;messagesays why (for example a private address withoutallow_private).commentINVALID_COMMENT: send at most 255 characters.UNKNOWN_FIELD: the body has a field this endpoint does not take (named infield). Remove it or fix its spelling. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
DNS_UNAVAILABLE: Pantech DNS is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X PATCH "https://api.pantechdynamics.com/public/v1/dns/zones/dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w/records/dnsr_06gk3x9tq7m2v8r4y1c5d0zp8w" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'{
"id": "dnsr_06gk3x9tq7m2v8r4y1c5d0zp8w",
"zone_id": "dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "www",
"fqdn": "www.example.com",
"type": "A",
"ttl": 300,
"values": [
"<server-public-ip>",
"<second-server-public-ip>"
],
"allow_private": true,
"comment": "comment",
"managed": true,
"status": "active",
"failure_code": null,
"version": 1,
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}Delete a record set
Removes the record set from the DNS network. It answers deleting and disappears once the DNS network no longer holds it, typically within a minute. Send If-Match: <version> to refuse the delete if the record changed since you read it. Owners and admins only.
Idempotency: deleting a record set that is already being deleted returns it again.
Scope: write. Destructive: an AI app's key also needs delete.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
zone_idstringrequiredThe zone's id (
dnsz_…).record_idstringrequiredThe record set's id (
dnsr_…).
Response 202
The record set,deleting.idstringrequirede.g.
dnsr_....zone_idstringrequiredThe zone (
dnsz_…).namestringrequiredRelative to the zone:
@for the apex,www,*.dev,_dmarc.fqdnstringrequiredThe absolute name, without a trailing dot.
typestringrequiredSOAonly for the managed apex record.One of
A,AAAA,CNAME,MX,TXT,SRV,CAA,NS,PTR,SOA.ttlintegerrequiredSeconds resolvers may cache it, 60 to 86400.
valuesarray of stringrequiredIts values, canonical and sorted: host names with a trailing dot, TXT as quoted 255-byte strings.
allow_privatebooleanrequiredWhether private and carrier-grade NAT addresses are allowed in
values.commentstringrequiredYour note about it; may be empty. Never published in DNS.
managedbooleanrequiredTrue for the apex
SOAandNS, which Pantech manages: read-only.statusstringrequiredpendinguntil its latest change is live,active,deleting, orfailed(seefailure_code; the last values that applied keep answering).One of
pending,active,deleting,failed.failure_codestring or nullrequiredWhy its latest change failed, e.g.
invalid_change. Null unlessfailed.versionintegerrequiredIncreases with every change; send it as
If-Matchto change only what you read.created_atstringrequiredWhen it was created (RFC 3339, UTC).
updated_atstringrequiredWhen it last changed (RFC 3339, UTC).
Errors
- 400
IDEMPOTENCY_KEY_REQUIRED: theIdempotency-Keyheader is missing. Send a new unique value, such as a UUID, with every write.INVALID_IDEMPOTENCY_KEY: theIdempotency-Keyheader is longer than 255 characters. Use a shorter value.VALIDATION_FAILEDwithIf-MatchINVALID_VERSION: send the record'sversion, a positive integer. - 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks thewritescope, or it is an AI app's key withoutdelete. Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key is not an owner or admin. Use a key created by one.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps. - 404
DNS_ZONE_NOT_FOUND: no DNS zone with this id in your organization. List your zones to find it.RESOURCE_NOT_FOUND: the id is not a DNS zone id (dnsz_…). Check the id.DNS_RECORD_NOT_FOUND: no record with this id in this zone. List the zone's records to find it.RESOURCE_NOT_FOUND: the record id is not a record id (dnsr_…). Check the id. - 409
DNS_RECORD_READ_ONLY: the apexSOAandNSare managed by Pantech.DNS_ZONE_SUSPENDED: an operator suspended the zone. Contact support.DNS_ZONE_NOT_WRITABLE: the zone is being deleted or has failed. Create the zone again to manage its records. - 412
VERSION_CONFLICT:If-Matchis not the record's current version. Get it again and retry. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
DNS_UNAVAILABLE: Pantech DNS is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X DELETE "https://api.pantechdynamics.com/public/v1/dns/zones/dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w/records/dnsr_06gk3x9tq7m2v8r4y1c5d0zp8w" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"id": "dnsr_06gk3x9tq7m2v8r4y1c5d0zp8w",
"zone_id": "dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "www",
"fqdn": "www.example.com",
"type": "A",
"ttl": 300,
"values": [
"<server-public-ip>",
"<second-server-public-ip>"
],
"allow_private": true,
"comment": "comment",
"managed": true,
"status": "active",
"failure_code": null,
"version": 1,
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}Change many record sets at once
Applies up to 1,000 creates, updates and deletes in one request, all or nothing: every change is checked against the zone as the earlier changes leave it, and if any is refused, nothing changes and the error names it (changes[i]…). They reach the DNS network together, as one change.
create takes record. update takes record_id and record, whose TTL, values, allow_private and comment replace the record set's (its name and type may be left out, and must match if sent). delete takes record_id. version, when sent, must be the record's current version. A batch with a delete needs, from an AI app's key, the delete scope too. Owners and admins only.
Idempotency: a retry with the same Idempotency-Key returns the record sets the first request changed, as they are now (a record set since deleted and removed is left out). The same key with a different request returns 409 IDEMPOTENCY_CONFLICT. A key is remembered for 24 hours.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
zone_idstringrequiredThe zone's id (
dnsz_…).
Body
application/jsonchangesarray of DNSRecordChangerequired1 to 1,000 changes, applied in order, all or nothing.
Show 4 child fieldsHide child fields
actionstringrequiredOne of
create,update,delete.record_idstringThe record set an
updateordeletechanges (dnsr_…).versionintegerWhen sent, the record's current version: the change is refused with
412 VERSION_CONFLICTotherwise.At least 1.
recordDNSRecordChangeRecordThe record set a
createorupdatewrites; adeletetakes none. Forcreate,name,typeandvaluesare required, as in *Create a record set*. Forupdate,nameandtypemay be left out (when sent they must be the record's own: a record set is never renamed or retyped), and the record set's TTL, values,allow_privateand comment become exactly what is sent here: sendvalues, and sendttlto keep a TTL other than the default 300.Show 6 child fieldsHide child fields
namestringRelative to the zone (
@,www,*.dev,_dmarc), or fully qualified ending in the zone.typestringOne of
A,AAAA,CNAME,MX,TXT,SRV,CAA,NS,PTR.ttlintegerFrom 60 to 86400. Defaults to
300.valuesarray of string1 to 100 values in the type's format.
allow_privatebooleancommentstringAt most 255 characters.
Response 202
Every record set the batch created, changed or is deleting, in the order of the changes.dataarray of DNSRecordrequiredEvery record set changed, in the order of the changes.
Show 15 child fieldsHide child fields
idstringrequirede.g.
dnsr_....zone_idstringrequiredThe zone (
dnsz_…).namestringrequiredRelative to the zone:
@for the apex,www,*.dev,_dmarc.fqdnstringrequiredThe absolute name, without a trailing dot.
typestringrequiredSOAonly for the managed apex record.One of
A,AAAA,CNAME,MX,TXT,SRV,CAA,NS,PTR,SOA.ttlintegerrequiredSeconds resolvers may cache it, 60 to 86400.
valuesarray of stringrequiredIts values, canonical and sorted: host names with a trailing dot, TXT as quoted 255-byte strings.
allow_privatebooleanrequiredWhether private and carrier-grade NAT addresses are allowed in
values.commentstringrequiredYour note about it; may be empty. Never published in DNS.
managedbooleanrequiredTrue for the apex
SOAandNS, which Pantech manages: read-only.statusstringrequiredpendinguntil its latest change is live,active,deleting, orfailed(seefailure_code; the last values that applied keep answering).One of
pending,active,deleting,failed.failure_codestring or nullrequiredWhy its latest change failed, e.g.
invalid_change. Null unlessfailed.versionintegerrequiredIncreases with every change; send it as
If-Matchto change only what you read.created_atstringrequiredWhen it was created (RFC 3339, UTC).
updated_atstringrequiredWhen it last changed (RFC 3339, UTC).
Errors
- 400
IDEMPOTENCY_KEY_REQUIRED: theIdempotency-Keyheader is missing. Send a new unique value, such as a UUID, with every write.INVALID_IDEMPOTENCY_KEY: theIdempotency-Keyheader is longer than 255 characters. Use a shorter value.INVALID_REQUEST_BODY: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint. - 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks thewritescope. Use a key with that scope.FORBIDDEN: the member who created the key is not an owner or admin. Use a key created by one.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.INSUFFICIENT_SCOPE: the batch deletes, and this AI app's key lacksdelete.DNS_RECORD_LIMIT_REACHED: the creates would take the zone past 10,000 record sets. - 404
DNS_ZONE_NOT_FOUND: no DNS zone with this id in your organization. List your zones to find it.RESOURCE_NOT_FOUND: the id is not a DNS zone id (dnsz_…). Check the id.DNS_RECORD_NOT_FOUND: a change'srecord_idnames no record in this zone;errors[0].fieldischanges[i].record_id. - 409
DNS_RECORD_EXISTS,DNS_CNAME_CONFLICT,DNS_RECORD_READ_ONLYorCONFLICT: one change is refused, as for a single change;errors[0].fieldnames it (changes[i]).IDEMPOTENCY_CONFLICT: thisIdempotency-Keywas already used for a different request. Use a new key.DNS_ZONE_SUSPENDED: an operator suspended the zone. Contact support.DNS_ZONE_NOT_WRITABLE: the zone is being deleted or has failed. Create the zone again to manage its records. - 412
VERSION_CONFLICT: a change'sversionis not the record's current one;errors[0].fieldischanges[i].version. - 413
REQUEST_TOO_LARGE: the body is larger than 64 KiB. Send a smaller request. - 422
TOO_MANY_CHANGES: more than 1,000 changes. Split them into smaller batches.VALIDATION_FAILED: a change is invalid.fieldnames it inside the batch:changesREQUIRED(no changes),changes[i].actionINVALID_ACTION(sendcreate,updateordelete),changes[i].record_idREQUIRED,INVALID_RECORD_IDorDUPLICATE_RECORD(a record may appear once per batch),changes[i].recordREQUIRED,changes[i].versionINVALID_VERSION, orchanges[i].record.<field>with the codes of *Create a record set*.UNKNOWN_FIELD: the body has a field this endpoint does not take (named infield). Remove it or fix its spelling. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
DNS_UNAVAILABLE: Pantech DNS is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X POST "https://api.pantechdynamics.com/public/v1/dns/zones/dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w/records/batch" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"changes": [
{
"action": "create",
"record_id": "dnsr_06gk3x9tq7m2v8r4y1c5d0zp8w",
"version": 1,
"record": {
"name": "www",
"type": "A",
"ttl": 300,
"values": [
"values"
],
"allow_private": true,
"comment": "comment"
}
}
]
}'{
"data": [
{
"id": "dnsr_06gk3x9tq7m2v8r4y1c5d0zp8w",
"zone_id": "dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "www",
"fqdn": "www.example.com",
"type": "A",
"ttl": 300,
"values": [
"<server-public-ip>",
"<second-server-public-ip>"
],
"allow_private": true,
"comment": "comment",
"managed": true,
"status": "active",
"failure_code": null,
"version": 1,
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}
]
}Export a zone file
The zone as a BIND zone file (RFC 1035 master file format), with absolute names, one line per value, sorted by name and type. Record sets being deleted are left out. Downloaded as <zone>.zone.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….
Path parameters
zone_idstringrequiredThe zone's id (
dnsz_…).
Response 200
The zone file. No body.
Errors
- 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks the scope this endpoint needs (readfor GET,writefor changes; an AI app's key also needsdeletefor a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.FORBIDDEN: the member who created the key may not do this in the organization. Use a key created by an owner or admin.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (Pantech-Client: mcp/…). An owner can turn it on in the console under Organization › AI apps. - 404
DNS_ZONE_NOT_FOUND: no DNS zone with this id in your organization. List your zones to find it.RESOURCE_NOT_FOUND: the id is not a DNS zone id (dnsz_…). Check the id. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
DNS_UNAVAILABLE: Pantech DNS is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl "https://api.pantechdynamics.com/public/v1/dns/zones/dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w/export" \
-H "Authorization: Bearer $PANTECH_API_KEY"Import a zone file
Reads a BIND zone file of up to 2 MiB and makes the zone match it: a name and type in the file that the zone has is updated when its TTL or values differ, one it does not have is created. $ORIGIN, $TTL, comments, relative names, @, omitted names and parenthesised records are understood; $INCLUDE and $GENERATE are not. The file's SOA and apex NS are ignored: Pantech manages them. With replace: true, record sets not in the file are deleted too, which needs, from an AI app's key, the delete scope.
At most 1,000 changes, applied all or nothing like a batch. Owners and admins only.
Idempotency: importing the same file again changes nothing and returns an empty list.
Headers
AuthorizationstringrequiredBearerand your API key:Bearer PAN_….Idempotency-KeystringrequiredA new value, such as a UUID, for each change. Resend with the same value to retry safely.
At most 255 characters.
Path parameters
zone_idstringrequiredThe zone's id (
dnsz_…).
Body
application/jsonzone_filestringrequiredA BIND zone file, at most 2 MiB.
replacebooleanAlso delete record sets that are not in the file. Defaults to false.
Response 202
Every record set the import created, changed or is deleting.dataarray of DNSRecordrequiredEvery record set changed, in the order of the changes.
Show 15 child fieldsHide child fields
idstringrequirede.g.
dnsr_....zone_idstringrequiredThe zone (
dnsz_…).namestringrequiredRelative to the zone:
@for the apex,www,*.dev,_dmarc.fqdnstringrequiredThe absolute name, without a trailing dot.
typestringrequiredSOAonly for the managed apex record.One of
A,AAAA,CNAME,MX,TXT,SRV,CAA,NS,PTR,SOA.ttlintegerrequiredSeconds resolvers may cache it, 60 to 86400.
valuesarray of stringrequiredIts values, canonical and sorted: host names with a trailing dot, TXT as quoted 255-byte strings.
allow_privatebooleanrequiredWhether private and carrier-grade NAT addresses are allowed in
values.commentstringrequiredYour note about it; may be empty. Never published in DNS.
managedbooleanrequiredTrue for the apex
SOAandNS, which Pantech manages: read-only.statusstringrequiredpendinguntil its latest change is live,active,deleting, orfailed(seefailure_code; the last values that applied keep answering).One of
pending,active,deleting,failed.failure_codestring or nullrequiredWhy its latest change failed, e.g.
invalid_change. Null unlessfailed.versionintegerrequiredIncreases with every change; send it as
If-Matchto change only what you read.created_atstringrequiredWhen it was created (RFC 3339, UTC).
updated_atstringrequiredWhen it last changed (RFC 3339, UTC).
Errors
- 400
IDEMPOTENCY_KEY_REQUIRED: theIdempotency-Keyheader is missing. Send a new unique value, such as a UUID, with every write.INVALID_IDEMPOTENCY_KEY: theIdempotency-Keyheader is longer than 255 characters. Use a shorter value.INVALID_REQUEST_BODY: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint. - 401
UNAUTHENTICATED: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. SendAuthorization: Bearer PAN_…with a valid key; create one in the console under Organization › API keys. - 403
INSUFFICIENT_SCOPE: the API key lacks thewritescope. Use a key with that scope.FORBIDDEN: the member who created the key is not an owner or admin. Use a key created by one.AI_APPS_DISABLED: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.INSUFFICIENT_SCOPE:replaceis true, and this AI app's key lacksdelete.DNS_RECORD_LIMIT_REACHED: the file would take the zone past 10,000 record sets. - 404
DNS_ZONE_NOT_FOUND: no DNS zone with this id in your organization. List your zones to find it.RESOURCE_NOT_FOUND: the id is not a DNS zone id (dnsz_…). Check the id. - 409
DNS_CNAME_CONFLICT: the file puts a CNAME beside another record;errors[0].fieldnames the change.DNS_ZONE_SUSPENDED: an operator suspended the zone. Contact support.DNS_ZONE_NOT_WRITABLE: the zone is being deleted or has failed. Create the zone again to manage its records. - 413
REQUEST_TOO_LARGE: the body is larger than 4 MiB. A zone file may be up to 2 MiB. - 422
INVALID_ZONE_FILE: the zone file does not parse, or a record in it is invalid.errors[0](fieldzone_file) says which line or record and why.TOO_MANY_CHANGES: the file would make more than 1,000 changes. Import it in parts.VALIDATION_FAILED:zone_fileREQUIRED.UNKNOWN_FIELD: the body has a field this endpoint does not take (named infield). Remove it or fix its spelling. - 429
RATE_LIMITED: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. WaitRetry-Afterseconds, then retry. For authenticated quota denials,RateLimit-Scopeidentifies the denying quota andRateLimit-Resetreports its remaining window in seconds. - 503
DNS_UNAVAILABLE: Pantech DNS is not available on this deployment yet. Try again later.SERVICE_UNAVAILABLE: request quota storage is unavailable. Wait a few seconds, then retry.
Every code is explained in Errors.
curl -X POST "https://api.pantechdynamics.com/public/v1/dns/zones/dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w/import" \
-H "Authorization: Bearer $PANTECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"zone_file": "$ORIGIN example.com.\n$TTL 300\nwww IN A <server-public-ip>\n"
}'{
"data": [
{
"id": "dnsr_06gk3x9tq7m2v8r4y1c5d0zp8w",
"zone_id": "dnsz_06gk3x9tq7m2v8r4y1c5d0zp8w",
"name": "www",
"fqdn": "www.example.com",
"type": "A",
"ttl": 300,
"values": [
"<server-public-ip>",
"<second-server-public-ip>"
],
"allow_private": true,
"comment": "comment",
"managed": true,
"status": "active",
"failure_code": null,
"version": 1,
"created_at": "2026-10-03T09:30:00Z",
"updated_at": "2026-10-03T09:30:00Z"
}
]
}