Account Custom Nameservers
custom_nameservers
Methods
post/accounts/{account_id}/custom_ns
Add Account Custom Nameserver
Delete Account Custom Nameserver -> SinglePage<string>
delete/accounts/{account_id}/custom_ns/{custom_ns_id}
Delete Account Custom Nameserver
Security
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
path Parameters
account_id: string
(maxLength: 32)Account identifier tag.
custom_ns_id: string
(format: hostname)The FQDN of the name server.
Response fields
errors: Array<{ code, message, documentation_url, 1 more... }>
messages: Array<{ code, message, documentation_url, 1 more... }>
success: true
Whether the API call was successful.
result: Array<string>
Optional
result_info: { count, page, per_page, 1 more... }
Optional
Request example
200Example
get/accounts/{account_id}/custom_ns
List an account's custom nameservers.
Domain types
CustomNameserver = { dns_records, ns_name, status, 2 more... }
A single account custom nameserver.