Atmee.aiDocs
APIAPI referenceAvatars

Withdraw sponsor credits

POST
/v1/avatars/{avatarId}/sponsor/withdrawals

Returns the sponsor pool's unreserved credits to the account.

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

Request Body

application/json
  1. body
microcredits?integer

Omit to withdraw everything that is not reserved by a running session.

Range1 <= value

Response Body

Withdrawn.

application/json
  1. response
withdrawnMicrocredits*integer
Example Request
curl -X POST 'https://api.atmanity.us/v1/avatars/497f6eca-6276-4993-bfeb-53cbbbba6f08/sponsor/withdrawals' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "withdrawnMicrocredits": 0}