Add credits by paying this request (Machine Payments Protocol, HTTP 402)

The first call returns 402 with a payment challenge (WWW-Authenticate: Payment). An MPP client pays it — card through a Stripe Link agent wallet, or USDC on Tempo — and retries with Authorization: Payment <credential>. Because Authorization carries the payment, send the Varosity key as X-API-Key. amountUsd: whole dollars 5–500 (default 10); credits equal dollars paid; each payment is credited once, to the account that requested it.

post/v1/credits/topup

Request

  • Base URL: https://varosity.ai/api
  • URL: https://varosity.ai/api/v1/credits/topup
  • Auth: HTTP bearer

Query parameters

amountUsdinteger

Response

Paid and credited: { credited_cents, balance_cents, receipt } plus a Payment-Receipt header

Changes

No recorded changes to this operation across all 1 revision of this API.