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
/suppressions
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | number | Items per page, 1 to 100 (default 20). |
after | query | string | Return items after this id (the last id of the previous page). |
reason | query | "bounce" | "complaint" | "unsubscribe" | "manual" | None |
search | query | string | None |
Responses
| Status | Meaning |
|---|---|
| 200 | OK. |
| 400 | The body is not valid JSON. |
| 401 | Missing, invalid or restricted API key. |
| 403 | Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted). |
| 422 | Validation failed. |
| 429 | Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached). |
curl -X GET https://isent.dev/api/v1/suppressions \
-H "Authorization: Bearer $ISENT_API_KEY"Suppress an address
/suppressions
Idempotent: an address already on the list is returned as is.
Body
A JSON object.
| Name | Type | Description |
|---|---|---|
email | string | None |
detail | string | At most 300 characters. |
Responses
| Status | Meaning |
|---|---|
| 200 | OK. |
| 400 | The body is not valid JSON. |
| 401 | Missing, invalid or restricted API key. |
| 403 | Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted). |
| 409 | Conflict with the current state, or an idempotency key reused. |
| 422 | Validation failed. |
| 429 | Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached). |
Remove a suppression
/suppressions/{email}
By address or id. isent can send to it again.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
email | path | string | None |
Responses
| Status | Meaning |
|---|---|
| 200 | OK. |
| 400 | The body is not valid JSON. |
| 401 | Missing, invalid or restricted API key. |
| 403 | Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted). |
| 404 | Not found. |
| 409 | Conflict with the current state, or an idempotency key reused. |
| 422 | Validation failed. |
| 429 | Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached). |
curl -X DELETE https://isent.dev/api/v1/suppressions/{email} \
-H "Authorization: Bearer $ISENT_API_KEY"