usage.availableCredits
Returns the credit balance, subscription period, and refresh information for the authenticated caller. For a team sub-account, the team’s shared pool balance is returned; for a personal account, the personal balance is returned. Standard OAuth clients cannot access this endpoint; trusted clients can.
The balance fields are returned at the top level of the response, next to ok and request_id; there is no data wrapper. All credit fields are 32-bit integers in credit points, and total_credits is the authoritative spendable balance. next_refresh_time and current_period_end are Unix timestamps in seconds encoded as decimal strings, such as "1767225600".
Headers
API key for direct authentication. Provide either this or Authorization, not both. See Authentication.
OAuth token from a Trusted team client or Trusted public client. Other OAuth clients cannot access this endpoint. See the Open App guide.
"Bearer {access_token}"
Response
Available credits retrieved successfully.
Total available credits — the actual spendable wallet balance. Equals free_credits + periodic_credits + addon_credits + event_credits + refresh_credits, minus team overflow credits, where periodic_credits and addon_credits are counted as 0 when the membership has lapsed and event_credits is 0 when no event is active. Always treat this as the single authoritative value for how many credits can be spent.
1500
Subscription period end as a Unix timestamp in seconds (UTC), encoded as a decimal string. Returns "0" when no subscription period is returned; an expired subscription may return a timestamp in the past. Temporary event membership does not change this value.
^[0-9]+$"1767225600"