Create a new suppression group for managing email opt-outs by category using the AutoSend API.
curl --request POST \
--url 'https://api.autosend.com/v1/suppression-groups' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Marketing Unsubscribes",
"description": "Users who opted out of marketing",
"isActive": true
}'
{
"success": true,
"data": {
"id": "AB12C3",
"name": "Marketing Unsubscribes",
"description": "Users who opted out of marketing",
"isActive": true,
"isGlobal": false
}
}
curl --request POST \
--url 'https://api.autosend.com/v1/suppression-groups' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Marketing Unsubscribes",
"description": "Users who opted out of marketing",
"isActive": true
}'
{
"success": true,
"data": {
"id": "AB12C3",
"name": "Marketing Unsubscribes",
"description": "Users who opted out of marketing",
"isActive": true,
"isGlobal": false
}
}
<token>, where <token> is your auth token.true if not specified.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
curl --request POST \
--url 'https://api.autosend.com/v1/suppression-groups' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Marketing Unsubscribes",
"description": "Users who opted out of marketing",
"isActive": true
}'
{
"success": true,
"data": {
"id": "AB12C3",
"name": "Marketing Unsubscribes",
"description": "Users who opted out of marketing",
"isActive": true,
"isGlobal": false
}
}