---
title: "List pending and decided approvals"
---

> Documentation Index
> Fetch the complete documentation index at: https://tryshiba.dev/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Shiba public API › approvals

`GET /approvals`

## Authentication

- `cookieAuth`, apiKey, in cookie

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/api/v1/approvals' \
  --cookie 'better-auth.session_token=<better-auth.session_token>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/approvals';
const options = {method: 'GET', headers: {cookie: 'better-auth.session_token=<better-auth.session_token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/api/v1/approvals"

headers = {"cookie": "better-auth.session_token=<better-auth.session_token>"}

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

print(response.text)
```

## Responses

### 200

Success

#### Example

```json
{
  "approvals": [
    {
      "approvalId": "string",
      "threadKey": "string",
      "status": "string",
      "kind": "string",
      "createdAt": 0,
      "decidedAt": 0,
      "property1": null,
      "property2": null
    }
  ],
  "decided": [
    {
      "approvalId": "string",
      "threadKey": "string",
      "status": "string",
      "kind": "string",
      "createdAt": 0,
      "decidedAt": 0,
      "property1": null,
      "property2": null
    }
  ]
}
```

- `approvals` (`listApprovals.response.200.approvals`; array<object>, required)
  - `approvalId` (`listApprovals.response.200.approvals.approvalId`; string, required)
  - `threadKey` (`listApprovals.response.200.approvals.threadKey`; string, optional)
  - `status` (`listApprovals.response.200.approvals.status`; string, optional)
  - `kind` (`listApprovals.response.200.approvals.kind`; string, optional)
  - `createdAt` (`listApprovals.response.200.approvals.createdAt`; number, optional)
  - `decidedAt` (`listApprovals.response.200.approvals.decidedAt`; number, optional)
- `decided` (`listApprovals.response.200.decided`; array<object>, required)
  - `approvalId` (`listApprovals.response.200.decided.approvalId`; string, required)
  - `threadKey` (`listApprovals.response.200.decided.threadKey`; string, optional)
  - `status` (`listApprovals.response.200.decided.status`; string, optional)
  - `kind` (`listApprovals.response.200.decided.kind`; string, optional)
  - `createdAt` (`listApprovals.response.200.decided.createdAt`; number, optional)
  - `decidedAt` (`listApprovals.response.200.decided.decidedAt`; number, optional)

### 401

Unauthorized

#### Example

```json
{
  "ok": false,
  "error": "string",
  "detail": "string",
  "code": "string"
}
```

- `error` (`listApprovals.response.401.error`; string, required)
- `ok` (`listApprovals.response.401.ok`; boolean, optional)
- `detail` (`listApprovals.response.401.detail`; string, optional)
- `code` (`listApprovals.response.401.code`; string, optional)


Source: https://tryshiba.dev/reference/api/approvals/listApprovals/index.md
