Events API
A read-only feed of recent notable events in the platform — message sent, message delivered, agent run, flow step, contact updated, conversation created, webhook endpoint updated, etc. Two access patterns:- Polled —
GET /api/v1/eventspages over a bounded recent-window replay buffer (see below). - Live —
GET /api/v1/events/streamopens an SSE connection that delivers events in real time.
/api/v1/events
Authentication: API key (X-API-Key) or session JWT.
Live stream — SSE
data: lines (one JSON object per line). Reconnect on error with the Last-Event-ID header set so you don’t lose events.
The ?token= query parameter is promoted to X-API-Key server-side so browsers (which can’t set arbitrary headers on EventSource) can authenticate. As with every Orbit endpoint, query strings are stripped from access logs platform-wide before they’re written, so the token value is never persisted to log storage.
Ingesting events — POST /api/v1/events/track
To record your own product events (rather than read the feed above), POST to
the ingestion endpoint with an event name, an optional contact identifier
(contact_email or contact_phone — omit both to store the event without
linking it to a contact), and an optional properties object:
See also
- Webhooks — for delivered, durable, retry-handled push of the same events