get/usage

Get usage summary

Return today's and this month's request/token usage for the calling org. Includes tier limits so clients can calculate remaining budget without needing admin access.

Responses

200Successful Response
Example · 200
{
  "org_id": "<Org Id>",
  "org_name": "<Org Name>",
  "tier": "<Tier>",
  "today": "<Today>",
  "billing_month": "<Billing Month>",
  "reset_day": "<Reset Day>",
  "reset_month": "<Reset Month>",
  "daily": {
    "requests": 0,
    "tokens_input": 0,
    "tokens_output": 0
  },
  "monthly": {
    "requests": 0,
    "tokens_input": 0,
    "tokens_output": 0
  },
  "limits": {}
}

Code samples

Generated from the live OpenAPI spec. Replace $SAVITAR_API_KEY with a key from your dashboard.

curl -X GET "https://redactra-api-direct-yjxsqk46ja-el.a.run.app/usage" \
  -H "Authorization: Bearer $SAVITAR_API_KEY"