curl --request DELETE \
--url https://api.autosend.com/v1/senders/60d5ec49f1b2c72d9c8b4567 \
--header 'Authorization: Bearer <token>'
{
"success": true,
"message": "Authenticated sender deleted successfully"
}
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier of the sender to delete (id).Example: "60d5ec49f1b2c72d9c8b4567"
Response
Sender deleted successfully
Indicates if the request was successfulExample: true
Confirmation messageExample: "Authenticated sender deleted successfully"
Error Responses
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"
}
Returned when no sender with the given ID exists on the project.{
"success": false,
"error": "Authenticated sender not found"
}