Skip to main content

List one child agent run's own durable transcript

GET 

/session/agents/:agentRunId/messages

Lists one child agent run's own transcript, oldest first (by sequence). A child agent runs in a separate model context, so its transcript is stored apart from the session transcript, never appears under GET /messages, and is never absorbed by a session compaction.

The first record is the task the launching agent gave the child, as a user message in a <message> block that names the sender. The rest are the child's assistant messages, tool results, and the messages it received from other agents or from you. A child transcript never contains system messages.

  • Select the session with the X-Session-ID header.
  • Paging uses limit (1 to 200, default 50) and offset (default 0). hasMore is true when more messages follow this page.
  • Returns 404 with code SESSION_NOT_FOUND when the session does not exist, 404 with code NOT_FOUND (agent run not found) when the run does not belong to it, and 400 with code VALIDATION_FAILED for invalid paging values.

Request​

Responses​

One page of the child's transcript, oldest first.

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.