Skip to main content
POST
/
suppression-groups
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
  }
}

Authorizations

Authorizations
string | header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

name
string
required
The display name of the suppression group. Must be between 1 and 200 characters.
description
string
An optional human-readable description of the suppression group.
isActive
boolean
Whether the suppression group is active. Defaults to true if not specified.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Required string length: 1 - 200
Example:

"Marketing Unsubscribes"

description
string
Example:

"Users who opted out of marketing"

isActive
boolean
Example:

true

Response

200 - application/json

The created suppression group.

success
boolean
Example:

true

data
object