Mail API reference

Mail API · Contacts

delete/v1/workspaces/{workspace_id}/contacts/{contact}Auth

Delete a contact

Removes the contact, its properties and its topic choices. Emits `contact.deleted`. To stop mailing someone, unsubscribe them instead: a deleted contact that later receives a topic send is refused (`no_consent`), but its opt-out is forgotten.

Path parameters

workspace_id*string · uuid

Id of the workspace.

contact*string

The contact id, or its email address (URL-encoded).

Response · 204

Deleted.

Example

Request

DELETE https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/contacts/{contact}
Authorization: Bearer YOUR_TOKEN