Runs
The Runs routes of Amiril's HTTP API that an OAuth access token can call, with their parameters, request bodies and responses.
Every decision record the SDK posted for the run (its trace), oldest first, with how its call joined a tool span: exact, approximate, ambiguous or unjoined (valid for a framework that emits no span for a blocked call), and whether the joined span is marked as a call that did not run. stopped lists the calls those records stopped before they ran, each once.
Any access token can call this, read-only or full.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
runId*stringThe run's decisions
application/json- response
runId*stringdecisions*array<>stopped*array<>The calls the SDK stopped before they ran, each once, oldest first, read from the decisions above
curl -X GET 'https://api.amiril.ai/api/runs/string/decisions'{ "runId": "string", "decisions": [ { "id": "string", "ts": "string", "decision": "string", "action": "string", "mode": "string", "aggregate": "string", "phase": "string", "rule": { "id": "string", "version": "string" }, "tool": "string", "agent": "string", "callId": "string", "attempt": 0, "sentence": "string", "join": { "status": "exact", "step": 0, "spanId": "string", "marked": true, "attached": true, "blocked": true, "pending": true } } ], "stopped": [ { "key": "string", "tool": "string", "rule": { "id": "string", "version": "string" }, "sentence": "string", "at": "string", "attempt": 0, "spanId": "string" } ]}