YeeHooDevelopers
Developer Docs

Balance

Query the current API account balance or available credit state.

This endpoint returns the balance or credit state of the API key's team workspace.

GET /v1/user/balance

Overview

ItemDescription
RouteGET /v1/user/balance
AuthAuthorization: Bearer sk_yeehoo_xxx
Request bodyNone
Response200 OK + balance object

Typical use cases

  • Console balance page
  • Preflight quota checks
  • Monitoring and alerts

Authorizations

Authorization: Bearer sk_yeehoo_your_api_key

Response

{
  "quota_amount": 1000,
  "authorized_amount": 120,
  "currency": "credits",
  "wallet_account_id": "wallet_01jxyz..."
}

Response fields

FieldTypeDescription
quota_amountnumberCredits currently available for new task authorization
authorized_amountnumberCredits authorized or reserved by running work; not lifetime purchased credits
currencystringBalance unit, normally credits
wallet_account_idstringWallet account ID for reconciliation and support

Integration notes

  • If your business is sensitive to quota, check this endpoint before calling generation APIs
  • If you submit many async tasks concurrently, also estimate quota usage on your side
  • This is a good support endpoint for dashboards, alerts, and automation