v1

latestOpenAPI 3.1.02026-07-22128346287.7 KB
Calls

Call Stats

post/calls/stats

Request body

project_idstring required
startstring date-time required

Inclusive start time (UTC, ISO 8601).

endstring date-time nullable

Exclusive end time (UTC, ISO 8601). Defaults to now if omitted.

granularityinteger nullable

Bucket size in seconds (e.g., 3600 for 1 hour). If omitted, auto-selected based on time range. Will be adjusted if it would produce more than 10,000 buckets.

timezonestring

IANA timezone for bucket alignment (e.g., 'America/New_York')

Response

Successful Response

startstring date-time required

Resolved start time (UTC)

endstring date-time required

Resolved end time (UTC)

granularityinteger required

Bucket size used (in seconds)

timezonestring required

Timezone used for bucket alignment

usage_bucketsobject[]

Usage metrics by model. Each bucket contains 'timestamp', 'model', and aggregated metric values.

call_bucketsobject[]

Call-level metrics. Each bucket contains 'timestamp' and aggregated metric values.