Usage
The usage and limits of the token that makes the request.
GET https://code.test.indicia-ai.com/v1/usageReturns the usage and limits of the token that makes the request. It never shows another token's usage, not even another token of the same person. This request does not count toward your limits.
Example request
curl https://code.test.indicia-ai.com/v1/usage \
-H "Authorization: Bearer $INDICIA_TOKEN"Response
{
"object": "usage",
"token": {"kind": "service", "label": "n8n-nightly"},
"timezone": "Europe/Amsterdam",
"today": {
"since": "2026-10-12T22:00:00.000Z",
"requests": 2,
"inputTokens": 110,
"cachedTokens": 0,
"outputTokens": 24,
"totalTokens": 134,
"byModel": [
{"provider": "codex", "model": "gpt-6-luna", "requests": 2, "inputTokens": 110, "cachedTokens": 0, "outputTokens": 24, "totalTokens": 134}
]
},
"last7Days": {
"since": "2026-10-06T22:00:00.000Z",
"requests": 2,
"inputTokens": 110,
"cachedTokens": 0,
"outputTokens": 24,
"totalTokens": 134,
"byModel": [
{"provider": "codex", "model": "gpt-6-luna", "requests": 2, "inputTokens": 110, "cachedTokens": 0, "outputTokens": 24, "totalTokens": 134}
]
},
"limits": {
"requestsPerMinute": {"limit": 5, "remaining": 1, "resetsAt": "2026-10-13T14:11:20.375Z"},
"tokensPerDay": {"limit": 200000, "remaining": 199866, "resetsAt": "2026-10-13T22:00:00.000Z"}
}
}| Field | Meaning |
|---|---|
today | Since midnight Europe/Amsterdam |
last7Days | Since midnight Europe/Amsterdam six days ago, so today and the six days before it |
inputTokens | Input tokens, cached tokens included |
totalTokens | inputTokens plus outputTokens. The daily budget counts this number. |
byModel | Usage per provider and provider model, largest totalTokens first |
limits | The token's limits. A limit that is not set is null. Personal tokens have both null. |