Skip to main content
Use this endpoint to add a new DNS record to a domain in your workspace. You can create any standard record type including A, AAAA, CNAME, MX, and TXT, as well as newer types like HTTPS, SVCB, and ALIAS. The response includes the full record object with its assigned id — store that value, as you’ll need it to update or delete the record later.

Endpoint

POST /v1/domains/{domain}/dns

Path Parameters

string
required
The domain name to add the record to (e.g. example.com).

Body Parameters

string
required
The DNS record type. Must be one of: A, AAAA, ALIAS, CNAME, HTTPS, MX, NS, PTR, SRV, SVCB, TLS, TXT.
string
The record name. Use @ to target the domain apex (root). Defaults to @ if omitted.
integer
Time to live in seconds. Defaults to 3600 (1 hour). Values are clamped to the range 6086400.
string
required
The record value. Format depends on the record type — for example, an IPv4 address for A records, or a fully-qualified hostname for CNAME records.

Request Example

Response

200 OK
object
The newly created DNS record.
boolean
true if the domain is still being provisioned at the registrar. The record is saved and will be applied automatically once provisioning completes.
Save the returned id — you’ll need it to update or delete this record later. There’s no other way to address a specific record once it’s been created.

More Examples

Errors