usage_timeseries
Fetch usage timeseries with request and credit consumption buckets in UTC for chart rendering, filtering by time range, bucket size, or endpoint.
Instructions
Get current user's usage timeseries. Returns JWT-authenticated request and credit consumption buckets for chart rendering. Results use UTC buckets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Custom upper bound in RFC3339 format when range=custom | |
| from | No | Custom lower bound in RFC3339 format when range=custom | |
| range | No | Time range preset. Defaults to the current billing period. | |
| bucket | No | Bucket size. Defaults to hour for day range and day otherwise. | |
| endpoint | No | Optional endpoint filter |