Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Description

Adds one or multiple email domains to a specified suppression list.

Request URL

Method: POST

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

Request parameters

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

Request example

{
    "domains": [
        "example.com"
    ],
    "id": 1,
    "token": "abcdefghijklmnqrstuvwxyz"
}

Response example

{
    "error": 0,
    "error_text": "Successful operation",
    "total_count": 1,
    "total_imported": 1,
    "total_updated": 0
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
  • No labels