# Waiting approvals (machine)

Source: https://immiscible.fly.dev/docs/api/get-v1-admin-approvals

`GET /v1/admin/approvals`

`approvals:read`. What is waiting and since when, plus suggested rules. A machine reads approvals; it never decides them.

## Authentication

Service token. A scoped machine token (`ims_...`) made by an owner or admin under Settings, sent as `Authorization: Bearer`. Each route needs one scope; tokens expire within 90 days and can be pinned to address ranges. A token can stop agents but never start them, and never decides an approval.

## Request

curl:

```bash
curl "https://immiscible.fly.dev/v1/admin/approvals" \
  -H "authorization: Bearer $IMMISCIBLE_SERVICE_TOKEN"
```

Node:

```ts
const res = await fetch('https://immiscible.fly.dev/v1/admin/approvals', {
  headers: {
    authorization: `Bearer ${process.env.IMMISCIBLE_SERVICE_TOKEN}`,
  },
});
const data = await res.json();
console.log(res.status, data);
```

Python:

```python
import os
import requests

res = requests.get(
    "https://immiscible.fly.dev/v1/admin/approvals",
    headers={
        "authorization": f"Bearer {os.environ['IMMISCIBLE_SERVICE_TOKEN']}",
    },
)
print(res.status_code, res.json())
```
