SDKs
Streaming events
The event stream is server-sent events. Pass a query token only when the caller cannot set Authorization.
The route is GET /api/v1/events/stream. Other operations do not take a query token. Pass the query token only for clients that cannot set the Authorization header.
- Python client.events.stream() yields parsed SSE data objects. Pass token only for that query parameter.
- TypeScript client.events.stream() is an async generator. The options object may include token.
- Java client.events.stream(tokenQuery) calls the generated events operation.
- Go client.Events.Stream(ctx, tokenQuery) calls the generated events operation.
- C# client.Events.StreamAsync(token) calls the generated events operation.
- Rust client.events().stream(token) calls the generated events operation. The generated client materializes the body.