Skip to main content

Add email to suppression list

Description

Adds an email address to a suppression list.

Request URL

Method: POST

https://example.com/api/v1.1/suppresses/email_add

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
emailstring"john@example.com"YesEmail address
formatstring"json"NoResponse data format.
By default – json
idint1Yessuppression list ID

Request example

{
"token": "abcdefghijklmnqrstuvwxyz",
"email": "john@example.com",
"id": 1
}

Response example

{
"data": {
"john@example.com": true
},
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text