Skip to content
Navigation

Stream a work session live

Server-sent events for one session, live: text/event-stream.

  • entry — a durable timeline entry, redacted the same way GET /entries redacts it. The SSE id is the entry seq.
  • turn.started, turn.finished, turn.failed — an agent began, ended or failed a piece of work.
  • approval.requested, approval.decided — an action needs a person, or got one.
  • artifact.created, artifact.committed — a document was produced, or filed into a space.
  • work_session.waiting, work_session.done — the session needs you, or it has settled.
  • ping — a keep-alive every fifteen seconds.

The same ten type names arrive on your webhook, so one handler serves both. Streams end after five minutes; reconnect with ?afterSeq= or the Last-Event-ID header to resume. A done session ends the stream. curl it: curl -N -H "authorization: Bearer $KEY" …/v1/work-sessions/ws_…/stream

Learn more: Work sessions

GET
https://api.cloudraker.com/v1/work-sessions/{id}/stream
Try it
Path parameters
Live API request

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • id
    string
    required
    maxLength: 128 · minLength: 1

Returns

200

The event stream (text/event-stream).

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

401

Missing or invalid credential.

403

The credential may not use the /v1 API.

404

Unknown session id, or it belongs to another API key.

429

Rate limited. The /v1 API allows at least 67 requests per minute per organization (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the Retry-After interval and retry — the error is retryable.
JSON
  • code
    rate_limited
    required
  • message
    string
    required
  • retryable
    true
    required
  • requestId
    string
    required
  • docUrl
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close