Skip to content

API reference

Suppressions API

Addresses isent will not send to.

Paths are relative to https://isent.dev/api/v1. Every request needs an API key; see API overview for errors, rate limits and pagination.

List suppressions

GET/suppressions

Parameters

List suppressions: parameters
NameInTypeDescription
limitquerynumberItems per page, 1 to 100 (default 20).
afterquerystringReturn items after this id (the last id of the previous page).
reasonquery"bounce" | "complaint" | "unsubscribe" | "manual"None
searchquerystringNone

Responses

List suppressions: responses
StatusMeaning
200OK.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).
cURL
curl -X GET https://isent.dev/api/v1/suppressions \
  -H "Authorization: Bearer $ISENT_API_KEY"

Suppress an address

POST/suppressions

Idempotent: an address already on the list is returned as is.

Body

A JSON object.

Suppress an address: body
NameTypeDescription
emailRequiredstringNone
detailstringAt most 300 characters.

Responses

Suppress an address: responses
StatusMeaning
200OK.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
409Conflict with the current state, or an idempotency key reused.
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).

Remove a suppression

DELETE/suppressions/{email}

By address or id. isent can send to it again.

Parameters

Remove a suppression: parameters
NameInTypeDescription
emailRequiredpathstringNone

Responses

Remove a suppression: responses
StatusMeaning
200OK.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
404Not found.
409Conflict with the current state, or an idempotency key reused.
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).
cURL
curl -X DELETE https://isent.dev/api/v1/suppressions/{email} \
  -H "Authorization: Bearer $ISENT_API_KEY"