Suppress a contact (adds a workspace suppression)
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.
POST
bearerAuthheader
AuthorizationBearer <token>Mailly API key(Authorization: Bearer )
externalContactId*stringStable key of the external contact
application/json- body
reason?stringValue in
"unsubscribed""hard_bounce""complaint""manual"source?string[key: string]?unknownSuppressed
application/json- response
success*booleansuppressionId*stringcontact*[key: string]?unknowncurl -X POST 'https://api.mailly.site/contacts/string/suppress' \ -H 'Content-Type: application/json' \ -d '{ "property1": null, "property2": null}'{ "success": true, "suppressionId": "string", "contact": { "property1": null, "property2": null }, "property1": null, "property2": null}Soft-delete a contact (also adds a workspace suppression) DELETE
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.
Audiences
Static audiences and dynamic segments: endpoints of the Mailly email API for AI agents, with parameters, responses and code samples.