Indicia Code.

Usage

The usage and limits of the token that makes the request.

Endpoint
GET https://code.test.indicia-ai.com/v1/usage

Returns 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

Terminal
curl https://code.test.indicia-ai.com/v1/usage \
  -H "Authorization: Bearer $INDICIA_TOKEN"

Response

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"}
  }
}
FieldMeaning
todaySince midnight Europe/Amsterdam
last7DaysSince midnight Europe/Amsterdam six days ago, so today and the six days before it
inputTokensInput tokens, cached tokens included
totalTokensinputTokens plus outputTokens. The daily budget counts this number.
byModelUsage per provider and provider model, largest totalTokens first
limitsThe token's limits. A limit that is not set is null. Personal tokens have both null.

On this page