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/88727c70-1a81-4677-a14f-d2039bfb8a5e" \
-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 '88727c70-1a81-4677-a14f-d2039bfb8a5e' cannot be deleted because it is managed by Easycart"
}
}

Not Found Error (404)​

{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Contact with UUID '88727c70-1a81-4677-a14f-d2039bfb8a5e' not found"
}
}