Messages
Read a session's transcript
The captured transcript as the events the live stream carries (message, tool_use, tool_result, thinking, error, result), filtered and sliced on the server. A turn starts at each user message; first/last keep that many turns, then include/exclude filter by role. Available once the run has captured its transcript; before that the answer is 404 SESSION_NOT_CAPTURED.
get/o/{org}/sessions/{session}/messages
Request
- Base URL: https://api.prix.dev
- URL: https://api.prix.dev/o/{org}/sessions/{session}/messages
- Auth: HTTP bearer
Query parameters
includestring
Example:user,assistant
Comma-separated roles to keep.
excludestring
Example:thinking
Comma-separated roles to drop. Not with include.
firstinteger
Keep the first N turns. Not with last.
lastinteger
Keep the last N turns. Not with first.
Response
The transcript slice.
Changes
No recorded changes to this operation across all 2 revisions of this API.