Events

Record an application event

Exactly one of email or contact_id; properties belong only to this occurrence. Unknown addresses are created unsubscribed; existing consent is preserved. Idempotency-Key replays the original receipt; a changed body conflicts. Activity, registry, replay and the internal event.received trigger commit together. Needs audience; sending_access keys are refused. Event limits and the independent project ingestion rate are in limits.toml [events]. POST /events/send takes the same event in Resend's shape.

POST
/events

Exactly one of email or contact_id; properties belong only to this occurrence. Unknown addresses are created unsubscribed; existing consent is preserved. Idempotency-Key replays the original receipt; a changed body conflicts. Activity, registry, replay and the internal event.received trigger commit together. Needs audience; sending_access keys are refused. Event limits and the independent project ingestion rate are in limits.toml [events]. POST /events/send takes the same event in Resend's shape.

Authorization

bearer
headerAuthorizationBearer <token>

Header Parameters

Idempotency-Key?|

Stable key for retries of this exact request body

Request Body

application/json
  1. body
contact_id?|
Formatuuid
email?string|null
name*string
occurred_at?string|null
properties*

Response Body

Success

application/json
  1. response
contact_id*string
Formatuuid
id*string
Formatuuid
object*string
Example Request
curl -X POST 'https://api.exx.sh/events' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "properties": {}}'
Example Response
{  "contact_id": "f245e2a3-e141-4d41-912c-b1c1f5bd5598",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "object": "string"}