Endpoint
Authentication
Pass one ofAuthorization: Bearer <api-key> or Authorization: ApiKey <key>.
Path Parameters
string
required
The agent session identifier.
Response
string
Always
list.array
Array of item objects in the session.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl https://agent.example.com/v1/agents/sessions/sess_01J5X8/items \
-H "Authorization: Bearer <api-key>"
{
"object": "list",
"data": [
{
"id": "msg_01A",
"role": "user",
"content": "Hello"
},
{
"id": "msg_01B",
"role": "assistant",
"content": "Hi there"
}
]
}
Retrieve every raw item inside an agent session, including messages, tool calls, and tool outputs, as a paginated list.
curl https://agent.example.com/v1/agents/sessions/sess_01J5X8/items \
-H "Authorization: Bearer <api-key>"
{
"object": "list",
"data": [
{
"id": "msg_01A",
"role": "user",
"content": "Hello"
},
{
"id": "msg_01B",
"role": "assistant",
"content": "Hi there"
}
]
}
GET /v1/agents/sessions/{session_id}/items
Authorization: Bearer <api-key> or Authorization: ApiKey <key>.
list.curl https://agent.example.com/v1/agents/sessions/sess_01J5X8/items \
-H "Authorization: Bearer <api-key>"
{
"object": "list",
"data": [
{
"id": "msg_01A",
"role": "user",
"content": "Hello"
},
{
"id": "msg_01B",
"role": "assistant",
"content": "Hi there"
}
]
}
Was this page helpful?