suppression-get

Gets a reason and date of email suppression.

https://dns-name/suppression/get

Request Body

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

{
  "searching": true,
  "receiver_email": "string"
}

Request Parameters

NameTypeDescription
emailString
Required
Email to get suppression details for
searchingBOOLEANIf a user has projects functionality enabled, he/she can pass all_projects=true to search in all projects’ data

Response Body

{
  "status": "string",
  "email": "string",
  "suppressions": [
    {
      "reason": "string",
      "source": "string",
      "created": "string",
      "project_id": "string",
      "is_deletable": true
    }
  ]
}

HTTP Code 200:

Method call has succeeded (but suppressions array can be empty if sending to email is not suppressed)

Response Parameters

NameTypeDescription
statusSTRING
REQUIRED
«Success» string
emailSTRING
REQUIRED
The email for which suppression details were requested
suppressionsARRAY
REQUIRED
Array of suppression objects
»project_idSTRINGUnqiue project identifier, ASCII string up to 36 characters long
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.
»sourceSTRING
REQUIRED
Source of email being suppressed. One of:

user – suppressed by user with SUPPRESSION-SET
system – sending to the email is prohibited by system, for example due to multiple hard bounces;
subscriber – the recipient reported spam or unsubscribed in the previous emails.
»is_deletableBOOLEAN
REQUIRED
Is it possible to delete this suppression by calling suppression/delete method
createdSTRING (UTC-DATA-TIME)When suppression was created, in UTC timezone in “YYYY-MM-DD hh:mm:ss” format

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