Get earnings
GET
Returns what the account's monetized avatars earned, what was paid out,
and the wallet balance between them, in microcredits (100 microcredits =
1 credit). This is not the balance sessions spend (GET /v1/account/balance); one avatar's earnings are in GET /v1/avatars/{avatarId}/monetization.
Readable by an account-wide key with avatars:read or a signed-in user
of the account; an avatar-scoped key gets 403 avatar_not_allowed.
header
X-Api-Key<token>Your secret API key (sk_atmee_...; older keys start sk_live_),
sent as X-Api-Key. Keep it on your server and never send it to a
browser.
The wallet.
application/json- response
walletBalanceMicrocredits*integerEarned and not yet paid out.
Format
int64totalEarningsMicrocredits*integerFormat
int64totalPayoutsMicrocredits*integerFormat
int64curl -X GET 'https://api.atmanity.us/v1/account/earnings'Example Response
{ "walletBalanceMicrocredits": 0, "totalEarningsMicrocredits": 0, "totalPayoutsMicrocredits": 0}
