GET
Get the current balance

Authorizations

Authorization
string
header
required

Developer session token from POST /v1/auth/login or POST /v1/auth/register. Valid 7 days.

Authenticates the developer control plane. It also reaches the server and build endpoints, which a dashboard has to drive and which no session can otherwise call: an API key's value is returned once, at mint, so nothing can read back a key for an existing project. On those endpoints a session names its project with project_id, or is resolved from the resource it addresses, and is always checked against the account that owns it.

It reaches no player-facing game endpoint.

Response

The current balance.

What the account owes right now and what credit it holds. A negative balance_due is not possible; unspent credit appears as credit_remaining.

currency
string
required
Example:

"usd"

balance_due
number
required

Accrued but uninvoiced cost for the current period.

Example:

19.5

credit_remaining
number
required

Plan credit left in the current period.

Example:

0

updated_at
string<date-time>
required