Skip to main content
GET
Get sub-account spending

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Sub-account ID.

Response

Sub-account balance.

The team's balance, and what stops or charges it this month. Every field past isSubAccount is team-level, the same for every project and sub-account of the team. An integration that only replies to message.inbound never sends while incoming messages are held, so it never sees the 429 that reports them: poll this instead.

balance
integer
required

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

currency
string
required
Example:

"usd"

payAsYouGo
boolean
required

Whether the team is on Free and has added funds, so app messages past the allowance are billed in blocks from the balance instead of stopping.

spendCap
integer | null
required

The monthly usage spend cap in cents, set in the dashboard's Billing. Null means no cap. The first deposit on Free sets $50 when none was chosen.

spentThisMonth
integer
required

Usage taken from the balance this calendar month (UTC), in cents: what the spend cap is measured against. Renewals are not counted.

appMessages
object
required

This month's WhatsApp, Telegram, Instagram and Messenger messages, sent and received.

heldInbound
object | null
required

Incoming messages held at the allowance, or null when none are. Counts and a date only, never content or senders. They are delivered once the team pays; see POST /v1/messages.

creditLimit
integer | null

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

totalSpent
integer | null

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

isSubAccount
boolean

Whether this API key belongs to a sub-account.