GET /api/v1/credits/usage
Return credit consumption analytics for the specified date range. Defaults to the last 30 days when no dates are provided.
Query parameters
Inclusive start date in
YYYY-MM-DD format. Defaults to 30 days before end_date.Inclusive end date in
YYYY-MM-DD format. Defaults to today.Response
The resolved start date used for the query.
The resolved end date used for the query.
Total credits consumed in the date range.
Monthly credit allowance for your subscription tier.
null if not applicable.Percentage of monthly allowance consumed.
null when allowance is not set.Average credits consumed per day in the date range.
Projected monthly usage extrapolated from current pace.
null when insufficient data.The tool or package that consumed the most credits in the date range.
Per-tool credit breakdown.
Daily credit consumption.
Example
cURL
Response