---
title: "List active playbooks available in a space"
---

> 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 active playbooks available in a space

Path: CloudRaker Workspace API › Playbooks

`GET /spaces/{spaceId}/playbooks`

Lists the ACTIVE playbook definitions launchable in this space, i.e. whose spaceTypes include the space's spaceType (resolved server-side from the space record — the caller never passes it). These are the playbooks a user can start as a run here. Authorization: requires `space:read` on the space (org admins bypass); callers without it get 404 (existence is hidden). 404 is also returned when the space does not exist. Returns `{ data: Playbook[] }` with no pagination; each Playbook carries its id, name, description, tasks and configured actions.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `spaceId` (`listSpacePlaybooks.path.spaceId`; string, required)

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

Active playbooks launchable in this space.

#### Example

```json
{
  "data": [
    {
      "id": "string",
      "name": "Contract intake",
      "description": "string",
      "status": "draft",
      "spaceTypes": [
        "string"
      ],
      "tasks": [
        {
          "id": "string",
          "title": "string",
          "instructions": "string",
          "dependsOn": [
            "string"
          ],
          "executor": "agent",
          "assignee": "string"
        }
      ],
      "actions": [
        {
          "installedActionId": "string",
          "preApproval": true,
          "postApproval": true,
          "dependsOn": [
            "string"
          ],
          "trigger": "agent"
        }
      ],
      "model": "string",
      "version": -9007199254740991,
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "createdBy": "string"
    }
  ]
}
```

- `data` (`listSpacePlaybooks.response.200.data`; array<object>, required)
  - `id` (`listSpacePlaybooks.response.200.data.id`; string, required)
  - `name` (`listSpacePlaybooks.response.200.data.name`; string, required)
    - example `"Contract intake"`
  - `description` (`listSpacePlaybooks.response.200.data.description`; string, required)
  - `status` (`listSpacePlaybooks.response.200.data.status`; string, required)
    - one of `"draft"`, `"active"`, `"archived"`
  - `spaceTypes` (`listSpacePlaybooks.response.200.data.spaceTypes`; array<string>, required) — Space-type identifiers this playbook applies to. Empty means every space type.
  - `tasks` (`listSpacePlaybooks.response.200.data.tasks`; array<object>, required)
    - `id` (`listSpacePlaybooks.response.200.data.tasks.id`; string, required)
      - minLength 1; maxLength 64
    - `title` (`listSpacePlaybooks.response.200.data.tasks.title`; string, required)
      - minLength 1; maxLength 200
    - `instructions` (`listSpacePlaybooks.response.200.data.tasks.instructions`; any of, required)
      - any of: `string`, `null`
    - `dependsOn` (`listSpacePlaybooks.response.200.data.tasks.dependsOn`; array<string>, required) — Task ids that must complete first.
    - `executor` (`listSpacePlaybooks.response.200.data.tasks.executor`; string, required) — `human` tasks are completed by a person out-of-band; the agent never does them.
      - one of `"agent"`, `"human"`
    - `assignee` (`listSpacePlaybooks.response.200.data.tasks.assignee`; string | null, required) — User id. Human tasks only; null = anyone in the space.
  - `actions` (`listSpacePlaybooks.response.200.data.actions`; array<object>, required)
    - `installedActionId` (`listSpacePlaybooks.response.200.data.actions.installedActionId`; string, required)
      - minLength 1
    - `preApproval` (`listSpacePlaybooks.response.200.data.actions.preApproval`; boolean, required) — Gate the action behind a human approval.
    - `postApproval` (`listSpacePlaybooks.response.200.data.actions.postApproval`; boolean, required) — Review the action output before continuing.
    - `dependsOn` (`listSpacePlaybooks.response.200.data.actions.dependsOn`; array<string>, required) — Task ids only — an action may never depend on another action.
    - `trigger` (`listSpacePlaybooks.response.200.data.actions.trigger`; string, required) — `user` actions are started from the run view; the agent never proposes them.
      - one of `"agent"`, `"user"`
  - `model` (`listSpacePlaybooks.response.200.data.model`; string | null, required) — Optional model override for agent runs. Validated against an allowlist.
  - `version` (`listSpacePlaybooks.response.200.data.version`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `createdAt` (`listSpacePlaybooks.response.200.data.createdAt`; 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))$`
  - `updatedAt` (`listSpacePlaybooks.response.200.data.updatedAt`; 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))$`
  - `createdBy` (`listSpacePlaybooks.response.200.data.createdBy`; string, required)

### 404

Space not found, or caller lacks space:read


Source: https://docs.cloudraker.com/workspace/api/playbooks/list-space-playbooks/index.md
