Skip to main content
GET
Get your balance

Authorizations

Authorization
string
header
required

Your PrimaLabs API key, sent as Authorization: Bearer <key>.

Response

Your balance.

object
string
Example:

"credits"

currency
string
Example:

"usd"

cap_usd
number | null

Your spending cap in USD. null means the account has no cap, so balance_usd is null too.

Example:

25

spent_usd
number
Example:

7.25

balance_usd
number | null

cap_usd minus spent_usd, or null when there is no cap. Can go slightly negative when the last requests overshoot the cap.

Example:

17.75

as_of
integer

Unix time of the figures.

Example:

1760460000