v51

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-02172186551.1 KB
Sub-Accounts

Get sub-account spending

Get spending information for a sub-account. Returns the parent team's balance, the sub-account's total spending, and its credit limit (spending cap). Requires a parent project API key; sub-account API keys receive HTTP 403.

get/v1/sub-accounts/{id}/balance

Path parameters

idstring required

Sub-account ID.

Response

Sub-account balance.

balanceinteger required

Team balance in cents. All charges are billed to the parent team.

currencystring required
creditLimitinteger nullable

Spending cap in cents (only for sub-accounts).

totalSpentinteger nullable

Total amount spent by this sub-account in cents (only for sub-accounts).

isSubAccountboolean

Whether this API key belongs to a sub-account.

Example response

{
  "currency": "usd"
}