Account Custom Nameservers
custom_nameservers
Methods
post/accounts/{account_id}/custom_ns
Add Account Custom Nameserver
Security
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Accepted Permissions (at least one required)
Account Settings Write
path Parameters
account_id: string
(maxLength: 32)Account identifier tag.
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.
A single account custom nameserver.
Request example
200Example
Delete Account Custom Nameserver -> SinglePage<string>
delete/accounts/{account_id}/custom_ns/{custom_ns_id}
Delete Account Custom Nameserver
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.