Skip to main content

Delete Contact

Delete a contact from your easymail account.

Request

DELETE /contacts/{uuid}

Path Parameters

ParameterTypeDescription
uuidstringContact's UUID

Example Request

curl -X DELETE "https://email.easy.tools/api/v1/contacts/550e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Response

Success Response (204 No Content)

No response body.

Error Responses

Forbidden Error (403)

Returned when trying to delete a contact that is managed by Easycart.

{
"error": {
"code": "FORBIDDEN",
"message": "Contact with UUID '550e8400-e29b-41d4-a716-446655440000' cannot be deleted because it is managed by Easycart"
}
}

Not Found Error (404)

{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Contact with UUID '550e8400-e29b-41d4-a716-446655440000' not found"
}
}