Browse documentation
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-Keyorapi_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.
| Field | Location | Required | Notes |
|---|---|---|---|
api_key | query | No | Optional alternative to the X-API-Key header. Prefer the header for server-side applications. |
Response
Returns credit balance, debit counts, counters, and limit data.
{
"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
curl "https://developers.manasija.in/v1/account/usage" \
-H "X-API-Key: $DRISHTI_API_KEY"JavaScript / TypeScript SDK
const usage = await client.getAccountUsage()Python SDK
usage = client.get_account_usage()Interactive reference
Use the Scalar API client for executable requests, schemas, and the full OpenAPI contract.