CreditsGet balance

Get credit balance

Inspect your current credit balance, monthly limit, used amount, and low-balance status.

curl https://api.chuger.com/v1/credits \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "balance": 18675,
  "formatted_balance": "18,675",
  "limit": 20000,
  "used": 1325,
  "status": {
    "balance": 18675,
    "formatted_balance": "18,675",
    "limit": 20000,
    "used": 1325,
    "is_low": false,
    "threshold": 4000,
    "percentage_used": 6.63,
    "next_renewal": null
  }
}

Returns your current credit balance and a snapshot of usage.

GET https://api.chuger.com/v1/credits

All /v1/credits/* endpoints are free to call and not subject to per-minute rate limits. For a conceptual overview of how credits work, see Credits.

Authentication

Bearer token in the Authorization header. See Authentication.

Example

Response fields

balanceinteger
Required

Credits remaining this period.

formatted_balancestring
Required

Locale-formatted balance for display purposes (e.g. "18,675").

limitinteger
Required

Total credits in your monthly allowance.

usedinteger
Required

Credits consumed so far this period.

statusobject
Required

Detailed status object — same shape as Usage stats.

Errors

StatusWhen
401Missing or invalid token
404The account associated with the token wasn't found

See Errors for the full reference.