Skip to content

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

GET/webhooks

Responses

List webhook endpoints: 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/webhooks \
  -H "Authorization: Bearer $ISENT_API_KEY"

Create a webhook endpoint

POST/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.

Create a webhook endpoint: body
NameTypeDescription
urlRequiredstringNone
eventsRequiredstring[]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.
descriptionstringAt most 200 characters.

Responses

Create a webhook endpoint: responses
StatusMeaning
201Created.
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).

Retrieve a webhook endpoint

GET/webhooks/{id}

The signing secret is shown only once, by create and rotate-secret; rotate it if it is lost.

Parameters

Retrieve a webhook endpoint: parameters
NameInTypeDescription
idRequiredpathstringNone

Responses

Retrieve a webhook endpoint: 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.
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/webhooks/{id} \
  -H "Authorization: Bearer $ISENT_API_KEY"

Update a webhook endpoint

PATCH/webhooks/{id}

Parameters

Update a webhook endpoint: parameters
NameInTypeDescription
idRequiredpathstringNone

Body

A JSON object.

Update a webhook endpoint: body
NameTypeDescription
urlstringNone
eventsstring[]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.
descriptionstringAt most 200 characters.
status"enabled" | "disabled"None

Responses

Update a webhook endpoint: 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).

Delete a webhook endpoint

DELETE/webhooks/{id}

Parameters

Delete a webhook endpoint: parameters
NameInTypeDescription
idRequiredpathstringNone

Responses

Delete a webhook endpoint: 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/webhooks/{id} \
  -H "Authorization: Bearer $ISENT_API_KEY"

Rotate the signing secret

POST/webhooks/{id}/rotate-secret

The old secret stops working at once.

Parameters

Rotate the signing secret: parameters
NameInTypeDescription
idRequiredpathstringNone

Responses

Rotate the signing secret: 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 POST https://isent.dev/api/v1/webhooks/{id}/rotate-secret \
  -H "Authorization: Bearer $ISENT_API_KEY"

List deliveries

GET/webhooks/{id}/deliveries

Newest first, with response status and body.

Parameters

List deliveries: parameters
NameInTypeDescription
idRequiredpathstringNone
limitquerynumberItems per page, 1 to 100 (default 20).
afterquerystringReturn items after this id (the last id of the previous page).

Responses

List deliveries: 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.
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/webhooks/{id}/deliveries \
  -H "Authorization: Bearer $ISENT_API_KEY"

Replay a delivery

POST/webhooks/{id}/deliveries/{deliveryId}/replay

Sends the same event again (same webhook-id) as a new delivery.

Parameters

Replay a delivery: parameters
NameInTypeDescription
idRequiredpathstringNone
deliveryIdRequiredpathstringNone

Responses

Replay a delivery: responses
StatusMeaning
201Created.
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 POST https://isent.dev/api/v1/webhooks/{id}/deliveries/{deliveryId}/replay \
  -H "Authorization: Bearer $ISENT_API_KEY"