Skip to main content
POST
Create Cloudflare Dns Record

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Path Parameters

zone_id
string
required

Query Parameters

credential_name
string | null

Which connected Cloudflare credential to use. Omit when the organisation has exactly one.

Body

application/json
name
string
required

Record name. A bare label is qualified against the domain; '@' means the apex.

record_type
enum<string>
required
Available options:
A,
AAAA,
CNAME,
MX,
NS,
TXT
content
string
required
ttl
integer | null

TTL in seconds, or 1 for automatic. Omit for automatic.

proxied
boolean | null
priority
integer | null

Required for MX records; rejected for every other supported type.

comment
string | null

Response

Successful Response

id
string
required
zone_id
string
required
zone_name
string
required
name
string
required
record_type
string
required
content
string
required
ttl
integer
required
is_ttl_automatic
boolean
required
proxied
boolean
required
proxiable
boolean
required
tags
string[]
required
managed_by
enum<string>
required
Available options:
ankra,
external
priority
integer | null
comment
string
created_on
string
modified_on
string