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

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.
data
null
Always null on a successful delete.

Errors

404
object
Returned when no domain with the given domainId exists in the project.

Authorizations

Authorization
string
header
required

API key issued from the Autosend dashboard. Pass as Authorization: Bearer <token>.

Path Parameters

domainId
string
required

The id of the domain.

Pattern: ^[a-f\d]{24}$
Example:

"60d5ec49f1b2c72d9c8b1111"

Response

Domain removed successfully.

success
boolean
Example:

true

data
unknown