Manage and update your Suppression list using the API.11
REST Methods
Note: API is case sensitive. Make all parameters entries lower case. All parameters in red
are required.
Note: Write actions (POST, UPDATE, DELETE) may take several minutes to propagate and be reflected by the API. If a subsequent read request fails to reflect your changes, please wait a few minutes and try again.
VERB | RESOURCE | PARAMETERS | DESCRIPTION |
GET | /suppressions |
|
Returns a list of suppressed email addresses for the specified account, filtered by date range. |
GET | /suppressions/count |
|
Returns the total number of email addresses in the suppression list for the specified account, filtered by date range. |
POST | /suppressions |
|
Adds one or more recipients to the user’s suppression list. This has the effect of preventing any email from being sent to the recipient in the future. |
POST | /suppressions/activate |
|
Removes one or more recipients from the user’s suppression list. |
GET /suppressionsReturns a list of suppressed email addresses for the specified account, filtered by date range. Parameters
Example Request curl --request GET "https://emailapi.dynect.net/rest/json/suppressions?apikey=ABC123XYZ" Example Results (JSON) {"response":{"status":200,"message":"OK","data":{"suppressions":[{"emailaddress":"email@domain.org","suppresstime":"2011-05-27T08:50:12+01:00","suppressionid":"913839"},...]}} GET /suppressions/countReturns the total number of email addresses in the suppression list for the specified account, filtered by date range. Parameters
Example Request curl --request GET "https://emailapi.dynect.net/rest/json/suppressions/count?apikey=ABC123XYZ" Example Results (JSON) {"response":{"status":200,"message":"OK","data":{"count":"708"}}} POST /suppressionsAdds one or more recipients to the user’s suppression list. This has the effect of preventing any email from being sent to the recipient in the future. Parameters
Example Request curl --request POST "https://emailapi.dynect.net/rest/json/suppressions" --data "apikey=ABC123XYZ&emailaddress=example@example.com" Example Results (JSON) {"response":{"status":200,"message":"OK","data":{}}} POST /suppressions/activateRemoves one or more recipients from the user’s suppression list. This will allow you to send email to the recipient’s email address again.
Example Request curl --request POST "https://emailapi.dynect.net/rest/json/suppressions/activate" --data "apikey=ABC123XYZ&emailaddress=example@example.com" Example Results (JSON) {"response":{"status":200,"message":"OK","data":[]}} |