Skip to main content
DELETE
/
senders
/
{senderId}
curl --request DELETE \
  --url https://api.autosend.com/v1/senders/60d5ec49f1b2c72d9c8b4567 \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Authenticated sender deleted successfully"
}
curl --request DELETE \
  --url https://api.autosend.com/v1/senders/60d5ec49f1b2c72d9c8b4567 \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Authenticated sender deleted successfully"
}

Authorizations

Authorizations
string | header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

senderId
string
required
The unique identifier of the sender to delete (id).Example: "60d5ec49f1b2c72d9c8b4567"

Response

Sender deleted successfully
success
boolean
Indicates if the request was successfulExample: true
message
string
Confirmation messageExample: "Authenticated sender deleted successfully"

Error Responses

400 - Sender in use
object
Returned when the sender is used by active campaigns or workflow automations and cannot be deleted.
{
  "success": false,
  "error": "This sender cannot be deleted as it is currently in use by active campaigns or automations"
}
404 - Sender not found
object
Returned when no sender with the given ID exists on the project.
{
  "success": false,
  "error": "Authenticated sender not found"
}