Poll this endpoint when reconciling usage. credits_spent can lag live spend by up to 5 minutes.
Headers#
authorizationBearer pxa_...RequiredAuthorization: Bearer pxa_... (recommended).
x-api-keypxa_...Alternative to the Authorization header. Ignored when Authorization is present.
Response#
Key, balance, and plan for the authenticated account.
keyobjectRequiredThe API key that authenticated this request.
Show propertiesHide properties
key.idstringRequiredKey id.
key.namestringRequiredThe label given to the key at creation.
key.key_startstringRequiredFirst characters of the key, for display.
key.credit_limitnumber or nullRequiredSpending cap for this key in credits; null means uncapped.
key.credits_spentnumberRequiredCredits this key has spent, exact to a hundredth (may lag live spend by up to 5 minutes).
key.created_atstringRequiredCreation time, ISO 8601.
key.last_used_atstring or nullRequiredLast verified use, ISO 8601; null when never used.
balanceobjectRequiredLive credit balance of the account, exact to a hundredth of a credit.
Show propertiesHide properties
balance.walletnumberRequiredPurchased and granted credits; never expire.
balance.plannumberRequiredMonthly plan credits; reset each billing period and spend first.
balance.totalnumberRequiredwallet plus plan.
planobjectRequiredThe effective plan.
Show propertiesHide properties
plan.keystringRequiredPlan key: "free", "starter", "standard", or "pro".
plan.rpminteger or nullRequiredRequests per minute the plan allows; null means no limit. One window covers the whole account, across every product.
plan.concurrencyintegerRequiredConcurrent requests the plan allows, counted per product. An open live connection holds one slot of its product.
plan.monthly_creditsintegerRequiredCredits granted each billing period; 0 on the free plan.