Skip to main content

Delete Domain

Remove a sending domain. Its addresses can no longer be used as the from of an email or a campaign.

Registering the same domain again later issues new DKIM records, so the ones already published at your DNS provider have to be replaced.

Endpoint​

DELETE /email/domains/:id

Returns: 200 OK

Headers​

HeaderValueRequired
AuthorizationBearer <your-api-key>Yes

Path Parameters​

ParameterTypeDescription
idstringThe domain ID

Response​

{
"object": "domain",
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
"deleted": true
}

Examples​

curl -X DELETE "https://api.arsel.sa/v1/email/domains/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a" \
-H "Authorization: Bearer $ARSEL_API_KEY"

Rate Limit​

This endpoint allows 10 requests per 60-second window per organization, separate from the default limit.

Error Responses​

{
"status_code": 404,
"name": "not_found",
"message": "Domain not found"
}