Custom events
Record what happened in your application
Record named application events and their properties against project contacts, with idempotent requests and a registry of event names.
01The Resend request shape
POST /events/send accepts event, exactly one of email or contact_id, and an optional payload. It returns 202 with the event name. Use Idempotency-Key to retry the same request without recording it again within the idempotency window.
02Occurrence time when you need it
POST /events is the exx.sh extension: name, email or contact_id, properties and optional occurred_at. Both routes record the same contact activity. Properties describe that occurrence; they never overwrite the contact's profile. Each route has its own idempotency keys.
03Observe an event without inventing consent
An unknown email creates an unsubscribed contact. Existing subscription and topic choices stay unchanged; suppressed or erased identities are refused. An event is not consent to send marketing mail.
04Names and usage, without event bodies
GET /events/names lists the project's event names and aggregate usage. Contact event bodies are available in the dashboard, not through a public event-body listing. Properties follow contact activity retention: a monthly partition is deleted once its month ended 365 days ago, unless the contact is deleted or erased sooner.
Questions
No. Event ingestion has its own project rate limit and does not consume sending quota. The normal authenticated API request limit still applies.
No. Custom application events are contact activity, not customer webhook events. Creating a contact through event ingestion can emit the normal contact.created webhook.
More of the engine
- Logs and transcriptsThe server's own words, for every attempt
- DeliverabilityOur own IPs, warmed up and paced per provider
- WebhooksSigned events, retried until you answer
- Bounces and complaintsBounces and complaints, read and acted on
- Domains and DNSThree records once, DKIM that rotates itself
- Contacts and broadcastsSend to a list, with each choice recorded
- Tracking and hosted pagesOptional tracking, with machine hits separated
- Receiving and forwardingReceive mail, read it through the API
- Address verificationCheck an address without contacting its mailbox
- AutomationsWorkflows that wait, branch and keep consent
- Hosted MCPYour project's API, for your AI assistant