v1
latestOpenAPI 3.1.02026-07-2675394318.9 KBoperation
Result of one subprocess, reconstructed from its events
Returns an InstanceResult for spid — the same shape as the parent operation's metadata.result — folded from the subprocess's event log (spawn / stdout / stderr / exit). Works for running and terminal operations alike. While the process is still running, state.exit_code and state.signal are -1 (unknown) and resources holds sentinel defaults; once the exit event lands they carry the real values.
stdout / stderr are consolidated and capped at the spec's truncate_output_at. The raw event stream stays available at GET /operations/{operationId}/events?spid={spid}.
get/operations/{operationId}/subprocesses/{spid}
Path parameters
operationIdstring uuid required
A UUID string
Example:12345678-9abc-baba-deda-0123456789ab
The ID of the operation
spidinteger required
Spawn id (1 = main process; ≥2 = exec'd children).
Response
Result of the requested subprocess.
Example response
{
"stdout": {
"value": "Y29tbWFuZCBvdXRwdXQK",
"encoding": "base64"
},
"stderr": {
"value": "Y29tbWFuZCBvdXRwdXQK",
"encoding": "base64"
}
}