Runs
Get a run (poll for status / final result)
Changed onReturns the run object. Works while the run is still running (status: "running" with partial actions[]) and after it terminates. This is the primary read path; every call after POST /agents polls this endpoint until status !== "running".
get/agents/{id}/runs/{runId}
Request
- Base URLhttps://origami.chat/api/v2
- URLhttps://origami.chat/api/v2/agents/{id}/runs/{runId}
- AuthHTTP bearer
Query parameters
includestring
Example:stats,transcript
CSV-style list of opt-in projections. Recognized tokens:
- stats: embed table economics on every response.tables[] entry (per-table + per-column).
- transcript: return the full public transcript on response.transcript. Combine: ?include=stats,transcript. Unknown tokens are ignored.
Response
The run object
Example response
{
"todo": {
"pendingQuestions": [
{
"freeformOption": "Or something else"
}
]
}
}Changes
- breaking
the response property
////////became nullable for the status - info
response property
allOf[subschema #2]/response/allOf[RunResponse]/tables/items/workspaceIddeprecated - info
response property
allOf[subschema #2]/workspaceIddeprecated
- breaking