Token usage, for the current user or everyone
GET/plugin-api/ai/usage
Totals for today, 7 and 30 days, then per day, per model and per feature over 30 days. scope=all covers every user and adds a per user breakdown; it needs ai.usage.view_all. offset is the browser's time zone offset in minutes, as getTimezoneOffset gives it, so days are the viewer's own.
Request
Responses
- 200
- 403
The usage summary.
Missing ai.use, scope=all without ai.usage.view_all, or the assistant is off.