v1

latestOpenAPI 3.1.02026-07-175793186.0 KB
sessions

Get session usage stats

Aggregated token counts, latency, and model breakdown for all turns in a session.

get/api/v1/sessions/{session_id}/stats

Path parameters

session_idstring required

Identifier of the session whose stats to retrieve.

Identifier of the session whose stats to retrieve.

Response

Successful Response

total_tokens_ininteger

Total input tokens across all turns.

total_tokens_outinteger

Total output tokens across all turns.

total_latency_msinteger

Total latency in milliseconds across all turns.

model_breakdownobject

Mapping of model_name to turn count.