API reference
Events API
Tell automations that something happened to a contact.
Paths are relative to https://isent.dev/api/v1. Every request needs an API key; see API overview for errors, rate limits and pagination.
Send an event
/events
Starts a run in every active automation triggered by this event.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key | header | string | Retries with the same key within 24 hours return the first response and start no new runs. |
Body
A JSON object.
| Name | Type | Description |
|---|---|---|
event | string | Event name, for example user.signed_up. 2 to 64 characters. |
contact_id | string | The contact the event is about. |
email | string | Or the contact's email; an unknown address becomes a new contact. |
payload | map of any | A JSON object with data for the automation's blocks, up to 16 KB. |
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). |