# The workspace's Monid connection, balance and tool limits.

> Read from what Monid last said about the key (when it was stored, tested, or by the reconciler): a read never calls Monid.
> https://koi.dog/docs/api/tools/get-monid-connection/

`GET /api/v1/tools/monid` · Scope: `read`

`enabled` is false on a server that does not offer Monid. Never the key: `hasSecret` only. `account.missingScopes` names scopes the relay needs that the key lacks; `account.unusedScopes` the account-administration scopes Koidog never uses.

## Response.

200 OK · JSON object

## Request.

```sh
curl https://api.koi.dog/api/v1/tools/monid \
    -H "Authorization: Bearer $KOIDOG_API_KEY"
```

```js
const res = await fetch("https://api.koi.dog/api/v1/tools/monid", {
  headers: {
    Authorization: `Bearer ${process.env.KOIDOG_API_KEY}`,
  },
});
console.log(await res.json());
```

```python
import os

import requests

r = requests.get(
    "https://api.koi.dog/api/v1/tools/monid",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_API_KEY']}",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

```json
{
  "enabled": false,
  "connectionId": "pc_monid",
  "status": "not_connected",
  "reason": "not_configured",
  "next": [],
  "base": "unconfigured",
  "hasSecret": false,
  "addedAt": "string",
  "observedAt": "string",
  "account": {
  },
  "wallet": {
  },
  "controls": {
  },
  "limits": {
    "crewUsd": 0,
    "monthlyUsd": 0,
    "callCeilingUsd": 0,
    "set": false
  },
  "month": {
    "periodStart": "string",
    "spentUsd": 0,
    "reservedUsd": 0
  },
  …
}
```
