Skip to main content
GET
Get Usage Statistics
This endpoint returns aggregated usage metrics for your account over a selected time window. Use it to build usage dashboards, monitor credit burn rate, or understand how your workloads are distributed across days and weeks.

Time Ranges

Pass the range query parameter to select the window you want:

Response Fields

Each item in the data array represents one time period.

Example Response

Errors

If you omit the range parameter or pass an unsupported value, the API returns a 400 error:
For a full explanation of what each metric means and how to read your usage data, see the Usage and Analytics guide.

Authorizations

Authorization
string
header
required

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

Query Parameters

range
enum<string>
required

Time range: '7d' (last 7 days), '30d' (last 30 days), or 'weekly' (last 7 weeks)

Available options:
7d,
30d,
weekly

Response

Usage statistics

status
enum<string>
Available options:
success
data
object[]