Support

Create a DNS record for a zone

View as Markdown

Creates a new DNS record in the GoDaddy-managed zone.

Full description

Creates a new DNS record in the GoDaddy-managed zone. Changes are applied synchronously; no operation polling required.

POST
/zones/{zone}/dns-records

Authorization

bearerAuth
AuthorizationBearer <token>

Personal Access Token (PAT). Generate one from the developer dashboard. Pass as: Authorization: Bearer <token>.

In: header

Path Parameters

zone*string

The domain name in punycode A-label form (for example, example.com). For IDNs, use the punycode representation.

Header Parameters

X-Request-Id?string

Optional client-generated request correlation identifier, propagated across services and returned in the response X-Request-Id header.

Formatuuid

Request Body

application/json

A single DNS resource record within a zone.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/zones/example.com/dns-records" \  -H "Content-Type: application/json" \  -d '{    "name": "@",    "type": "A",    "data": "192.0.2.1",    "ttl": 3600  }'
{  "recordId": "string",  "name": "string",  "type": "A",  "data": "string",  "ttl": 600,  "priority": 0,  "service": "string",  "port": 0,  "weight": 0,  "protocol": "string",  "flag": 0,  "tag": "string"}

Agent & Automation Notes

Scopesdomains.domain:read, domains.domain:create, domains.dns:update, domains.nameserver:update
Rate limit60 req/min per credential
On failureGET operations are safe to retry. POST registrations use Idempotency-Key. Poll async operations — do not resubmit.

Last updated on

How is this guide?