GET /api/v1/calls
Preview. Ships with the next server release.
the newest tool calls, for the
page; one agent’s timeline with agent; older pages with before. A page shorter than limit
is the last.
Query parameters
| Name | Type | Required | Meaning |
|---|---|---|---|
agent | integer | no | Only this agent’s calls (its id on /api/agents, the token id). |
before | integer | no | Only calls older than this call id: the next page is before=<the last id of a full page>. |
limit | integer | no | How many calls, newest first: 50 when not given, at most 200. |
Responses
| Status | Meaning | Body |
|---|---|---|
200 | Recent tool calls | application/json object[] |
401 | Unauthorized | application/json |
503 | Store unavailable | application/json |
Response fields
| Field | Type | Always | Meaning |
|---|---|---|---|
author | string | yes | |
id | integer | yes | |
machine | string | yes | |
machine_name | string | yes | |
ms | integer | no | |
outcome | string | no | ok, an error code, cancelled (the caller went away first) or interrupted (the server stopped first); none while it runs. |
refused | boolean | yes | The caller was refused (the grant, an OS permission or the app list said no), as opposed to the tool failing. |
sealed | boolean | yes | Sealed end to end: the server never saw its arguments or answer. False for MCP and the page, whose calls pass through the server in clear. |
started | integer | yes | |
task | integer | no | The task the call started (task_start) or named (a plain task_output / task_stop); none for other tools and for a sealed call that names a task. |
token | integer | yes | The token that made the call: an agent’s id on /api/agents, or the owner’s token. |
tool | string | yes |
Example
curl -sS "https://<contour>.cmdop.ai/api/v1/calls" \
-H "Authorization: Bearer $CMDOP_TOKEN"