Skip to content

sessions module route (requires sessions:work:read)

GET
/v1/m/sessions/work-stream
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.

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.

cursor
string

Resume strictly after this persisted UUIDv7 WorkEvent id.

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
{}