Skip to documentation
Dashboard
Sending Addresses

Set the default Sending Address

Choose the ready Sending Address RouteKite should use by default.

POST/api/v1/sending-addresses/{senderId}/set-default
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

Path parameters

Path parameters
NameTypeRequirementDescription
senderIduuidRequiredSending Address identifier returned by RouteKite.

Response

Response fields
NameTypeRequirementDescription
objectstringAlwaysAlways sending_address.
iduuidAlwaysSending Address identifier.
domain_iduuidAlwaysOwning domain.
emailemailAlwaysVerified From address.
display_namestringAlwaysName recipients see.
reply_toemail | nullAlwaysOptional reply destination.
statusstringAlwaysready or disabled.
is_defaultbooleanAlwaysWhether this is the workspace default.

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.