Browse documentation
API referenceGET/v1/account/usageFree

Get live credit and usage snapshot

GET /v1/account/usage

Returns available credits, credits debited in the active day window, live usage counters, and effective route limits.

When to use it

Use this endpoint for near-realtime account widgets and internal support views.

Authentication and billing

  • Requires X-API-Key or api_key.
  • Credit cost: Free. Non-billable account route.
  • See pricing for plan allowances and full billing details.

Request

This endpoint does not require a request body.

FieldLocationRequiredNotes
api_keyqueryNoOptional alternative to the X-API-Key header. Prefer the header for server-side applications.

Response

Returns credit balance, debit counts, counters, and limit data.

Successful Responseapplication/json
{
  "data": {
    "account_id": "acct_acme_growth",
    "balance": 12240,
    "debited_today": 260,
    "live_usage": {
      "usage:account:acct_acme_growth:announcements_summary:20260511": 140,
      "usage:account:acct_acme_growth:earnings_summary:20260511": 42
    },
    "rate_limits": {
      "overall": {
        "daily": 180000,
        "rpm": 180
      }
    },
    "reserved": 0
  }
}

Request pattern

bash
curl "https://developers.manasija.in/v1/account/usage" \
  -H "X-API-Key: $DRISHTI_API_KEY"

JavaScript / TypeScript SDK

ts
const usage = await client.getAccountUsage()

Python SDK

python
usage = client.get_account_usage()

Interactive reference

Use the Scalar API client for executable requests, schemas, and the full OpenAPI contract.