Inspect

List session subagent messages

Retrieve the messages of a subagent of the session, in the same shape as GET /sessions/{session_id}/messages. Returns 404 when the subagent does not belong to the session. If the transcript exceeds the read limits, the response contains the latest history only and has the header `X-Inspect-Transcript-Truncated: true`.

Base URL
GET
/api/v2/sessions/{session_id}/subagents/{subagent_id}/messages

Retrieve the messages of a subagent of the session, in the same shape as GET /sessions/{session_id}/messages. Returns 404 when the subagent does not belong to the session. If the transcript exceeds the read limits, the response contains the latest history only and has the header X-Inspect-Transcript-Truncated: true.

Authorization

bearerAuth sessions:read
headerAuthorizationBearer <token>

API key authentication. Use your API key as the bearer token.

Scope: sessions:read

Path Parameters

session_id*string

The unique identifier of the session

subagent_id*string

The unique identifier of a subagent of the session

Response Body

Session messages

application/json
  1. response
data*array<|>
meta*
Example Request
curl -X GET 'https://app.inspect.com/api/v2/sessions/h2k9x4m7q1pd/subagents/01M61KAC2XM9S346Q3D25VT4F5/messages'
Example Response
{  "data": [    {      "role": "user",      "id": "msg_laminar_user_41",      "created_at": "2026-10-28T15:42:11.204Z",      "source": "automation",      "parent_session_id": null,      "synthetic": false,      "parts": [        {          "type": "text",          "id": "prt_laminar_seq_44",          "text": "The redirect loop came from `requireOnboarding` treating verified users without a workspace as new signups. I added a workspace check and opened acme/web#1842."        }      ]    }  ],  "meta": {    "next_cursor": "eyJ2IjoxLCJzIjoicHVibGlzaGVkX2F0X2Rlc2MiLCJrIjpbZmFsc2UsMTc5MzAyNDQ2NzMzMCwicjVqMWI4dDN5NnFlIl19",    "previous_cursor": "eyJ2IjoxLCJzIjoicHVibGlzaGVkX2F0X2Rlc2MiLCJrIjpbZmFsc2UsMTc5MzIwMjEzMTIwNCwieDdrMm05cTRwMXphIl19",    "has_next_page": true,    "has_previous_page": false  }}