---
title: "Get a playbook 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 a playbook run timeline

Path: CloudRaker Workspace API › Playbooks

`GET /spaces/{spaceId}/playbook-runs/{runId}/timeline`

Returns the run's append-only event timeline in chronological order — event types include run_started, step, task_completed, 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, run_completed, run_failed, run_cancelled. Authorization: `space:read` (org admins bypass); missing → 404. Query: `after` (cursor = last event id already seen, for polling forward) and `limit` (1–200). Returns `{ data: TimelineItem[], has_more }`. Capability redaction: callers WITHOUT `space:contribute` receive event payloads sanitized (artifact URLs / storage keys stripped), so read-only viewers never get signed file links.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `spaceId` (`getPlaybookRunTimeline.path.spaceId`; string, required)
- `runId` (`getPlaybookRunTimeline.path.runId`; string, required)

## Query parameters

- `after` (`getPlaybookRunTimeline.query.after`; string, optional) — Cursor: the id of the last event already seen.
  - minLength 1
- `limit` (`getPlaybookRunTimeline.query.limit`; integer, optional) — Page size, 1–200.
  - min 1; max 200; default `50`

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/spaces/<spaceId>/playbook-runs/<runId>/timeline' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/spaces/<spaceId>/playbook-runs/<runId>/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/spaces/<spaceId>/playbook-runs/<runId>/timeline"

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

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

print(response.text)
```

## Responses

### 200

One page of timeline events, oldest first.

#### Example

```json
{
  "data": [
    {
      "id": "string",
      "at": "2019-08-24T14:15:22Z",
      "type": "run_started",
      "title": "string",
      "detail": "string",
      "data": null
    }
  ],
  "has_more": true
}
```

- `data` (`getPlaybookRunTimeline.response.200.data`; array<object>, required)
  - `id` (`getPlaybookRunTimeline.response.200.data.id`; string, required)
  - `at` (`getPlaybookRunTimeline.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))$`
  - `type` (`getPlaybookRunTimeline.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` (`getPlaybookRunTimeline.response.200.data.title`; string, required)
  - `detail` (`getPlaybookRunTimeline.response.200.data.detail`; string, optional)
  - `data` (`getPlaybookRunTimeline.response.200.data.data`; unknown, optional) — Sanitized for callers without `space:contribute` (artifact links stripped).
- `has_more` (`getPlaybookRunTimeline.response.200.has_more`; boolean, required)


Source: https://docs.cloudraker.com/workspace/api/playbooks/get-playbook-run-timeline/index.md
