Suppression Lists API
- Table of Contents
- Suppression List Attributes
- Suppressed Address Attributes
- Address Formats
- Get a list of suppression lists
- Create a new suppression list
- Update an existing suppression list
- Get a list of suppressed addresses
- Add new suppressed addresses
- Remove an address from the suppression list
Suppression List Attributes
id integer |
Internal identifier for this suppression list |
organization_id integer |
The organization this suppression list belongs to |
name string |
Unique name of this list |
global boolean |
This suppression list is global to this system |
mailing_list_id integer |
The mailing list this suppression list is for, or |
Suppressed Address Attributes
id integer |
Internal identifier for this address |
||||||
suppression_list_id integer |
Identifier of the suppression list for this address |
||||||
organization_id integer |
Organization |
||||||
user_id integer |
The user |
||||||
email string |
Address used by this record. See the “Address Formats” table below for details |
||||||
address_type string Type of this address.
|
Address Formats
Get a list of suppression lists
URL
GET /ga/api/v2/suppression_lists
Response
Returns an array of suppression lists.
Create a new suppression list
URL
POST /ga/api/v2/suppression_lists
Post Data
{
"suppression_list": {
"name": "New Suppression List",
"mailing_list_id": null
}
}
Response
Returns a suppression list object.
Update an existing suppression list
URL
PUT /ga/api/v2/suppression_lists/:suppression_list_id
Response
Returns the updated suppression list object.
Get a list of suppressed addresses
URL
GET /ga/api/v2/suppression_lists/:suppression_list_id/suppressed_addresses?page=0&per_page=250
Response
This endpoint returns an array of suppressed addresses.
Add new suppressed addresses
URL
POST /ga/api/v2/suppression_lists/:suppression_list_id/suppressed_addresses/create_multiple
Post Data
This endpoint accepts a data
parameter that contains an array of addresses.
{
"data": [
"@example.com",
"bob@example.com",
"8629e8a722df2930a7513c4955ff886b"
]
}
Remove an address from the suppression list
URL
DELETE /ga/api/v2/suppression_lists/:suppression_list_id/suppressed_addresses/:id
The value of :id
can either be the internal identifier of the suppressed address or the address of the record.