Stream project events
Required scope: events:listen
Opens a server-sent event (SSE) stream of this project’s events. Every event frame carries the same event object as the events API and the exact webhook body when it is available.
Send Accept: text/event-stream. Resume after a disconnect by sending the last received cursor as Last-Event-ID or cursor. Cursors are valid for 24 hours and are bound to the organization, project and types filter.
With ack=auto (default), each event is released as soon as it is written. With ack=manual, at most maxInFlight events are outstanding until you acknowledge them; unacknowledged events produce a backpressure frame and then a dropped frame.
The stream sends a heartbeat frame every heartbeatIntervalMs. It closes with revoked within one heartbeat after the credential, project or feature access ends, and with expiry at connectionExpiresAt or after idleTimeoutMs without an event. Reconnect from the last cursor after expiry, dropped or a recoverable gap.
Requires events:listen and the Event streams beta. Organization API keys and project tokens are accepted; client tokens are rejected.
Authorizations
Send your team API key or project token as Authorization: Bearer <token>. The credential must have the required permissions. Project tokens can access only their own project.
Headers
Identifier for the last event.
Value constraints
4096Path Parameters
Identifier of the Polymorfa project that owns this resource.
Value constraints
Query Parameters
Specifies types for this query parameter.
Comma-separated event types to include, or repeat the parameter. A trailing * matches a prefix, such as message.*. Omit for every type. At most 32 filters.
"message.*,session.connected"
Specifies cursor for this query parameter.
Value constraints
4096Specifies ack for this query parameter.
Allowed values
auto, manual Response
An SSE stream. The first frame is ready. revoked, expiry, dropped and gap frames end the connection, except a gap with reason retention_exceeded, which reports skipped events and the stream continues.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
JSON carried in the data field of one SSE message. The SSE event field repeats type.
Specifies v for this management platform access event stream ready frame.
Allowed values
1 Identifier for the stream.
Value constraints
Frame counter for this connection. It restarts at 1 on every connection.
Value constraints
x >= 1Timestamp for sent at.
Value constraints
Type discriminator for this object.
Allowed values
ready Identifier of the Polymorfa project that owns this resource.
Value constraints
Timestamp for connection expires at.
Value constraints
Specifies heartbeat interval ms for this management platform access event stream ready frame.
Specifies max in flight for this management platform access event stream ready frame.
Specifies ack for this management platform access event stream ready frame.
Allowed values
auto, manual Types associated with this management platform access event stream ready frame.
Specifies idle timeout ms for this management platform access event stream ready frame.
Structured resume values for this management platform access event stream ready frame.