Keplars
Domains

Delete domain

DELETE
/api/v1/public/domains/delete-domain/{domainID}

Permanently removes a custom domain from your workspace and disables all associated sending configuration. This action is irreversible. Requires domains:manage scope.

Authorization

bearerAuth
AuthorizationBearer <token>

Bearer token authentication. Use a Regular API key for email sending, or an Admin API key for marketing and automation endpoints.

Get your API keys from Settings → API Keys (regular) or Settings → Admin API Keys (admin) in the dashboard.

In: header

Path Parameters

domainID*string

Domain ID to delete.

Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://api.keplars.com/api/v1/public/domains/delete-domain/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "success": true,
  "message": "Success"
}
{
  "success": false,
  "error": "VALIDATION_ERROR",
  "message": "Field 'to' is required"
}
{
  "success": false,
  "error": "VALIDATION_ERROR",
  "message": "Field 'to' is required"
}
{
  "success": false,
  "error": "VALIDATION_ERROR",
  "message": "Field 'to' is required"
}