Read a subject's rolling AI spend
Managed Proxy
Get Subject Usage
Read one end-user (subject)‘s AI spend over a rolling window, from inside the workspace VM.
GET
Read a subject's rolling AI spend
This endpoint is served by the in-VM managed proxy at
http://172.16.0.1:9090, not the public api.rigbox.dev gateway. It is IP-attested and scoped to the calling workspace’s owner — you can only read your own subjects.Query Parameters
The end-user id (the value sent as X-Rigbox-Subject / OpenAI user).
Example:
"tenant-42"
Rolling window: 30s/15m/5h/7d or a bare number of seconds. Defaults to 86400 (24h).
Example:
"24h"
Response
The subject's usage over the window.