Skip to main content
GET
Returns a prompt-by-prompt usage breakdown for a specific session, including per-prompt cost, model, and token counts. In organization context, any org member can view usage for sessions belonging to that org. Required scope: activity:read
string
required
The session ID to get usage for.
string
required
The session ID.
object[]
required
Array of per-prompt usage entries. Each contains fields like model, cost_usd, input_tokens, output_tokens, duration_ms, timestamp, and prompt_preview.
integer
required
Total number of prompts in this session.
number
required
Total cost for the session in USD.