Skip to main content
GET
Get project analytics

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required

Project ID.

Query Parameters

view
enum<string>

Analytics view to return. Omit for the general timeseries payload so existing callers keep working.

Available options:
general,
base,
window,
model_scorecard,
agent_scorecard,
tool_aggregates,
roi
start
string

Inclusive window start (ISO-8601).

end
string

Optional inclusive window end (ISO-8601).

endExclusive
string

Exclusive window end (ISO-8601). Required for base, window, agent_scorecard, and tool_aggregates.

hours
string

General-view lookback hours. Defaults to 24.

granularity
enum<string>

day, week, or month.

Available options:
day,
week,
month

Response

Project analytics view

requests
object[]
required
errors
object[]
required
speed
object[]
required
prompt_tokens
object[]
required
completion_tokens
object[]
required
top_models
object[]
required
speed_percentiles_timeseries
object[]
required
totals
object
required