Move credits from the account into the avatar's sponsor pool
POST
Send an Idempotency-Key header to make retries safe: the same key replays the
first successful result instead of granting twice.
header
X-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_....
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"}
