Inspect

List session messages

Retrieve all messages for a specific session, including user prompts and assistant responses. Laminar-runtime sessions return the same message shape, projected from the Laminar transcript. If the Laminar 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}/messages

Retrieve all messages for a specific session, including user prompts and assistant responses. Laminar-runtime sessions return the same message shape, projected from the Laminar transcript. If the Laminar 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

Response Body

Session messages

application/json
  1. response
data*array<|>
meta*
Example Request
curl -X GET 'https://app.inspect.com/api/v2/sessions/h2k9x4m7q1pd/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  }}