Usage of one API client
Changed onToken, cost, traffic and live budget figures for the API client addressed by its api client key. A client migrated from a legacy credential also carries that credential's counters and traffic.
Request
- Base URLhttp://167.86.118.166:32080
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Project name
API client key
Query parameters
Start of the period, ISO-8601 UTC (2026-08-01, 2026-08-01T00:00:00Z or an offset date-time). Defaults to 30 days before 'to'.
End of the period, ISO-8601 UTC. Defaults to now. The period may not be inverted or wider than 366 days.
Exact LLM model id (e.g. gpt-5). Narrows the whole report to that model's requests and keeps the scope-total budget rows.
Environment name. Defaults to every environment of the project. Applies to traffic-log blocks only; filters.environmentApplied reports whether it took effect.
Response
successful operation!
Example response
{
"period": {
"from": "2026-08-12T00:00:00Z",
"to": "2026-09-11T00:00:00Z",
"timeZone": "UTC"
},
"budgetsAsOf": "2026-09-11T08:31:02Z"
}Changes
- info
endpoint added
- info