Skip to main content
DELETE
/
contacts
/
email
/
userId
/
{userId}
curl --request DELETE \
  --url https://api.autosend.com/v1/contacts/email/userId/{id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Contact deleted successfully"
}
curl --request DELETE \
  --url https://api.autosend.com/v1/contacts/email/userId/{id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Contact deleted successfully"
}

Authorizations

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

Path Parameters

userId
string
required
Your application’s user identifierExample: "user_12345"

Response

Contact deleted successfully
success
boolean
Example: true
message
string
Confirmation message.Example: "Contact deleted successfully"

Error Responses

404 - Contact not found
object
Returned when no contact with the given user ID exists on the project.
{
  "success": false,
  "error": {
    "message": "Contact not found",
    "code": "CONTACT_NOT_FOUND",
    "status": 404
  }
}
500 - Deletion failed
object
Returned when a database error occurs during deletion.
{
  "success": false,
  "error": {
    "message": "Contact deletion failed. Please try again.",
    "code": "CONTACT_DELETION_FAILED",
    "status": 500
  }
}