Delete a sending domainMenu

Delete a sending domain

DELETE/v1/sending-domains/{id}

Requires an API key with the domains:write scope. About keys and scopes

Works with integration, agent and partner keys.

A repeat after success returns 404 or 409: treat that as done. About idempotency

Removes the domain. Refused with 409 IN_USE, its details the SendingDomainUsage of GET /v1/sending-domains/{id}/usage, while a campaign not yet sent, a journey not ended, a template's transactionalDefaults.from or the workspace's default sender is on it: change those first. Transactional sends name their sender per request, so they are not checked. A removed domain can be added again.

Path parameters

idstringrequired

The sending domain's id.

uuid

Header parameters

Kirora-Workspacestringoptional

Partner keys only: the child workspace to act in, by the external id the partner gave it. Without it, a partner key acts in its own workspace. Any other key that sends it is refused with 403, and an unknown workspace is 404.

pattern ^[A-Za-z0-9._:-]{1,128}$

Returns

Returns 204 No Content with an empty body. It can also return 409 Conflict; see the statuses below. Otherwise returns an error; Errors lists every code and which to retry.

  • 204 No ContentThe domain was removed.
  • 409 ConflictThe request conflicts with current state — a duplicate unique value, or a resource whose status does not allow this operation.