---
title: "Get an agent run 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.

# Get an agent run timeline

Path: CloudRaker Paperwork API › Agents

`GET /v1/agent-runs/{id}/timeline`

Returns the durable event history in order. Use the last event id as `after` to fetch the next page. Events caused by someone identifiable carry an `actor` (`member`, `agent`, `api_key`, `automation`, `embed` or `external`); an embed-token actor has no name.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `id` (`getAgentRunTimeline.path.id`; string, required)
  - minLength 1

## Query parameters

- `after` (`getAgentRunTimeline.query.after`; string, optional)
  - minLength 1
- `limit` (`getAgentRunTimeline.query.limit`; integer, optional)
  - min 1; max 200; default `50`

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/agent-runs/<id>/timeline';
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/agent-runs/<id>/timeline"

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

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

print(response.text)
```

## Responses

### 200

A page of timeline events.

#### Example

```json
{
  "object": "list",
  "data": [
    {
      "id": "string",
      "at": "string",
      "type": "run_started",
      "title": "string",
      "detail": "string",
      "actor": {
        "id": "string",
        "name": "string",
        "kind": "member"
      }
    }
  ],
  "hasMore": true
}
```

- `object` (`getAgentRunTimeline.response.200.object`; string, required)
- `data` (`getAgentRunTimeline.response.200.data`; array<object>, required)
  - `id` (`getAgentRunTimeline.response.200.data.id`; string, required)
  - `at` (`getAgentRunTimeline.response.200.data.at`; string, required)
  - `type` (`getAgentRunTimeline.response.200.data.type`; string, required)
    - one of `"run_started"`, `"step"`, `"task_ready"`, `"task_claimed"`, `"task_completed"`, `"task_skipped"`, `"action_proposed"`, `"approval_requested"`, `"approval_decided"`, `"action_dispatched"`, `"action_awaiting_input"`, `"action_completed"`, `"action_failed"`, `"action_skipped"`, `"output_review_requested"`, `"output_edited"`, `"steer"`, `"pause"`, `"resume"`, `"stop_requested"`, `"browser_session_created"`, `"browser_session_paired"`, `"browser_command"`, `"browser_session_ended"`, `"run_completed"`, `"run_failed"`, `"run_cancelled"`
  - `title` (`getAgentRunTimeline.response.200.data.title`; string, required)
  - `detail` (`getAgentRunTimeline.response.200.data.detail`; string, optional)
  - `actor` (`getAgentRunTimeline.response.200.data.actor`; object, optional) — Who caused the event, when it was caused by someone identifiable.
    - `id` (`getAgentRunTimeline.response.200.data.actor.id`; string, required) — Stable id of the principal.
    - `kind` (`getAgentRunTimeline.response.200.data.actor.kind`; string, required) — What kind of principal acted.
      - one of `"member"`, `"agent"`, `"api_key"`, `"automation"`, `"embed"`, `"external"`
    - `name` (`getAgentRunTimeline.response.200.data.actor.name`; string, optional) — Display name, absent for principals that have none (embed tokens).
- `hasMore` (`getAgentRunTimeline.response.200.hasMore`; boolean, required)

### 400

Validation Error

#### Example

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

- `success` (`getAgentRunTimeline.response.400.success`; boolean, required)
  - one of `false`
- `error` (`getAgentRunTimeline.response.400.error`; array<unknown>, required)
- `data` (`getAgentRunTimeline.response.400.data`; unknown, required)

### 401

Missing or invalid credentials.

#### Example

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

- `code` (`getAgentRunTimeline.response.401.code`; string, required)
- `message` (`getAgentRunTimeline.response.401.message`; string, required)
- `retryable` (`getAgentRunTimeline.response.401.retryable`; boolean, required)
- `requestId` (`getAgentRunTimeline.response.401.requestId`; string, required)
- `docUrl` (`getAgentRunTimeline.response.401.docUrl`; string, optional)

### 403

The credential is valid but cannot administer this organization.

#### Example

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

- `code` (`getAgentRunTimeline.response.403.code`; string, required)
- `message` (`getAgentRunTimeline.response.403.message`; string, required)
- `retryable` (`getAgentRunTimeline.response.403.retryable`; boolean, required)
- `requestId` (`getAgentRunTimeline.response.403.requestId`; string, required)
- `docUrl` (`getAgentRunTimeline.response.403.docUrl`; string, optional)

### 404

Unknown run id.

### 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` (`getAgentRunTimeline.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`getAgentRunTimeline.response.429.message`; string, required)
- `retryable` (`getAgentRunTimeline.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`getAgentRunTimeline.response.429.requestId`; string, required)
- `docUrl` (`getAgentRunTimeline.response.429.docUrl`; string, optional)


Source: https://docs.cloudraker.com/paperwork/api/agents/get-agent-run-timeline/index.md
