Skip to documentation
Dashboard
Domains

List domains

List sending domains configured in the API key workspace.

GET/api/v1/domains
On this page

Authentication

Send a RouteKite API key as a Bearer token. This endpoint requires the domain:read, domain:manage, or email:send scope.

Required headers
NameTypeRequirementDescription
AuthorizationstringRequiredBearer API key with the required workspace scope.Example: Bearer rk_your_key

Request body

Request fields
NameTypeRequirementDescription
include_archivedbooleanOptionalInclude archived domains. Defaults to false.
limitintegerOptionalReturn 1 to 100 domains. Defaults to 50.

Response

Response fields
NameTypeRequirementDescription
objectstringAlwaysAlways list.
datadomain[]AlwaysWorkspace domains.
countintegerAlwaysReturned item count.

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.