GET
/
subaccount
/
suppression
Get all suppressions
curl --request GET \
  --url https://api.sendpost.io/api/v1/subaccount/suppression \
  --header 'X-SubAccount-ApiKey: <api-key>'
[
  {
    "id": 35,
    "reason": 1,
    "email": "gilfoyle@piedpiper.com",
    "created": 1567512491588025000
  },
  {
    "id": 37,
    "reason": 0,
    "email": "jianyang@gmail.com",
    "created": 1567512491588023000
  }
]

Authorizations

X-SubAccount-ApiKey
string
header
required

This api key can be used only for sub account level operations

Query Parameters

from
string<date>
required

Start date for the suppression records

to
string<date>
required

End date for the suppression records (Note: from should be earlier than to and the date range should not exceed 60 days)

limit
integer
default:20

Number of records to return per request

offset
integer
default:0

Number of initial records to skip

Case-insensitive search against suppression email

type
enum<string>

Type of suppression. Valid values: hardBounce, manual, spamComplaint, unsubscribe

Available options:
hardBounce,
manual,
spamComplaint,
unsubscribe

Response

200 - application/json

A list of suppressions

The response is of type object[].