This API is currently in BETA. If you find any issues, please report them to our technical support
data[])For /cloudflare/dnsendpoints,data[](alias:rrdatas[]) is an array of strings.Important: Cloudflare stores multi-value RRsets as multiple separate DNS records.
Sodata: ["v1", "v2"]will create/update 2 Cloudflare DNS records.
| Type | What to put in data[] | Example |
|---|---|---|
| A | IPv4 address | ["203.0.113.10"] |
| AAAA | IPv6 address | ["2001:db8::10"] |
| CAA | flags tag "value" | ["0 issue \"letsencrypt.org\""] |
| CNAME | target hostname (trailing dot optional) | ["target.example.com."] |
| DNSKEY | Cloudflare content format | ["257 3 13 <publicKey>"] |
| DS | keytag algorithm digestType digest | ["2371 13 2 9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F00A08"] |
| HTTPS | Cloudflare content format | ["1 . alpn=h3,h2 ipv4hint=203.0.113.10"] |
| MX | priority host | ["10 mx1.example.com.","20 mx2.example.com."] |
| NAPTR | order preference flags service regexp replacement | ["100 10 \"U\" \"E2U+sip\" \"!^.*$!sip:info@example.com!\" ."] |
| NS | nameserver hostname (trailing dot optional) | ["ns1.example.com.","ns2.example.com."] |
| PTR | pointer target hostname (trailing dot optional) | ["ptr-target.example.com."] |
| SMIMEA | Cloudflare content format | ["3 1 1 <hex>"] |
| SPF | (legacy) SPF string | ["v=spf1 include:_spf.google.com ~all"] |
| SRV | priority weight port target | ["10 5 5060 sip.example.com."] |
| SSHFP | algorithm fptype fingerprint | ["2 1 1234567890abcdef1234567890abcdef12345678"] |
| SVCB | Cloudflare content format | ["1 . alpn=h3"] |
| TLSA | usage selector matchingType certificateAssociationData | ["3 1 1 9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F00A08"] |
| TXT | any text string | ["google-site-verification=xxxxxxxxxxxxxxxxxxxx"] |
| URI | priority weight target | ["10 1 https://example.com/path"] |
| Other Cloudflare types | Put exactly what Cloudflare expects in content | ["<cloudflare-content-format>"] |
example.com.) — API will normalize it for Cloudflare.name must start with _service._proto (e.g. _sip._tcp).name="_sip._tcp" or name="_sip._tcp.www".proxied: supported only for A, AAAA, CNAME (Cloudflare limitation).SOA and apex NS (name=@) cannot be modified via API.