Endpoint
| Field | Value |
|---|---|
| Top-up range | 2.00 – 10000.00 USDC |
| Per-verification cost | 5.00 — drawn from balance at retail price (same as REST API path) |
| Settlement timeout | 300 seconds |
| Asset transfer scheme | exact (EIP-3009 / Solana) |
| Facilitator | Self-hosted (VirtualSMS-operated) |
/api/v1/services. There is no per-call premium for the x402 path — agents pay the same as customers using the REST API key path.
Supported networks
| Network | Token | Status |
|---|---|---|
| Base | USDC | Live |
| Solana | USDC | Live |
| Solana | USDT | Live |
| BNB Chain | USDC, USDT | Coming soon — pending Permit2 settlement support |
Request body
| Body field | Type | Required | Notes |
|---|---|---|---|
amount_usd | number | yes | Top-up amount in USDC, between 2 and 10000 |
metadata | object | no | Optional agent identifier / memo, returned in the response for client-side bookkeeping |
How the flow works
- Your agent sends
POST /api/v1/x402/topupwith the desired top-up amount - The endpoint returns HTTP 402 Payment Required with a payment manifest listing every supported network/token + recipient wallet + price
- Your agent picks one network/token, signs an authorization for the amount, and submits it via the standard x402
X-PAYMENTheader - VirtualSMS verifies the signature, settles on-chain, then returns
{api_key, balance_usd, user_id, endpoints}— the API key is immediately usable - The agent then calls
/api/v1/customer/purchase,/api/v1/customer/order/{id}, and the rest of the REST API with the issued key, drawing from the funded balance
Sample 402 response
Output schema (after successful settlement)
api_key is a standard VirtualSMS key — it works with every REST endpoint, supports all services and countries we list, and can be re-used until the balance is exhausted or the agent tops up again against the same key.
Topping up an existing key
To add to a balance without provisioning a new account, include the existing API key:api_key plus the new balance_usd.
Why top-up instead of per-call settlement
An earlier per-call/sms-verify endpoint returned a flat 0.05–$7 service price range, and a single signature per SMS added meaningful latency for high-volume agents. The endpoint now returns HTTP 410 Gone with a pointer to /topup. One up-front signature funds N verifications at the same retail rates, and the resulting API key works with the full REST surface.