Skip to documentation
Dashboard
Domains

Add a domain

Register one sending domain and return its next setup action.

POST/api/v1/domains
On this page

Authentication

Send a RouteKite API key as a Bearer token. This endpoint requires the domain:manage scope.

Required headers
NameTypeRequirementDescription
AuthorizationstringRequiredBearer API key with the required workspace scope.Example: Bearer rk_your_key
Content-TypestringRequiredUse application/json.Example: application/json

Request body

Request fields
NameTypeRequirementDescription
domainhostnameRequiredA registrable domain such as example.com.

Response

Response fields
NameTypeRequirementDescription
objectstringAlwaysAlways domain.
iduuidAlwaysDomain identifier.
namehostnameAlwaysNormalized sending domain.
statusstringAlwayswaiting_for_dns, ready, needs_attention, or archived.
sending_readybooleanAlwaysWhether verified Sending Addresses can be used.
dns_records_urlstringAlwaysRoute for the exact DNS records.
last_checked_atdate-time | nullAlwaysLatest verification check.

Manager authorization

The API key must have domain:manage and must have been created by a current workspace owner or admin.

Errors

StatusCodeWhat it meansWhat to do
401UNAUTHORIZEDThe API key is invalid.Check the Bearer header.
403FORBIDDENThe key cannot read sending configuration.Use domain:read, domain:manage, or legacy email:send access.
404DOMAIN_NOT_FOUNDThe domain is not in this workspace.Check the domain ID and API key workspace.
429RATE_LIMITEDToo many requests were made.Honor Retry-After before retrying.
503SETUP_UNAVAILABLEConfiguration could not be loaded.Retry after a short delay.
409DOMAIN_ALREADY_EXISTSThe domain is already configured.Use the existing domain or choose another.
409DOMAIN_NOT_READYDNS verification is incomplete.Publish every required record and verify the domain.
422SENDING_ADDRESS_INVALIDThe address does not match the selected domain.Use an address on the verified domain.