Delete contact
Delete contact using UUID or email (URL encoded)
delete
Authorizations
Api-TokenstringRequired
Pass the API token in the Api-Token
Path parameters
contact_identifierstring · uuid or emailRequiredExample:
Contact UUID or Email
018dd5e3-f6d2-7c00-8f9b-e5c3f2d8a132Responses
204
Contact successfully deleted
No content
401
Returns unauthorized error message. Check your credentials.
application/json
403
Returns forbidden error message. Check your permissions.
application/json
404
No contact for the given identifier. The JSON body uses an errors string (not the error key used by some other 404 responses).
application/json
429
Rate limit exceeded for the current account.
application/json
500
Internal error. Retry later or contact support.
application/json
delete/api/contacts/{contact_identifier}
curl -X DELETE https://mailtrap.io/api/contacts/{contact_identifier} \
-H 'Authorization: Bearer YOUR_API_KEY'
No content
Last updated
Was this helpful?

