sessions module route (requires sessions:work:read)
GET
/v1/m/sessions/work-stream
const url = 'https://example.com/v1/m/sessions/work-stream';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/m/sessions/work-stream \ --header 'Authorization: Bearer <token>'Streams work events as server-sent events, resuming strictly after the cursor query parameter or the Last-Event-ID header; the two must agree when both are sent.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” X-Olivares-Tenant
string format: uuid
Target tenant id; required when the principal can act in more than one tenant.
Last-Event-ID
string
SSE resume cursor; must agree with cursor when both are sent.
Query Parameters
Section titled “Query Parameters ” cursor
string
Resume strictly after this persisted UUIDv7 WorkEvent id.
Responses
Section titled “ Responses ”OK (text/event-stream)
Media type text/event-stream
string
Bad request
Media type application/json
object
Example generated
{}Unauthenticated
Media type application/json
object
Example generated
{}Forbidden
Media type application/json
object
Example generated
{}Not found
Media type application/json
object
Example generated
{}Conflict / setup required
Media type application/json
object
Example generated
{}ETag or plan precondition failed
Media type application/json
object
Example generated
{}Domain invariant not satisfied
Media type application/json
object
Example generated
{}Work is blocked
Media type application/json
object
Example generated
{}Rate limited
Media type application/json
object
Example generated
{}Required evidence, policy, clock or store is unavailable
Media type application/json
object
Example generated
{}