---
title: "List a work session’s timeline entries"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List a work session’s timeline entries

Path: CloudRaker Workspace API › Workspace Sessions

`GET /workspace/sessions/{sessionId}/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.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `sessionId` (`listWorkspaceSessionEntries.path.sessionId`; string, required)

## Query parameters

- `afterSeq` (`listWorkspaceSessionEntries.query.afterSeq`; integer, optional) — 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`.
  - min 0; max 9007199254740991; example `0`
- `limit` (`listWorkspaceSessionEntries.query.limit`; integer, optional) — Page size, 1-200 (default 50).
  - min 1; max 200; example `50`

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/workspace/sessions/<sessionId>/entries' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/workspace/sessions/<sessionId>/entries';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/workspace/sessions/<sessionId>/entries"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

One page of entries.

#### Example

```json
{
  "data": [
    {
      "seq": -9007199254740991,
      "id": "string",
      "kind": "comment",
      "at": "2019-08-24T14:15:22Z",
      "role": "user",
      "author": {
        "kind": "user",
        "id": "string",
        "name": "string",
        "avatarUrl": "string",
        "source": "web"
      },
      "threadId": "string",
      "turnId": "string",
      "parts": [
        {
          "property1": null,
          "property2": null
        }
      ],
      "startedTurnIds": [
        "string"
      ],
      "updatedSeq": -9007199254740991
    }
  ],
  "hasMore": true
}
```

- `data` (`listWorkspaceSessionEntries.response.200.data`; array<object>, required)
  - `seq` (`listWorkspaceSessionEntries.response.200.data.seq`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `id` (`listWorkspaceSessionEntries.response.200.data.id`; string, required)
  - `kind` (`listWorkspaceSessionEntries.response.200.data.kind`; string, required)
    - one of `"comment"`, `"system"`, `"turn_started"`, `"turn_finished"`, `"turn_message"`, `"approval"`, `"task"`, `"question"`, `"artifact"`, `"commit"`, `"handoff"`, `"trigger"`
  - `at` (`listWorkspaceSessionEntries.response.200.data.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` (`listWorkspaceSessionEntries.response.200.data.role`; string, required)
    - one of `"user"`, `"assistant"`, `"system"`
  - `author` (`listWorkspaceSessionEntries.response.200.data.author`; object, required)
    - `kind` (`listWorkspaceSessionEntries.response.200.data.author.kind`; string, required)
      - one of `"user"`, `"agent"`, `"api_key"`, `"trigger"`, `"external"`
    - `id` (`listWorkspaceSessionEntries.response.200.data.author.id`; string, required)
      - minLength 1; maxLength 128
    - `name` (`listWorkspaceSessionEntries.response.200.data.author.name`; string, required)
      - minLength 1; maxLength 120
    - `avatarUrl` (`listWorkspaceSessionEntries.response.200.data.author.avatarUrl`; string, optional)
      - maxLength 2048
    - `source` (`listWorkspaceSessionEntries.response.200.data.author.source`; string, optional)
      - one of `"web"`, `"desktop"`, `"api"`, `"email"`, `"webhook"`, `"schedule"`, `"slack"`, `"assistant"`, `"manual"`, `"trigger"`
  - `threadId` (`listWorkspaceSessionEntries.response.200.data.threadId`; string | null, required)
  - `turnId` (`listWorkspaceSessionEntries.response.200.data.turnId`; string | null, required)
  - `parts` (`listWorkspaceSessionEntries.response.200.data.parts`; array<map<unknown>>, required)
  - `startedTurnIds` (`listWorkspaceSessionEntries.response.200.data.startedTurnIds`; array<string>, required)
  - `updatedSeq` (`listWorkspaceSessionEntries.response.200.data.updatedSeq`; any of, required)
    - any of: `integer`, `null`
- `hasMore` (`listWorkspaceSessionEntries.response.200.hasMore`; boolean, required)

### 400

`validation_failed` — a bad `afterSeq` or `limit`.

### 404

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


Source: https://docs.cloudraker.com/workspace/api/workspace-sessions/list-workspace-session-entries/index.md
