API referenceContact events

Track a custom event

POST/events

Records a named event for a contact (contact_id or email; an unknown email creates the contact unless create_contact is false). properties (or Resend's payload) become merge variables of the sequence it starts. An idempotency_key (or Idempotency-Key header) makes a retry return the first event; the same key with a different event is a 409 invalid_idempotent_request.

Authorization

apiKey
AuthorizationBearer <token>

A project API key: Authorization: Bearer s0_…

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/events" \  -H "Content-Type: application/json" \  -d '{}'
{  "object": "event",  "id": "string",  "contact_id": "string",  "created": true}