Skip to content
Navigation

List a work session’s timeline entries

Timeline entries ordered by seq, which is gapless and monotonic, so a client pages forward with afterSeq. This is the ONLY way to read a timeline in full: the live socket replays at most the last 200 entries, so a client that needs the whole history pages here and then attaches. seq is WRITE order, not cause order: a mention starts its turns before the comment that asked for them is written (a refused turn must leave no orphan message behind), so a turn_started sits just ABOVE its comment. The comment names them — startedTurnIds on the entry — so a reader that wants cause order renders those turn_started entries directly below the comment that claims them. afterSeq and limit are ENFORCED: afterSeq is an integer ≥ 0 and limit is 1-200 (default 50), and anything else is 400 validation_failed — never a silent page one, which is how a client with a corrupted cursor used to loop forever (R9-02 / R9C-04). 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 caller who may read but not WRITE the session reads the SANITIZED view, the same one its live socket gets: a tool part keeps its name and loses its input, output and errorText, and url-ish values are redacted.

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

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • sessionId
    string
    required

Query parameters

  • afterSeq
    optional
    integer

    Return only entries with a seq GREATER than this. seq is gapless and monotonic, so the last entry of a page is the next page’s afterSeq.

    maximum: 9007199254740991 · minimum: 0
  • limit
    optional
    integer

    Page size, 1-200 (default 50).

    maximum: 200 · minimum: 1

Returns

200

One page of entries.

JSON
  • data
    array of
    object
    required
    • seq
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • id
      string
      required
    • kind
      comment
      or
      system
      or
      turn_started
      or
      turn_finished
      or
      turn_message
      or
      approval
      +6 more
      required
    • at
      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))$
    • role
      user
      or
      assistant
      or
      system
      required
    • author
      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
    • threadId
      string | null
      required
    • turnId
      string | null
      required
    • parts
      array of
      map<unknown>
      required
    • startedTurnIds
      array of
      string
      required
    • updatedSeq
      required

      Any of the following:

      • integer
      • null
  • hasMore
    boolean
    required

400

validation_failed — a bad afterSeq or limit.

404

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

Type to search…

↑↓ navigate↵ selectEsc close