Skip to main content
GET
List LLM sessions grouped by session_id for an agent

Authorizations

Authorization
string
header
required

Use this header with a Bearer token to authenticate requests.

Path Parameters

tenant_id
string
required

Tenant ID

workspace_id
string
required

Workspace ID

Query Parameters

agent_id
string
required

Agent ID to filter sessions

sort
string

Column to sort by (session_id, time, tokens, cost, turns, duration_ms)

sort_dir
string

Sort direction: asc or desc

cursor
string

Pagination cursor from previous response

pageSize
integer

Number of results per page (default 10, max 10000)

Response

OK

cursor
string
required
header
string[]
required
rows
any[][]
required
total
integer
total_sampling
number