suppression-create

Adds an email address to the suppression list. You can always remove this address from the suppression list later using the suppression-delete method.

https://dns-name/suppression/create

Request Body

POST https://dns-name/suppression/create
Content-Type: application/json
X-API-KEY: Value

{
  "email": "string",
  "reason": "string",
  "created": "string"
}

Request Parameters

NameTypeDescription
emailSTRING
REQUIRED
Email to add in suppression list
reasonSTRING
REQUIRED
Cause of email being suppressed. One of:

unsubscribed: email is unsubscribed;
temporary_unavailable: the email address is unavailable. This means that over the next three days sending to this address will return an error. Email may be temporarily unavailable due to several reasons, e.g.:
a. a previous email has been rejected by the recipient’s server for spam;
b. the recipient’s mailbox is full or is not used;
c. recipient’s domain does not accept mail;
d. sending server was rejected due to blacklisting;
permanent_unavailable: the email address is permanently unavailable due to multiple hard bounces;
complained: the recipient reported spam in the previous emails;
blocked: sending to the email is prohibited by administration of GMS.

We may add some new causes in the future.
createdSTRING (UTC-DATA-TIME)When suppression was created, in UTC timezone in “YYYY-MM-DD hh:mm:ss” format

Response Body

{
  "status": "string"
}

HTTP Code 200:

Email has been added to the suppression list

Response Parameters

NameTypeDescription
statusSTRING
REQUIRED
«Success» string

HTTP Code default:

Error occurred
{
  "status": "string",
  "code": 0,
  "message": "string"
}
NameTypeDescription
statusSTRING
REQUIRED
«Error» string
messageSTRING
REQUIRED
Human-readable error message in English
codeINTEGER
REQUIRED
API Error code