Skip to main content
POST
GetBillingAccount

Authorizations

Authorization
string
header
required

A user session token or personal API key.

Headers

Connect-Protocol-Version
number
required

Define the version of the Connect protocol

Example:

1

Connect-Timeout-Ms
number

Define the timeout, in ms

Example:

1000

Body

application/json
name
string

Response

Success

The prepaid balance of the credential's workspace. A singleton: every credential reads its own workspace's.

cf. AIP-156 singletons, GCP projects/{project}/billingInfo, Runpod myself.clientBalance.

name
string
workspace
string

The workspace that pays, the credential's.

cf. Zitadel resource_owner.

balance
string

Top-ups less usage, a decimal in the currency's minor unit; negative once running work overdraws it. New work is refused unless it is positive.

currencyCode
string

ISO 4217, such as USD.

ongoingBalance
string

The balance less what running work has used and is not yet charged, as of the last minute: the balance that goes down while runs go on. A decimal in the currency's minor unit.

cf. Lago wallet ongoing_balance_cents.