v14

latestOpenAPI 3.0.32026-08-04377889.4 MB
dns

Create a DNS record

Creates a DNS record for a domain.

post/v2/domains/{domain}/records

Path parameters

domainstring required

The domain used to create the DNS record.

Example:example.com

The domain used to create the DNS record.

Query parameters

teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l

The Team identifier to perform the request on behalf of.

slugstring
Example:my-team-url-slug

The Team slug to perform the request on behalf of.

Request body

OR
OR
OR
OR
OR
OR
OR
OR
OR

Example request

{
  "name": "subdomain",
  "ttl": 60,
  "value": "192.0.2.42",
  "comment": "used to verify ownership of domain"
}

Response

Successful response showing the uid of the newly created DNS record.

OR

Example response

{
  "uid": "rec_V0fra8eEgQwEpFhYG2vTzC3K"
}