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 turn objects.
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/turns \
-H "Authorization: Bearer <api-key>"
{
"object": "list",
"data": [
{
"id": "turn_01C",
"session_id": "sess_01J5X8",
"status": "completed",
"created_at": "2024-06-01T12:30:00Z"
}
]
}
Fetch completed turns for an agent session. Each turn groups one full user-input to model-response cycle.
curl https://agent.example.com/v1/agents/sessions/sess_01J5X8/turns \
-H "Authorization: Bearer <api-key>"
{
"object": "list",
"data": [
{
"id": "turn_01C",
"session_id": "sess_01J5X8",
"status": "completed",
"created_at": "2024-06-01T12:30:00Z"
}
]
}
GET /v1/agents/sessions/{session_id}/turns
Authorization: Bearer <api-key> or Authorization: ApiKey <key>.
list.curl https://agent.example.com/v1/agents/sessions/sess_01J5X8/turns \
-H "Authorization: Bearer <api-key>"
{
"object": "list",
"data": [
{
"id": "turn_01C",
"session_id": "sess_01J5X8",
"status": "completed",
"created_at": "2024-06-01T12:30:00Z"
}
]
}
Was this page helpful?