Skip to content
Navigation

Read one work session

The authoritative session — read live, never from the list projection, so status and counts are always fresh. counts.unread is the CALLER’s own open inbox_items rows on this session (spec §6) — per viewer, so it is resolved here rather than held on the session record. 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, even by an administrator. Any denial is 404. A caller who may read but not WRITE the session reads the SANITIZED view, the same one its live socket and its /entries page get: url-ish keys and url-ish values are redacted.

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

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • sessionId
    string
    required

Returns

200

The work session.

JSON
  • data
    object
    required
    • id
      string
      required
      maxLength: 128 · minLength: 1
    • title
      string
      required
      maxLength: 200
    • description
      string
      required
      maxLength: 8000
    • status
      open
      or
      working
      or
      waiting
      or
      done
      or
      archived
      required
    • workStatus
      active
      or
      ready_for_review
      or
      done
      required

      Whether the WORK is done, which only people decide. status stays the derived state of the turns.

    • openedBy
      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
    • openedVia
      web
      or
      desktop
      or
      api
      or
      email
      or
      webhook
      or
      schedule
      +2 more
      required
    • participants
      object
      required
      • humans
        array of
        string
        required
      • agents
        array of
        object
        required
        • agentId
          string
          required
        • versionId
          string
          required
        • handle
          string
          required
        • name
          string
          required
        • role
          string
          required
        • joinedAt
          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))$
    • spaces
      array of
      object
      required
      • spaceId
        string
        required
      • access
        read
        or
        commit
        required
    • files
      array of
      object
      required
      • fileId
        string
        required
      • role
        input
        or
        artifact
        required
    • triggerId
      string | null
      required
    • parentSessionId
      string | null
      required
    • counts
      object
      required
      • turns
        number
        required
      • approvalsPending
        number
        required
      • tasksPending
        number
        required
      • unread
        number
        required
    • lastActivityAt
      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))$
    • createdAt
      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))$
    • closedAt
      string | null
      required

404

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

Type to search…

↑↓ navigate↵ selectEsc close