usage
Get cost forecast for an API key
Uses historical usage data to predict when the budget will be exhausted. Returns average daily spend, projected exhaustion date, and confidence intervals.
get/admin/v1/api-keys/{key_id}/usage/forecast
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /admin/v1/api-keys/{key_id}/usage/forecast
- Auth: HTTP bearer
Path parameters
key_idstring uuid required
API key ID
Query parameters
lookback_daysinteger nullable
Number of days of historical data to use (default: 30)
forecast_daysinteger nullable
Number of days to forecast ahead (default: 7)
Response
Cost forecast
Changes
No recorded changes to this operation across all 1 revision of this API.