latestOpenAPI 3.1.02026-08-223321,1001.6 MB
2134ebffd1ef
Get Analytics
Return the schema-driven analytics payload for the caller's org.
Requires organization admin role or higher. Window params are validated by FastAPI (bad timestamps / inverted range fail as 422 before this runs).
The Sessions metric's row-level table is not inlined — fetch it from /v2/analytics/{metric}/detail.
get/v2/analytics
Query parameters
start_timestring date-time nullable
Start timestamp (inclusive), ISO 8601 with timezone. Defaults to 30 days ago.
Example:2025-01-15T00:00:00.000Z
Start timestamp (inclusive), ISO 8601 with timezone. Defaults to 30 days ago.
end_timestring date-time nullable
End timestamp (exclusive), ISO 8601 with timezone. Defaults to now.
Example:2025-02-15T23:59:59.999Z
End timestamp (exclusive), ISO 8601 with timezone. Defaults to now.
granularity'day'
Timeseries bucket granularity.
Response
Successful Response