Skip to main content

Read one durable child agent run

GET 

/session/agents/:agentRunId

Returns every stored detail of one child agent run: its parent turn and tool call, depth, task, instructions, allowed tools, system prompt, model, state, final answer, token counts, failure details, and start and end times. waiting, question, and paused are computed when you read the run.

responseText holds the whole final answer, even when the agent.finished session event that reported it to the root conversation was cut to fit the event size limit.

  • Select the session with the X-Session-ID header.
  • Returns 404 with code SESSION_NOT_FOUND when the session does not exist, and 404 with code NOT_FOUND (agent run not found) when the run does not belong to it. A run ID from another session answers the same as an unknown one.

Request​

Responses​

The child agent run.

Response Headers
    X-Session-ID

    The session this response belongs to. For session-scoped requests it echoes the X-Session-ID request header; for POST /sessions/open and POST /sessions/system it is the session that was opened or created.

    X-Request-ID

    The request's correlation ID. When the request carried an X-Request-ID header holding a UUID, Peen echoes it; otherwise Peen generates a new UUID. The controller log records the same value for this request.