Skip to content
Navigation

Get a work session

Reads one work session: its status, the agents on it, the spaces and files it works with, and the counts a client polls.

Answers 404 for a session another API key opened, unless that key set apiVisible: true.

Learn more: Work sessions

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

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • id
    string
    required
    maxLength: 128 · minLength: 1

Returns

200

The work session.

JSON
  • data
    object
    required
    • object
      string
      required
    • id
      string
      required
    • status
      open
      or
      working
      or
      waiting
      or
      done
      or
      archived
      required
    • title
      string
      required
    • description
      string
      required
    • agents
      array of
      object
      required
      • id
        string
        required
      • handle
        string
        required
      • name
        string
        required
      • role
        string
        required
    • spaceIds
      array of
      string
      required
    • fileIds
      array of
      string
      required
    • counts
      object
      required
      • turns
        integer
        required
        maximum: 9007199254740991 · minimum: -9007199254740991
      • approvalsPending
        integer
        required
        maximum: 9007199254740991 · minimum: -9007199254740991
      • tasksPending
        integer
        required
        maximum: 9007199254740991 · minimum: -9007199254740991
    • apiVisible
      boolean
      required
    • createdAt
      string
      required
    • lastActivityAt
      string
      required
    • closedAt
      string | null
      required
    • entriesUrl
      string
      required
    • streamUrl
      string
      required
    • artifactsUrl
      string
      required
    • webhookUrl
      optional
      string

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