Skip to content

`GET /api/v1/agents/{node_id}/state/operations/{operation_id}/output` — captured script output for a state operation.

GET
/api/v1/agents/{node_id}/state/operations/{operation_id}/output
curl --request GET \
--url https://example.com/api/v1/agents/example/state/operations/example/output

Per design 0015, captured stdout/stderr is stored in <data-dir>/apply-outputs/<operation_id>.output.cbor. The response output object is keyed by "module_name/identity" — the composite key avoids collisions when two modules define a script resource with the same identity. If no output file exists (no scripts produced output, or the file was lost), the endpoint returns an empty output object — the operation record itself remains authoritative.

node_id
required
string

Agent node ID

operation_id
required
string

State operation ID

Captured script output for the operation

Media type application/json
Example generated
example

Operation not found