Atmee.aiDocs
APIAPI referenceAccount

The account's credit balance

GET
/v1/account/balance

What the calling key's account has to spend on sessions, from the account's direct wallet (the only one API usage draws on). Every amount is in microcredits (100 microcredits = 1 credit).

spendableMicrocredits is the amount a session is admitted on: every positive bucket for a reserve-mode key or a signed-in user; the plan and top-up buckets only for a metered key, which never spends coupon credits (couponSpendable: false). Live sessions' reservations are already taken out of the buckets and are reported on their own as heldByLiveSessionsMicrocredits. unlimited is true when sessions are not charged (an unlimited plan, or billing switched off), whatever the buckets say. nextExpiry lists the credits that will expire, soonest first. An avatar's sponsor pool is not part of this balance (GET /v1/avatars/{avatarId}/sponsor).

Any key with the sessions or avatars:read scope may read it, an avatar-scoped key included, and so may a signed-in user acting for the account.

Authorization

headerX-Api-Key<token>

Secret embed API key (sk_atmee_...; keys minted before 2026-09 carry sk_live_...), held by the customer's own backend and never sent to a browser. Format: X-Api-Key: sk_atmee_....

Response Body

The balance.

application/json
  1. response
wallet*"direct"

The wallet API usage spends; always direct.

Value in"direct"
spendableMicrocredits*integer

What a session is admitted on for this caller (see the operation).

Formatint64
planMicrocredits*integer

Credits of the plan's cycle grant left. Negative when the bucket is in debt.

Formatint64
topupMicrocredits*integer

Purchased credits left.

Formatint64
couponMicrocredits*integer

Coupon credits left.

Formatint64
couponSpendable*boolean

False for a metered key, which never spends coupon credits.

heldByLiveSessionsMicrocredits*integer

Reserved by sessions running now (already taken out of the buckets); what they do not use comes back when they end.

Formatint64
unlimited*boolean

Sessions are not charged (an unlimited plan, or billing switched off).

nextExpiry*array<>

Credits that will expire, soonest first.

Example Request
curl -X GET 'https://api.atmanity.us/v1/account/balance'
Example Response
{  "wallet": "direct",  "spendableMicrocredits": 0,  "planMicrocredits": 0,  "topupMicrocredits": 0,  "couponMicrocredits": 0,  "couponSpendable": true,  "heldByLiveSessionsMicrocredits": 0,  "unlimited": true,  "nextExpiry": [    {      "bucket": "string",      "amountMicrocredits": 0,      "expiresAt": "2019-08-24T14:15:22Z"    }  ]}
The account's credit balance — Atmee Docs