Skip to content

50,000 free calls a month, card-free. Get an API key →

Documentation menu
docs / api / post-v1-x402-topup
self-serve

POST/v1/x402/topup

Public. No key, and no quota deducted.

Call it

bash
curl -fsS -X POST "https://api.mapmap.ai/v1/x402/topup?usd=…"

Parameters

NameInRequiredDescription
usdqueryyesBundle from the configured allowlist (USD), e.g. 5 or 0.10

Responses

200Settled and credited: {status, creditedMillipence, balanceMillipence, tx, network, fxMicroUsdPerPence}; status: "replay" reports an already-processed authorization without settling twice
400Unknown bundle (body lists the allowlist) or operator key without an identity ledger
402x402 payment required: accepts[0].maxAmountRequired is the bundle's exact atomic amount; extra carries bundleUsd, creditMillipenceEstimate and fxMicroUsdPerPence. Retry with X-PAYMENT signing exactly that amount
404Top-up not enabled on this deployment (needs bundles + the FX knob)

Error bodies follow the shared problem model documented on API conventions.

Also under self-serve

Generated from https://api.mapmap.ai/openapi.json on 2026-09-17 · operationId post_topup