> 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.

# List approvals for a playbook run

GET https://api.cloudraker.com/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.

Reference: https://docs.cloudraker.com/api/cloud-raker-api/workspace/playbooks/list-playbook-run-approvals

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: CloudRaker API
  version: 1.0.0
paths:
  /spaces/{spaceId}/playbook-runs/{runId}/approvals:
    get:
      operationId: list-playbook-run-approvals
      summary: List approvals for a playbook run
      description: >-
        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.
      tags:
        - playbooks
      parameters:
        - name: spaceId
          in: path
          required: true
          schema:
            type: string
        - name: runId
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The run’s approval requests.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlaybookApprovalList'
servers:
  - url: https://api.cloudraker.com
    description: Production
  - url: https://api.staging.raker.one
    description: Staging
  - url: https://api.dev.raker.one
    description: Development
components:
  schemas:
    PlaybookApprovalKind:
      type: string
      enum:
        - pre
        - post
      description: '`pre` gates the dispatch; `post` reviews the output.'
      title: PlaybookApprovalKind
    PlaybookApprovalFilesItems:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
      required:
        - id
        - name
      title: PlaybookApprovalFilesItems
    PlaybookApprovalArtifactsItemsOpen:
      type: string
      enum:
        - tab
        - embed
      title: PlaybookApprovalArtifactsItemsOpen
    PlaybookApprovalArtifactsItems:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          enum:
            - link
        title:
          type: string
        url:
          type: string
        open:
          $ref: '#/components/schemas/PlaybookApprovalArtifactsItemsOpen'
      required:
        - id
        - kind
        - title
        - url
        - open
      title: PlaybookApprovalArtifactsItems
    PlaybookApprovalStatus:
      type: string
      enum:
        - pending
        - approved
        - rejected
        - void
      title: PlaybookApprovalStatus
    PlaybookApproval:
      type: object
      properties:
        id:
          type: string
        kind:
          $ref: '#/components/schemas/PlaybookApprovalKind'
          description: '`pre` gates the dispatch; `post` reviews the output.'
        actionSlug:
          type: string
        installedActionId:
          type: string
        actionName:
          type: string
        actionRunId:
          type:
            - string
            - 'null'
        rationale:
          type:
            - string
            - 'null'
        files:
          type: array
          items:
            $ref: '#/components/schemas/PlaybookApprovalFilesItems'
        params:
          type:
            - object
            - 'null'
          additionalProperties:
            description: Any type
        artifacts:
          type: array
          items:
            $ref: '#/components/schemas/PlaybookApprovalArtifactsItems'
        status:
          $ref: '#/components/schemas/PlaybookApprovalStatus'
        requestedAt:
          type: string
          format: date-time
        decidedBy:
          type:
            - string
            - 'null'
        decidedAt:
          type:
            - string
            - 'null'
          format: date-time
        note:
          type:
            - string
            - 'null'
        editedParams:
          type:
            - object
            - 'null'
          additionalProperties:
            description: Any type
        editedFileIds:
          type:
            - array
            - 'null'
          items:
            type: string
      required:
        - id
        - kind
        - actionSlug
        - installedActionId
        - actionName
        - actionRunId
        - rationale
        - files
        - params
        - artifacts
        - status
        - requestedAt
        - decidedBy
        - decidedAt
        - note
        - editedParams
        - editedFileIds
      title: PlaybookApproval
    PlaybookApprovalList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/PlaybookApproval'
      required:
        - data
      title: PlaybookApprovalList
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## Examples



**Request**

```json
{}
```

**Response**

```json
{
  "data": [
    {
      "id": "a1b2c3d4-e5f6-7890-ab12-cd34ef567890",
      "kind": "pre",
      "actionSlug": "deploy-service",
      "installedActionId": "act-9876543210",
      "actionName": "Deploy Service",
      "actionRunId": "run-1234567890",
      "rationale": "Ensure deployment is approved before proceeding to production.",
      "files": [
        {
          "id": "file-1122334455",
          "name": "deployment-config.yaml"
        }
      ],
      "params": {
        "environment": "production",
        "version": "v2.3.1",
        "rollbackOnFailure": true
      },
      "artifacts": [
        {
          "id": "artifact-5566778899",
          "kind": "link",
          "title": "Deployment Plan Document",
          "url": "https://docs.cloudraker.com/deployments/plan-v2.3.1",
          "open": "tab"
        }
      ],
      "status": "pending",
      "requestedAt": "2024-01-15T09:30:00Z",
      "decidedBy": null,
      "decidedAt": null,
      "note": null,
      "editedParams": null,
      "editedFileIds": null,
      "editedOutput": null,
      "output": null
    }
  ]
}
```

**SDK Code**

```python
import requests

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

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

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

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"
	"strings"
	"net/http"
	"io"
)

func main() {

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

	payload := strings.NewReader("{}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	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/approvals")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

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/approvals")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .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/approvals', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.cloudraker.com/spaces/spaceId/playbook-runs/runId/approvals");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

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

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()
```