---
title: "List approvals for a playbook run"
---

> 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 approvals for a playbook run

Path: CloudRaker Workspace API › Playbooks

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

Lists the run's action approval requests — both pre-action gates (approve before an action runs) and post-action gates (review the action output) — each with its status (pending, approved, rejected, void), the proposed action (slug, installedActionId, name), rationale, params, input files, output and artifacts, plus decision metadata (decidedBy, decidedAt, note, edited params/files/output). Authorization: `space:read` (org admins bypass); missing → 404. Returns `{ data: Approval[] }` with no pagination. Capability redaction: callers without `space:contribute` get artifact URLs / storage keys stripped from the payload.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

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

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

The run’s approval requests.

#### Example

```json
{
  "data": [
    {
      "id": "string",
      "kind": "pre",
      "actionSlug": "string",
      "installedActionId": "string",
      "actionName": "string",
      "actionRunId": "string",
      "rationale": "string",
      "files": [
        {
          "id": "string",
          "name": "string"
        }
      ],
      "params": {
        "property1": null,
        "property2": null
      },
      "output": {},
      "artifacts": [
        {
          "id": "string",
          "kind": "link",
          "title": "string",
          "url": "string",
          "open": "tab"
        }
      ],
      "status": "pending",
      "requestedAt": "2019-08-24T14:15:22Z",
      "decidedBy": "string",
      "decidedAt": "2019-08-24T14:15:22Z",
      "note": "string",
      "editedParams": {
        "property1": null,
        "property2": null
      },
      "editedFileIds": [
        "string"
      ],
      "editedOutput": {}
    }
  ]
}
```

- `data` (`listPlaybookRunApprovals.response.200.data`; array<object>, required)
  - `id` (`listPlaybookRunApprovals.response.200.data.id`; string, required)
  - `kind` (`listPlaybookRunApprovals.response.200.data.kind`; string, required) — `pre` gates the dispatch; `post` reviews the output.
    - one of `"pre"`, `"post"`
  - `actionSlug` (`listPlaybookRunApprovals.response.200.data.actionSlug`; string, required)
  - `installedActionId` (`listPlaybookRunApprovals.response.200.data.installedActionId`; string, required)
  - `actionName` (`listPlaybookRunApprovals.response.200.data.actionName`; string, required)
  - `actionRunId` (`listPlaybookRunApprovals.response.200.data.actionRunId`; string | null, required)
  - `rationale` (`listPlaybookRunApprovals.response.200.data.rationale`; string | null, required)
  - `files` (`listPlaybookRunApprovals.response.200.data.files`; array<object>, required)
    - `id` (`listPlaybookRunApprovals.response.200.data.files.id`; string, required)
    - `name` (`listPlaybookRunApprovals.response.200.data.files.name`; string, required)
  - `params` (`listPlaybookRunApprovals.response.200.data.params`; any of, required)
    - any of: `map<unknown>`, `null`
  - `output` (`listPlaybookRunApprovals.response.200.data.output`; any of, required)
    - any of: `Option 1`, `null`
  - `artifacts` (`listPlaybookRunApprovals.response.200.data.artifacts`; array<object>, required)
    - `id` (`listPlaybookRunApprovals.response.200.data.artifacts.id`; string, required)
    - `kind` (`listPlaybookRunApprovals.response.200.data.artifacts.kind`; string, required)
    - `title` (`listPlaybookRunApprovals.response.200.data.artifacts.title`; string, required)
    - `url` (`listPlaybookRunApprovals.response.200.data.artifacts.url`; string, required)
    - `open` (`listPlaybookRunApprovals.response.200.data.artifacts.open`; string, required)
      - one of `"tab"`, `"embed"`
  - `status` (`listPlaybookRunApprovals.response.200.data.status`; string, required)
    - one of `"pending"`, `"approved"`, `"rejected"`, `"void"`
  - `requestedAt` (`listPlaybookRunApprovals.response.200.data.requestedAt`; 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))$`
  - `decidedBy` (`listPlaybookRunApprovals.response.200.data.decidedBy`; string | null, required)
  - `decidedAt` (`listPlaybookRunApprovals.response.200.data.decidedAt`; any of, required)
    - any of: `string`, `null`
  - `note` (`listPlaybookRunApprovals.response.200.data.note`; string | null, required)
  - `editedParams` (`listPlaybookRunApprovals.response.200.data.editedParams`; any of, required)
    - any of: `map<unknown>`, `null`
  - `editedFileIds` (`listPlaybookRunApprovals.response.200.data.editedFileIds`; any of, required)
    - any of: `array<string>`, `null`
  - `editedOutput` (`listPlaybookRunApprovals.response.200.data.editedOutput`; any of, required)
    - any of: `Option 1`, `null`


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