# Waiting approvals, today, this month

Source: https://immiscible.fly.dev/docs/api/get-v1-cli-status

`GET /v1/cli/status`

What waits for approval (the agents this person can see), today's decisions since 00:00 UTC, and this month's AI spend (measured by the gateway) and agent payments, in the workspace's books currency at the newest stored ECB rate.

## Authentication

CLI token. A token (`imc_...`) the developer CLI gets by signing in through the browser (`immiscible login`, the OAuth device grant), sent as `Authorization: Bearer`. It acts for one person in one workspace: it reads agents and status, and registers an agent with a rule from the same purposes as the console's "Add an agent". It never approves anything or changes an existing rule. Every use re-checks the person's membership and the workspace's sign-in rules; it lasts 90 days and ends from the console's sessions.

## Request

curl:

```bash
curl "https://immiscible.fly.dev/v1/cli/status" \
  -H "authorization: Bearer $IMMISCIBLE_TOKEN"
```

Node:

```ts
const res = await fetch('https://immiscible.fly.dev/v1/cli/status', {
  headers: {
    authorization: `Bearer ${process.env.IMMISCIBLE_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/cli/status",
    headers={
        "authorization": f"Bearer {os.environ['IMMISCIBLE_TOKEN']}",
    },
)
print(res.status_code, res.json())
```

## Response

```json
{
  "workspace": {
    "id": "ws_12832a06f3134d5f",
    "name": "Amethyst",
    "role": "owner",
    "currency": "GBP"
  },
  "generatedAt": "2026-10-06T12:47:47.555Z",
  "waiting": {
    "count": 3,
    "items": [
      {
        "id": "apr_174974d88fb7e09461b72aa5",
        "agentId": "agt_b85c6ccee4e02157a00cd278",
        "agentName": "Finance ops",
        "summary": "Pay Kings Cross Couriers invoice 0931 to the updated bank account",
        "type": "payment",
        "amountText": "£18,400.00",
        "createdAt": "2026-10-06T12:34:17.227Z",
        "expiresAt": "2026-10-07T12:34:17.227Z",
        "url": "https://immiscible.fly.dev/app/approvals/apr_174974d88fb7e09461b72aa5?w=ws_12832a06f3134d5f"
      }
    ]
  },
  "today": {
    "since": "2026-10-06T00:00:00.000Z",
    "allowed": 0,
    "refused": 0,
    "asked": 3,
    "total": 3
  },
  "month": {
    "month": "2026-10",
    "currency": "GBP",
    "ai": {
      "minor": 0,
      "text": "£0.00",
      "requests": 0,
      "usdMicros": 0
    },
    "payments": {
      "minor": 166300,
      "text": "£1,663.00",
      "count": 6,
      "unconverted": []
    },
    "rate": {
      "perUsd": 0.756159,
      "day": "2026-10-05",
      "source": "European Central Bank reference rate"
    }
  }
}
```
