Skip to main content
DELETE
/
domains
/
{domainId}
curl --request DELETE \
  --url https://api.autosend.com/v1/domains/60d5ec49f1b2c72d9c8b1111 \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Domain deleted successfully"
}
curl --request DELETE \
  --url https://api.autosend.com/v1/domains/60d5ec49f1b2c72d9c8b1111 \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Domain deleted successfully"
}

Authorizations

Authorization
string | header
required
Bearer authentication header of the form Bearer <token>, where <token> is your API key.

Path Parameters

domainId
string
required
The id of the domain to remove.

Response

success
boolean
Indicates whether the domain was removed successfully.
message
string
Confirmation message.Example: "Domain deleted successfully"

Error Responses

404 - Domain not found
object
Returned when no domain with the given ID exists on the project.
{
  "success": false,
  "error": {
    "message": "Domain not found",
    "code": "DOMAIN_NOT_FOUND",
    "status": 404
  }
}