POST
/
webhook
/
contact
/
delete
cURL
curl --request POST \
  --url https://webhook.cocoonmail.com/webhook/contact/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jsmith@example.com"
}'
{
  "success": true,
  "message": "Contact deleted successfully"
}

Delete contact

Use this endpoint to delete an existing contact

Response fields

PropertyDescription
400Bad request
401Request authentication
403Too many bad requests. Temparory block
406Missing accept header. For example : Accept: application/json
429Too many requests/ Rate limit exceeded
500Internal server error
{
  "success": true,
  "message": "Contact deleted successfully"
}

Authorizations

Authorization
string
header
required

Use your API key with the 'Bearer ' prefix

Body

application/json

Response

201
application/json

Contact deleted successfully.

The response is of type object.