Skip to content
Navigation

List a work session’s turns

Every turn the session has run, newest state included — the HTTP counterpart of the turn frames the live socket pushes, so a client that missed a frame reads the truth here instead of guessing. Pages: limit is 1-200 (default 50) and starting_after takes the previous page’s last id; hasMore says whether another page follows. Authorization: work_session:read on the session, OR space:contribute on one of its linked spaces; a desk session is readable only by its owner. Any denial is 404. A read-only caller reads the SANITIZED view, the same one its live socket gets.

GET
https://api.cloudraker.com/workspace/sessions/{sessionId}/turns
Try it
Path parameters
Query parameters
Live API request

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • sessionId
    string
    required

Query parameters

  • limit
    optional
    integer

    Page size, 1-200 (default 50). Enforced: a bad value is 400 validation_failed.

    maximum: 200 · minimum: 1
  • starting_after
    optional
    string

    The previous page’s last id.

    maxLength: 128 · minLength: 1

Returns

200

The session’s turns.

JSON
  • data
    array of
    object
    required
    • id
      string
      required
    • sessionId
      string
      required
      maxLength: 128 · minLength: 1
    • agentId
      string
      required
    • agentVersionId
      string
      required
    • harness
      native
      or
      sandbox
      required
    • status
      running
      or
      waiting_approval
      or
      waiting_action
      or
      waiting_user
      or
      paused
      or
      completed
      +2 more
      required
    • startedBy
      object
      required
      • kind
        user
        or
        agent
        or
        api_key
        or
        trigger
        or
        external
        required
      • id
        string
        required
        maxLength: 128 · minLength: 1
      • name
        string
        required
        maxLength: 120 · minLength: 1
      • avatarUrl
        optional
        string
        maxLength: 2048
      • source
        optional
        web
        or
        desktop
        or
        api
        or
        email
        or
        webhook
        or
        schedule
        +4 more
    • reason
      mention
      or
      trigger
      or
      handoff
      or
      steer
      or
      assistant
      required
    • threadId
      string | null
      required
    • parentTurnId
      string | null
      required
    • nativeRunId
      string | null
      required
    • nativeSpaceId
      string | null
      required
    • sandboxId
      string | null
      required
    • startedAt
      string
      required
      format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
    • finishedAt
      string | null
      required
    • summary
      string | null
      required
    • error
      string | null
      required
    • outcome
      optional

      Any of the following:

      • string
      • null
    • waitingReason
      optional

      Any of the following:

      • string
        sandbox_capacity
        or
        sandbox_provisioning
        or
        budget_exceeded
      • null
    • fileIds
      optional
      array of
      string
  • hasMore
    boolean
    required

400

validation_failed — a bad limit or starting_after.

404

No such session, or the caller may not see it.

Type to search…

↑↓ navigate↵ selectEsc close