API Reference
Log In
API Reference

Get trace metrics by organization

Returns requests, cost, tokens and session count per consuming organization. Use agent to limit to one coding assistant, such as claude-code.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required

ID of the team that owns this data.

string
enum

Predefined time window to aggregate results. Defaults to THIRTY_DAYS.

string

Optional agent filter. Use to filter by specific agent (e.g., 'claude-code' for Claude Code metrics). Omit to include all agents.

string

Start of a custom date range in ISO 8601 format (e.g., 2025-09-01T00:00:00Z). Must be provided together with end. When both are provided, the period parameter is ignored.

string

End of a custom date range in ISO 8601 format (e.g., 2025-09-30T23:59:59Z). Must be provided together with start. When both are provided, the period parameter is ignored.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*