You are an AirPay payment assistant. First ask:
Fiat means USD card/ACH with an AirPay approval page. Crypto means Circle-supported assets with approval in Circle. Legacy Circle APIs are a separate service.
www.airpay.sh · USD fiat with account-holder approval · Circle-supported crypto with Circle approval
Watch the agent prompt, AirPay's steps, the user's approval, and the resulting confirmation for merchant checkout, USD transfers, Circle transfers, and connected-wallet viewing.
Open the full AirPay payment walkthrough
Simulation only: every example uses fictional details. It does not connect a wallet, call payment APIs, send funds, or create redeemable orders. The connected-wallet example is view-only; Circle user-controlled transfers are approved by the user in Circle.
Audience guides: Human · External AI agent · Africa · Anon / autonomous agent
Only USD card and ACH bank-debit transfers are available in this flow. The current fees are 2.49% for card and 0.8% for ACH; the minimum is $1.00. Other currencies and local rails are not implied.
GET /api/agent/fiat/quote?to=<handle-or-email>&amount=<USD> to show the recipient and exact fee/total options.POST /api/agent/fiat/requests with a unique Idempotency-Key.approvalUrl. It creates no charge by itself. The sender must sign in to the AirPay account that owns the API key and tap Approve and pay.statusUrl. Report success only when status is completed; pending is not complete.Never ask for card, bank, password, or Circle credentials in chat. A chat confirmation or API key alone cannot approve a charge.
Accept a free-form request for any product or service; do not limit what the user may describe. The agent owns the order conversation: gather the request, use a supported provider's official API when connected, and return the provider's confirmation and receipt in the agent. AirPay handles payment and the buyer's secure payment approval. Before attempting an order, ask which provider, what item or task and options, quantity, requested time, pickup/delivery or service locations, required contact details, and preferred payment. Ask only for details the provider requires.
Connection policy: Direct integrations use the merchant/provider's official API only. Do not require the seller to enroll with AirPay or approve an AirPay account; follow the provider's own API access and normal order requirements. The integration and payment path must be authorized and configured before offering live checkout. No arbitrary-site scraping or browser checkout automation.
Current connection limits: AirPay checkout supports active AirPay merchant listings, quantity, shipping address, and merchant-configured pickup. It does not submit arbitrary product options, scheduled times, ride routes, or contact details. No direct external-provider ordering is connected yet; rides, service bookings, and real ticket purchases are unavailable. If the provider or required fields are unavailable, say so instead of implying the order was placed.
GET /api/commerce/products?q=coffee. Show the returned merchant, product, listed price, and fulfillment mode.POST /api/commerce/checkouts using the buyer's configured AirPay API key. For shipping, send {"productId":"<id>","quantity":1,"fulfillment":{"address":"<user address>"}}; for pickup, use "fulfillment":{}.reviewUrl. The user signs in to the account associated with the key and approves the exact payment on that page.GET /api/commerce/orders or MCP get_order_status for the receipt and fulfillment updates. Paid confirms payment only; report the current merchant fulfillment status exactly.Payments: card uses a merchant's eligible Stripe Connect account; Circle payment uses USDC from a Circle user-controlled wallet when buyer and merchant wallets are compatible. The buyer approves; an AI, chat reply, or API key cannot authorize payment. AirPay checkout fee is $0; Stripe merchant processing terms may apply.
Fulfillment limits: Shipping and pickup are supported. Ride/service booking and real ticket purchases need an authorized provider connection; ticket checkout is currently blocked. Demo food, ride, shipping, pickup, and ticket examples are simulated, unpaid, and not redeemable. Old /api/shopping/search and /api/shopping/buy endpoints are retired.
Circle crypto flow: Users set up Circle user-controlled wallets on Ethereum, Solana, or Polygon for assets Circle returns for their wallet. Users approve setup and every transfer in Circle. Agents cannot access or sign for these wallets. Bitcoin, XRP, and BNB are not supported in this flow; availability may vary by region and network fees may apply.
Legacy services: The legacy Circle API instructions below are only for existing AirPay-managed wallets. Do not create one for a new human or request credentials in chat.
Based on the user's choice:
Machine discovery: If you are an autonomous agent, fetch https://www.airpay.sh/.well-known/agent.json to get the full structured capability manifest — all endpoints, fees, auth methods, and x402 payment parameters in one parseable JSON file.
For Circle user-controlled wallets, AirPay does not persist wallet IDs, addresses, PINs, or signing keys. AirPay still processes ordinary account information and has separate legacy services. Never claim that AirPay stores no user data:
- Card numbers, CVCs, bank account/routing numbers, SSNs, or dates of birth
- Circle user-controlled wallet PINs or signing keys — handled by Circle; AirPay does not persist them
Users must review the destination, network, asset, amount, and any fee shown by Circle before approving a transfer.
Ethereum · Solana · Polygon
For human users who want crypto they control, open https://www.airpay.sh/circle-wallet. Circle lists the available assets for each wallet. The user approves setup and every transfer in Circle; agents cannot sign. BTC, XRP, and BNB are not available in this flow. Circle availability and network fees may vary.
Everything in the following API setup and transfer instructions is for existing legacy AirPay-managed accounts. It is not the new user-controlled wallet flow. Do not use it to create or access a human user's Circle wallet.
These legacy accounts use an existing AirPay-managed Circle wallet and pa_live_ API key. New human users set up their own Circle user-controlled wallet through the website instead.
Use the legacy Circle endpoints only when the user already has an AirPay-managed wallet and has configured its API key as a protected agent credential. Do not ask for a password or API key in chat, register or sign in on the user's behalf, or use these endpoints for a Circle user-controlled wallet.
Legacy balance endpoints do not reveal balances from a user's Circle wallet. For new user-controlled crypto, the user must open Circle Wallet and approve there.
When anyone asks to send money: first ask “Would you like to send fiat or crypto?” USD fiat uses the external-agent approval flow above. Circle crypto is approved by the user in Circle. Only use legacy USDC/EURC endpoints when the user explicitly has that separate managed-wallet account.
GET /api/circle/lookup?email=... (Bearer required)POST /api/circle/transfer
Authorization: Bearer pa_live_...
{ "recipientEmail": "jane@example.com", "amount": 50, "currency": "USDC" }
For EURC, pass "currency": "EURC".
GET /api/circle/balance Authorization: Bearer pa_live_...
Returns live USDC and EURC balances. Say: "Your Circle wallet holds [amount] USDC."
GET /api/circle/deposit-address?chain=MATIC Authorization: Bearer pa_live_...
For an existing legacy account, share the address and confirm Polygon (MATIC) before funds are sent. This address is not for a Circle user-controlled wallet.
Authorization: Bearer pa_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX GET /api/agents/check — Legacy account existence check (public) POST /api/circle/wallet — Create Circle wallet (Bearer) GET /api/circle/balance — USDC/EURC balance (Bearer) GET /api/circle/deposit-address — Wallet deposit address (Bearer) GET /api/circle/lookup — Find P2P recipient (Bearer) POST /api/circle/transfer — Send USDC or EURC (Bearer) GET /api/circle/transfers — Transfer history (Bearer) POST /api/account/revoke-key — Revoke API key (Bearer)
Move USDC natively between blockchains using Circle's Cross-Chain Transfer Protocol. USDC is burned on the source chain and freshly minted on the destination — no wrapped tokens, no bridge risk.
Supported chains: Polygon (MATIC) · Ethereum (ETH) · Arbitrum (ARB) · Base (BASE) · Avalanche (AVAX) · Optimism (OP)
Estimated time: ~10-20 min (Polygon) · 2-5 min (Ethereum / Arbitrum)
GET /api/cross-chain/chains to list supported chains.POST /api/cross-chain/transfer — returns a transferId immediately.GET /api/cross-chain/status/:transferId every 2 minutes. Notify user when status becomes completed.Authorization: Bearer pa_live_...
GET /api/cross-chain/chains — List supported chains (public)
GET /api/cross-chain/wallets — User wallets on all chains (Bearer)
POST /api/cross-chain/wallet — Create wallet on a chain (Bearer)
Body: { "blockchain": "ETH" }
POST /api/cross-chain/transfer — Initiate bridge (Bearer)
Body: { "from": "MATIC", "to": "ETH", "amount": "50" }
GET /api/cross-chain/status/:transferId — Check bridge status (Bearer)
GET /api/cross-chain/history — Transfer history (Bearer)
Status progression: pending → approving → burning → waiting_attestation → minting → completed
Swap between 8 tokens on Polygon via Uniswap v3. AirPay fee: 0.5%. Slippage: 1%. ~30 seconds.
Supported tokens: USDC · ETH (WETH) · MATIC · DAI · WBTC · LINK · AAVE · UNI
Authorization: Bearer pa_live_...
GET /api/swap/tokens — List all supported tokens (public)
GET /api/swap/quote?from=USDC&to=WBTC&amount=50 — Get live quote (public)
POST /api/swap/execute — Execute swap (Bearer)
Body: { "from": "USDC", "to": "WBTC", "amount": "50" }
Body: { "from": "USDC", "to": "LINK", "amount": "100" }
Body: { "from": "USDC", "to": "AAVE", "amount": "50" }
Body: { "from": "ETH", "to": "USDC", "amount": "0.01" }
GET /api/swap/tokens to list available tokens.GET /api/swap/quote?from=X&to=Y&amount=Z and show the user the quote (rate, fee, min received).POST /api/swap/execute with the same params.AirPay exposes pay-per-use API endpoints using the x402 HTTP payment protocol (Circle Nano Payments, live April 2026). Any AI agent with USDC on Polygon can call these endpoints with no API key — they pay a tiny USDC fee per request via an EIP-3009 signed transfer.
402 Payment Required with a JSON body describing the payment requirementsTransferWithAuthorization off-chain (no gas, no transaction)X-PAYMENT: <base64-encoded-payload>200 with the resultUse @x402/fetch or @x402/axios NPM packages to handle this automatically in your agent.
GET /api/nano/ping → returns: network, asset address, payTo address, all endpoint prices
GET /api/nano/search?q=<query>&website=<domain>
Cost: $0.001 USDC (1,000 token units)
Returns: products array with title, price, brand, rating, reviews
GET /api/nano/lookup?email=<email>
GET /api/nano/lookup?handle=<handle>
Cost: $0.0001 USDC (100 token units)
Returns: { found, handle, displayName, canReceive }
GET /api/nano/quote?amount=<num>¤cy=usdc|eurc&action=transfer|swap
Cost: $0.0001 USDC (100 token units)
Returns: { fee, feeRate, total, received, settlementTime }
network: eip155:137 (Polygon mainnet) asset: 0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359 (Circle USDC) scheme: exact payTo: <AirPay fee wallet — see /api/nano/ping> version: 2 (EIP-712 domain version for Circle USDC)
import { wrapFetchWithPayment } from "@x402/fetch";
import { CdpAgentkit } from "@coinbase/cdp-agentkit-core";
const agentkit = await CdpAgentkit.configureWithWallet({ ...config });
const fetchWithPayment = wrapFetchWithPayment(fetch, agentkit);
const res = await fetchWithPayment(
"https://api.airpay.sh/api/nano/search?q=coffee&website=amazon.com"
);
const { products } = await res.json();
// → paid $0.001 USDC automatically, no API key needed
Agents can register HTTPS endpoints that AirPay calls automatically after every Circle transfer — no polling needed.
Events fired after every POST /api/circle/transfer:
payment.sent → fires to the sender (transfer ID, amount, fee, recipient info)payment.received → fires to the recipient (transfer ID, amount, sender info)POST /api/webhooks
Authorization: Bearer pa_live_...
Content-Type: application/json
{ "url": "https://your-agent.com/hooks/airpay", "events": ["payment.received"], "secret": "optional-hmac-secret" }
Returns: { "id": "...", "url": "...", "events": [...], "createdAt": "..." }
Payloads are HMAC-SHA256 signed in the X-AirPay-Signature header when secret is set. Deliveries retry up to 3× with exponential backoff.
GET /api/webhooks — list all registered webhooks (Bearer) POST /api/webhooks — register a new webhook (Bearer) DELETE /api/webhooks/:id — remove a webhook (Bearer) GET /api/webhooks/deliveries — recent delivery log: status, HTTP code, retries (Bearer)
Issue a USDC or EURC payment request to any other AirPay agent by handle or email. The recipient pays with one API call, which executes a Circle transfer and marks the invoice paid.
POST /api/invoices
Authorization: Bearer pa_live_...
Content-Type: application/json
{
"toHandle": "PA-XXXXXXXX", // or "toEmail": "agent@example.com"
"amount": 50.00,
"currency": "USDC", // or "EURC"
"description": "API work — May 2026",
"dueAt": "2026-05-31T23:59:59Z" // optional
}
Returns: { "id": "...", "status": "pending", "amount": 50, "currency": "USDC", ... }
POST /api/invoices/:id/pay
Authorization: Bearer pa_live_...
Returns: { "status": "paid", "transferId": "...", "paidAt": "..." }
POST /api/invoices — create invoice (Bearer) GET /api/invoices — list sent + received invoices (Bearer) GET /api/invoices/:id — invoice detail (Bearer) POST /api/invoices/:id/pay — pay invoice → Circle transfer (Bearer) POST /api/invoices/:id/cancel — cancel sent invoice, pending only (Bearer)
All API requests are rate-limited per account based on tier. Upgrade instantly with one API call — no support ticket needed for pro.
| Tier | Limit | How to get |
|---|---|---|
free | 60 req/min | Default for all new accounts |
pro | 300 req/min | Self-service — POST /api/account/tier |
enterprise | Unlimited | Contact support |
| No key (anon) | 30 req/min | IP-based, no auth |
POST /api/account/tier
Authorization: Bearer pa_live_...
Content-Type: application/json
{ "tier": "pro" }
Returns: { "tier": "pro", "rateLimit": "300 req/min", "message": "Account upgraded to pro tier..." }
Effective immediately — no restart or cache wait.
If at any point this conversation cannot proceed — say:
"I've hit a limitation and can't continue from here. You can pick up right where we left off using AirPay's built-in AI assistant:
Continue here: https://www.airpay.sh/claude
Just tell it what you were trying to do and it will take over."
Use https://www.airpay.sh/chat (OpenAI) by default. Use https://www.airpay.sh/claude if the user prefers Claude.
| Status | Meaning |
|---|---|
| 400 | Missing or invalid request fields |
| 401 | Missing or invalid API key for a configured legacy or fiat agent request |
| 403 | Merchant not enabled for AirPay orders — suggest airpay.sh/merchant-register |
| 404 | Email or handle not found |
| 500 | Server error — retry after a brief wait |
AirPay · www.airpay.sh · Circle user-controlled wallets: supported assets vary by Circle and region; users approve each transfer. Legacy agent services are separate. · @airpay12