# Tool calls agents made through Monid.

> Newest first.
> https://koi.dog/docs/api/tools/list-tool-calls/

`GET /api/v1/tool-calls` · Scope: `read`

Never a call's input or output: `summary` is a redacted outline of what was sent. `settlement` says what the tool ledger holds: `reserved` and `pending` (ended, its cost not reported yet) count the call's ceiling against the budgets, `settled` what Monid reported, `released` nothing. Query: `crewId`, `runId`, `state`, `kind`.

## Query parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `crewId` | `string` | no | Filter by crew. At least 5 characters. |
| `runId` | `string` | no | Filter by run. At least 5 characters. |
| `state` | `enum` | no | One or more states, comma-separated. One of `awaiting_approval`, `reserved`, `sent`, `running`, `completed`, `failed`, `blocked`, `stopped`, `refused`. |
| `kind` | `enum` | no | One or more values, comma-separated. For events: exact kinds or prefixes such as `run.*`. One of `automatic`, `message`, `rental`, `publish`, `payment`, `unclassified`. |
| `limit` | `1–200` | no | Page size. Default `50`. |
| `cursor` | `string` | no | Previous page’s `nextCursor`. Keep filters and order. At least 1 character. |
| `order` | `enum` | no | Sort by creation time, then ID. `desc` newest, `asc` oldest. One of `asc`, `desc`. Default `desc`. |
| `createdAfter` | `string` | no | From this UTC timestamp, inclusive (e.g. `2027-01-01T00:00:00Z`). Uses run start, node pairing, move request, event or log time, otherwise creation. |
| `createdBefore` | `string` | no | Through this UTC timestamp, inclusive. See `createdAfter`. |

## Response.

200 OK · `data`: `object[]`. Pass `nextCursor` as `cursor` when `hasMore` is true.

## Request.

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

```js
const res = await fetch("https://api.koi.dog/api/v1/tool-calls", {
  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/tool-calls",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_API_KEY']}",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

```json
{
  "data": [],
  "nextCursor": "string",
  "hasMore": false
}
```
