DNS Providers

Create a new DNS provider

Changed on

The provider's credentials will be tested before creation. If the connection test fails, the provider will not be created.

post/dns-providers

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Request body

descriptionstring nullable

Optional description

namestring required

User-friendly name

provider_type'cloudflare' | 'bunny' | 'namecheap' | 'route53' | 'digitalocean' | 'gcp' | 'azure' | 'manual' | 'pebble' required

Provider type

Example request

{
  "credentials": {
    "api_user": "your-username"
  },
  "name": "My Cloudflare"
}

Response

DNS provider created

created_atstring required
credentialsunknown required
descriptionstring nullable
flat_hostnames_supportedboolean required

Whether this provider benefits from the flat hostname mode (e.g. Cloudflare Universal SSL). The UI surfaces/recommends the Flat toggle when true.

idinteger required
is_activeboolean required
last_errorstring nullable
last_used_atstring nullable
namestring required
provider_typestring required
updated_atstring required

Changes

    • breaking

      removed subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 subschema #6 subschema #7 from the credentials request property oneOf list

    • info

      added subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 subschema #6 subschema #7 to the credentials request property oneOf list

    • breaking

      removed subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 subschema #6 subschema #7 from the credentials request property oneOf list

    1 more change in this revision