API reference
Webhooks API
Endpoints, signing secrets, deliveries and replays.
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 webhook endpoints
/webhooks
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/webhooks \
-H "Authorization: Bearer $ISENT_API_KEY"Create a webhook endpoint
/webhooks
Returns the signing secret. Deliveries are retried up to 8 times over about a day (backoff 5 s, 5 min, 30 min, 2 h, 5 h, 10 h, 10 h). Counts toward the plan's endpoints.
Body
A JSON object.
| Name | Type | Description |
|---|---|---|
url | string | None |
events | string[] | Any of: email.sent, email.delivered, email.delivery_delayed, email.bounced, email.complained, email.opened, email.clicked, email.suppressed, email.received, email.scheduled, email.failed, domain.created, domain.updated, domain.deleted, contact.created, contact.updated, contact.deleted. |
description | string | At most 200 characters. |
Responses
| Status | Meaning |
|---|---|
| 201 | Created. |
| 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). |
Retrieve a webhook endpoint
/webhooks/{id}
The signing secret is shown only once, by create and rotate-secret; rotate it if it is lost.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | 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. |
| 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/webhooks/{id} \
-H "Authorization: Bearer $ISENT_API_KEY"Update a webhook endpoint
/webhooks/{id}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | string | None |
Body
A JSON object.
| Name | Type | Description |
|---|---|---|
url | string | None |
events | string[] | Any of: email.sent, email.delivered, email.delivery_delayed, email.bounced, email.complained, email.opened, email.clicked, email.suppressed, email.received, email.scheduled, email.failed, domain.created, domain.updated, domain.deleted, contact.created, contact.updated, contact.deleted. |
description | string | At most 200 characters. |
status | "enabled" | "disabled" | 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). |
Delete a webhook endpoint
/webhooks/{id}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | 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/webhooks/{id} \
-H "Authorization: Bearer $ISENT_API_KEY"Rotate the signing secret
/webhooks/{id}/rotate-secret
The old secret stops working at once.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | 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 POST https://isent.dev/api/v1/webhooks/{id}/rotate-secret \
-H "Authorization: Bearer $ISENT_API_KEY"List deliveries
/webhooks/{id}/deliveries
Newest first, with response status and body.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | string | None |
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). |
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. |
| 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/webhooks/{id}/deliveries \
-H "Authorization: Bearer $ISENT_API_KEY"Replay a delivery
/webhooks/{id}/deliveries/{deliveryId}/replay
Sends the same event again (same webhook-id) as a new delivery.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | string | None |
deliveryId | path | string | None |
Responses
| Status | Meaning |
|---|---|
| 201 | Created. |
| 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 POST https://isent.dev/api/v1/webhooks/{id}/deliveries/{deliveryId}/replay \
-H "Authorization: Bearer $ISENT_API_KEY"