Soft-delete a contact (also adds a workspace suppression)
Soft-delete a contact (also adds a workspace suppression) with the Mailly email API for AI agents: DELETE /contacts/{externalContactId}. Parameters, request body, responses and code samples.
DELETE
bearerAuthheader
AuthorizationBearer <token>Mailly API key(Authorization: Bearer )
externalContactId*stringStable key of the external contact
Deleted
application/json- response
success*booleansuppressionId*stringcontact*[key: string]?unknowncurl -X DELETE 'https://api.mailly.site/contacts/string'{ "success": true, "suppressionId": "string", "contact": { "property1": null, "property2": null }, "property1": null, "property2": null}Import contacts from CSV POST
Import contacts from CSV with the Mailly email API for AI agents: POST /contacts/import. Parameters, request body, responses and code samples.
Suppress a contact (adds a workspace suppression) POST
Suppress a contact (adds a workspace suppression) with the Mailly email API for AI agents: POST /contacts/{externalContactId}/suppress. Parameters, request body, responses and code samples.