> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cloudraker.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cloudraker.com/_mcp/server.

# Get one playbook run

GET https://api.cloudraker.com/spaces/{spaceId}/playbook-runs/{runId}

Fetches one playbook run with full detail: current status, task progress, any pending approval, current activity, result/error, and the immutable snapshot of the playbook (tasks + actions + fileScope) captured at launch. Authorization: `space:read` (org admins bypass); missing → 404; 404 also when the run does not exist in this space. Returns `{ data: PlaybookRunDetail }`.

Reference: https://docs.cloudraker.com/workspace/api/playbooks/get-playbook-run

## Authentication

- `Authorization` header (bearer token, required)

## Request

### Path parameters

- `spaceId` (string, required)
- `runId` (string, required)

## Response

### 200

The playbook run, with its launch snapshot.

- `data` (object, required)
  - `id` (string, required)
  - `spaceId` (string, required)
  - `playbookId` (string, required)
  - `playbookVersion` (integer, required)
  - `playbookName` (string, required)
  - `status` (enum, required)
    - Allowed values: `running`, `waiting_approval`, `waiting_action`, `waiting_user`, `paused`, `completed`, `failed`, `cancelled`
  - `fileScope` (object or object, required)
    - object
      - `mode` ("space", required)
    - object
      - `mode` ("picked", required)
      - `fileIds` (list of string, required)
  - `taskProgress` (object, required)
    - `total` (integer, required)
    - `completed` (integer, required)
  - `pendingApproval` (object, required, nullable)
    - `id` (string, required)
    - `kind` (enum, required)
      - Allowed values: `pre`, `post`
    - `actionName` (string, required)
    - `requestedAt` (datetime, required)
  - `result` (string, required, nullable)
  - `error` (string, required, nullable)
  - `startedBy` (string, required)
  - `createdAt` (datetime, required)
  - `updatedAt` (datetime, required)
  - `finishedAt` (datetime, required, nullable)
  - `currentActivity` (string, required, nullable)
  - `snapshot` (object, required) — The playbook as captured at launch. Later edits never affect a run.
    - `playbookId` (string, required)
    - `version` (integer, required)
    - `name` (string, required)
    - `description` (string, required)
    - `tasks` (list of object, required)
      - `id` (string, required)
      - `title` (string, required)
      - `dependsOn` (list of string, required)
      - `status` (enum, required)
        - Allowed values: `pending`, `ready`, `in_progress`, `completed`, `skipped`
      - `summary` (string, required, nullable)
      - `completedAt` (datetime, required, nullable)
      - `instructions` (string, optional, nullable)
      - `executor` (enum, optional)
        - Allowed values: `agent`, `human`
      - `assignee` (string, optional, nullable)
      - `claimedBy` (string, optional, nullable)
      - `completedBy` (string, optional, nullable)
      - `note` (string, optional, nullable)
      - `fileIds` (list of string, optional)
    - `actions` (list of object, required)
      - `installedActionId` (string, required)
      - `preApproval` (boolean, required)
      - `postApproval` (boolean, required)
      - `dependsOn` (list of string, required)
      - `actionSlug` (string, required)
      - `actionName` (string, required)
      - `trigger` (enum, required)
        - Allowed values: `agent`, `user`
      - `browserSession` (object, required, nullable)
        - `status` (enum, required)
          - Allowed values: `pairing`, `live`, `ended`, `expired`
        - `createdAt` (datetime, required)
    - `fileScope` (object or object, required)
      - object
        - `mode` ("space", required)
      - object
        - `mode` ("picked", required)
        - `fileIds` (list of string, required)

## Examples

**Response**

```json
{
  "data": {
    "id": "string",
    "spaceId": "string",
    "playbookId": "string",
    "playbookVersion": 1,
    "playbookName": "string",
    "status": "running",
    "fileScope": {
      "mode": "string"
    },
    "taskProgress": {
      "total": 1,
      "completed": 1
    },
    "pendingApproval": {
      "id": "string",
      "kind": "pre",
      "actionName": "string",
      "requestedAt": "2024-01-15T09:30:00Z"
    },
    "result": "string",
    "error": "string",
    "startedBy": "string",
    "createdAt": "2024-01-15T09:30:00Z",
    "updatedAt": "2024-01-15T09:30:00Z",
    "finishedAt": "2024-01-15T09:30:00Z",
    "currentActivity": "string",
    "snapshot": {
      "playbookId": "string",
      "version": 1,
      "name": "string",
      "description": "string",
      "tasks": [
        {
          "id": "string",
          "title": "string",
          "dependsOn": [
            "string"
          ],
          "status": "pending",
          "summary": "string",
          "completedAt": "2024-01-15T09:30:00Z",
          "instructions": "string",
          "executor": "agent",
          "assignee": "string",
          "claimedBy": "string",
          "completedBy": "string",
          "note": "string",
          "fileIds": [
            "string"
          ]
        }
      ],
      "actions": [
        {
          "installedActionId": "string",
          "preApproval": true,
          "postApproval": true,
          "dependsOn": [
            "string"
          ],
          "actionSlug": "string",
          "actionName": "string",
          "trigger": "agent",
          "browserSession": {
            "status": "pairing",
            "createdAt": "2024-01-15T09:30:00Z"
          }
        }
      ],
      "fileScope": {
        "mode": "string"
      }
    }
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.cloudraker.com/spaces/spaceId/playbook-runs/runId"

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

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

print(response.json())
```

```javascript
const url = 'https://api.cloudraker.com/spaces/spaceId/playbook-runs/runId';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.cloudraker.com/spaces/spaceId/playbook-runs/runId"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.cloudraker.com/spaces/spaceId/playbook-runs/runId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.cloudraker.com/spaces/spaceId/playbook-runs/runId")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.cloudraker.com/spaces/spaceId/playbook-runs/runId', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.cloudraker.com/spaces/spaceId/playbook-runs/runId");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.cloudraker.com/spaces/spaceId/playbook-runs/runId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```