---
title: "List a work session timeline"
---

> 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 timeline

Path: CloudRaker Paperwork API › Work Sessions

`GET /v1/work-sessions/{id}/entries`

Reads the timeline in `seq` order, which is gapless and monotonic. Page forward with `afterSeq`; `nextAfterSeq` is the cursor for the next page, or `null` at the end.

Every entry is redacted before it leaves: a tool row keeps its name and loses its arguments and its result, and no signed URL or storage key is ever returned. Read a file through `GET /v1/files/{id}` instead.

**Learn more:** [Work sessions](https://docs.cloudraker.com/paperwork/api)

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `id` (`listWorkSessionEntries.path.id`; string, required)
  - minLength 1; maxLength 128

## Query parameters

- `afterSeq` (`listWorkSessionEntries.query.afterSeq`; integer, optional)
  - min 0; max 9007199254740991
- `limit` (`listWorkSessionEntries.query.limit`; integer, optional)
  - min 1; max 200

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/work-sessions/<id>/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/v1/work-sessions/<id>/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
    }
  ],
  "nextAfterSeq": -9007199254740991
}
```

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

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`listWorkSessionEntries.response.400.success`; boolean, required)
  - one of `false`
- `error` (`listWorkSessionEntries.response.400.error`; array<unknown>, required)
- `data` (`listWorkSessionEntries.response.400.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`.

#### Example

```json
{
  "code": "rate_limited",
  "message": "string",
  "retryable": true,
  "requestId": "string",
  "docUrl": "string"
}
```

- `code` (`listWorkSessionEntries.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`listWorkSessionEntries.response.429.message`; string, required)
- `retryable` (`listWorkSessionEntries.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`listWorkSessionEntries.response.429.requestId`; string, required)
- `docUrl` (`listWorkSessionEntries.response.429.docUrl`; string, optional)


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