--- title: Session Event Stream | Luma Agents --- GET /v1/sessions/{session\_id}/events/stream Select code samplecURL (shell:curl) ```js const url = 'https://agents.lumalabs.ai/v1/sessions/example/events/stream'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```sh curl --request GET \ --url https://agents.lumalabs.ai/v1/sessions/example/events/stream \ --header 'Authorization: Bearer ' ``` - Productionagents.lumalabs.ai/v1/sessions/{session\_id}/events/stream The session's events as SSE, from the live tail unless `Last-Event-ID`, `after_seq` or `last_entry_id` resumes it. ## Authorizations - **[BearerAuth](/api/agents/index.md#bearerauth)** ## Parameters ### Path Parameters **session\_id** required *Session Id* string ### Query Parameters **after\_seq** Any of: - [string](#tab-panel-0-0) - [null](#tab-panel-0-1) string null Resume after this event seq. Last-Event-ID, sent on reconnect, wins. **last\_entry\_id** Any of: - [string](#tab-panel-1-0) - [null](#tab-panel-1-1) string null Resume after this cursor, as the legacy stream took it. Last-Event-ID and after\_seq win. **token** Any of: - [string](#tab-panel-2-0) - [null](#tab-panel-2-1) string null Single-use stream token from POST /v1/sessions/{session\_id}/events/token, for hosts that cannot set an Authorization header on an SSE connection. ### Header Parameters **Last-Event-ID** Any of: - [string](#tab-panel-3-0) - [null](#tab-panel-3-1) string null ## Responses ### 200 The session's events as Server-Sent Events. Media typetext/event-stream ### 422 Validation Error Media typeapplication/json *HTTPValidationError* object **detail** *Detail* Array\ *ValidationError* object **ctx** *Context* object **input** *Input* **loc** required *Location* Array **msg** required *Message* string **type** required *Error Type* string ##### Examplegenerated ```json { "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ] } ```