Need more detail? Connect your coding agent to the full docs.

Skip to Content
AMIRILDocs
/

Runs

The Runs routes of Amiril's HTTP API that an OAuth access token can call, with their parameters, request bodies and responses.

GET
/api/runs/{runId}/decisions

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.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

runId*string

Response Body

The run's decisions

application/json
  1. response
runId*string
decisions*array<>
stopped*array<>

The calls the SDK stopped before they ran, each once, oldest first, read from the decisions above

Example Request
curl -X GET 'https://api.amiril.ai/api/runs/string/decisions'
Example Response200
{  "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"    }  ]}