Skip to main content
POST
Create DNS record

Authorizations

Authorization
string
header
required

Your API key as it is, without Bearer. API access is off for new accounts: until it is turned on under Settings > API, every request answers 403 with API access is turned off for this account. Turn it on under Settings > API. If the account lists allowed IPs, a request from any other address answers 403 with This API key is not allowed from <address>.

Path Parameters

domain
integer
required

Domain ID

Body

application/json

Payload for creating or updating a DNS record.

type
enum<string>
required

DNS record type.

Available options:
A,
AAAA,
CNAME,
MX,
TXT,
NS,
SRV,
CAA
name
string
required

Record name. Use @ for the apex/root.

Maximum string length: 255
Example:

"@"

value
string
required

Record value (e.g. an IP address, hostname, or text).

Maximum string length: 1000
Example:

"185.241.208.160"

ttl
integer
default:3600

Time-to-live in seconds (60-86400). Defaults to 3600.

Required range: 60 <= x <= 86400
priority
integer | null

Priority for MX and SRV records.

Required range: 0 <= x <= 65535

Response

DNS record created successfully.

status
boolean
Example:

true

message
string
Example:

"DNS record added"

record
object

DNS record object.