Skip to Content
ReferenceHTTP APIGET /api/v1/calls

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

NameTypeRequiredMeaning
agentintegernoOnly this agent’s calls (its id on /api/agents, the token id).
beforeintegernoOnly calls older than this call id: the next page is before=<the last id of a full page>.
limitintegernoHow many calls, newest first: 50 when not given, at most 200.

Responses

StatusMeaningBody
200Recent tool callsapplication/json object[]
401Unauthorizedapplication/json
503Store unavailableapplication/json

Response fields

FieldTypeAlwaysMeaning
authorstringyes
idintegeryes
machinestringyes
machine_namestringyes
msintegerno
outcomestringnook, an error code, cancelled (the caller went away first) or interrupted (the server stopped first); none while it runs.
refusedbooleanyesThe caller was refused (the grant, an OS permission or the app list said no), as opposed to the tool failing.
sealedbooleanyesSealed 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.
startedintegeryes
taskintegernoThe 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.
tokenintegeryesThe token that made the call: an agent’s id on /api/agents, or the owner’s token.
toolstringyes

Example

curl -sS "https://<contour>.cmdop.ai/api/v1/calls" \ -H "Authorization: Bearer $CMDOP_TOKEN"