Get PAYG Balance
Returns the Pay As You Go credit balance for the current account, including the total balance and a breakdown by credit source.
Authentication
- Name:
Authorization
- Format:
Bearer <API_KEY>
- Description: A Management API Key created in the AGIPower Console
This endpoint only accepts Management API Keys. Standard API Keys are not supported.
Rate Limiting
Each endpoint has its own independent rate limit counter. The maximum number of requests per minute is configured at the platform level. Exceeding the limit returns a 422 error.
Returns
data.currency string
Currency unit. Always "usd".
data.total_credits number
The account’s current total PAYG credit balance (USD).
data.top_up_credits number
Credits obtained through direct top-ups (USD).
data.bonus_credits number
Credits obtained through bonuses, gifts, or promotions (USD).
total_credits = top_up_credits + bonus_credits (minor floating-point differences may apply).
GET /v1/management/payg/balance