Atmee.aiDocs
APIAPI referenceAvatars

Get the sponsor pool

GET
/v1/avatars/{avatarId}/sponsor

Returns the avatar's sponsor pool balance and settings. Readable by an API key with avatars:read or a signed-in user of the account. Changing the pool takes an API key with billing:write or a signed-in user.

Authorization

headerX-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.

Path Parameters

avatarId*string
Formatuuid

Response Body

Balance and settings.

application/json
  1. response
balance*
settings*
Example Request
curl -X GET 'https://api.atmanity.us/v1/avatars/497f6eca-6276-4993-bfeb-53cbbbba6f08/sponsor'
Example Response
{  "balance": {    "totalMicrocredits": 0,    "planSourcedMicrocredits": 0,    "topupSourcedMicrocredits": 0,    "couponSourcedMicrocredits": 0  },  "settings": {    "maxPerSessionMicrocredits": 0,    "exhaustedBehavior": "pause",    "autoTopupEnabled": true,    "autoTopupThresholdMicrocredits": 0,    "autoTopupAmountMicrocredits": 0,    "anonymousAccess": true,    "anonymousDailySecondsPerVisitor": 0  }}