---
title: "List playbooks with their binding to a space type"
---

> 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 playbooks with their binding to a space type

Path: CloudRaker Workspace API › Playbooks

`GET /space-types/{spaceTypeId}/playbooks`

Admin configuration view of the playbook ↔ space-type binding: returns EVERY playbook definition in the org annotated for the space type named in the path. Each entry carries the playbook id, name, description, status and spaceTypes plus two flags: `bound` (its `spaceTypes` explicitly includes this space type) and `global` (its `spaceTypes` is empty, so it applies to every space type and cannot be unbound here). Authorization: org admin only — other callers get 403. Returns 404 `not_found` if the space type does not exist. Response: `{ data: [...] }`, unpaginated.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `spaceTypeId` (`listSpaceTypePlaybooks.path.spaceTypeId`; string, required)

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/space-types/<spaceTypeId>/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/space-types/<spaceTypeId>/playbooks"

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

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

print(response.text)
```

## Responses

### 200

Every playbook, annotated for this space type.

#### Example

```json
{
  "data": [
    {
      "id": "string",
      "name": "string",
      "description": "string",
      "status": "draft",
      "spaceTypes": [
        "string"
      ],
      "bound": true,
      "global": true
    }
  ]
}
```

- `data` (`listSpaceTypePlaybooks.response.200.data`; array<object>, required)
  - `id` (`listSpaceTypePlaybooks.response.200.data.id`; string, required)
  - `name` (`listSpaceTypePlaybooks.response.200.data.name`; string, required)
  - `description` (`listSpaceTypePlaybooks.response.200.data.description`; string, required)
  - `status` (`listSpaceTypePlaybooks.response.200.data.status`; string, required)
    - one of `"draft"`, `"active"`, `"archived"`
  - `spaceTypes` (`listSpaceTypePlaybooks.response.200.data.spaceTypes`; array<string>, required)
  - `bound` (`listSpaceTypePlaybooks.response.200.data.bound`; boolean, required) — Its `spaceTypes` explicitly includes this type.
  - `global` (`listSpaceTypePlaybooks.response.200.data.global`; boolean, required) — Its `spaceTypes` is empty, so it applies everywhere and cannot be unbound here.

### 404

`not_found` — the space type does not exist


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