Getusagetimeseries
Authentication
Headers
Required for a normal JWT, Virtual Key, or PAT. A JWT may instead send X-Openmodel-User-Id. Not used by the public health endpoint.
JWT-only alternative to X-Workspace-Id. Must be a UUID equal to the JWT subject; the server uses it as the workspace id. Not valid as the sole workspace header for Virtual Key or PAT authentication.
Query parameters
One of cost, requests, tokens, avg_cost_per_req, success_rate, latency.
hour selects hourly buckets; omitted or any other value selects day.
Same allowed values as usage summary; default 30d when no explicit start and end.
YYYY-MM-DD, paired with end.
YYYY-MM-DD, paired with start.