Skip to main content

Add multiple emails to suppression list

Description

Adds single or multiple email addresses to a suppression list.

Request URL

Method: POST

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

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
emailsJSON array["john@example.com"]YesEmail addresses list
formatstring"json"NoResponse data format.
By default –json
idint1YesSuppression list ID

Request example

{
"token": "abcdefghijklmnqrstuvwxyz",
"emails": [
"example@example.com",
"example1@example.com",
"example2@example.com"
],
"id": 3
}

Response example

{
"error": 0,
"error_text": "Successful operation",
"total_count": 3,
"total_duplicated": 0,
"total_imported": 3,
"total_invalid": 0
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
total_countintTotal number of emails
total_duplicatedintEmails previously added to the stop list
total_importedintEmails added
total_updatedintEmails updated (if matched)