curl --request POST \
--url 'https://api.autosend.com/v1/suppression-groups/emails/suppress' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"emails": ["[email protected]", "[email protected]"],
"groupId": "AB12C3",
"reason": "unsubscribed",
"isGlobal": false
}'
{
"success": true,
"data": {
"suppressed": 2
}
}
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
An array of valid email addresses to suppress. Must contain at least one address.
The ID of the suppression group to add the addresses to. Omit to add to the default group.
The reason for suppression (e.g. unsubscribed, bounced, spam_complaint). Stored on each entry for reporting.
When true, adds the entries to the global suppression list rather than a project-specific group.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Emails suppressed successfully.