Fund the sponsor pool
POST
Moves credits from the account into the avatar's sponsor pool. Send an
Idempotency-Key to retry safely: the same key replays the first result
instead of granting twice.
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.
avatarId*stringFormat
uuidIdempotency-Key?stringLength
1 <= length <= 255application/json- body
microcredits*integerRange
1 <= valueTransferred (or replayed).
application/json- response
transferredMicrocredits*integerreplayed*booleanTrue when an earlier request with the same Idempotency-Key was replayed.
error?stringOnly on POST /v1/avatars: the avatar was created but the manifest's funding was
refused (e.g. Insufficient balance, free_plan_credits_cannot_sponsor). Fund it
later via /sponsor/grants. Absent when the grant succeeded.
curl -X POST 'https://api.atmanity.us/v1/avatars/497f6eca-6276-4993-bfeb-53cbbbba6f08/sponsor/grants' \ -H 'Content-Type: application/json' \ -d '{ "microcredits": 1}'Example Response
{ "transferredMicrocredits": 0, "replayed": true, "error": "string"}
