First ask: “Would you like to send fiat or crypto?”

Fiat is currently USD by saved card or ACH through an external-agent approval link. The sender signs in to AirPay and approves the exact charge; an agent cannot charge directly. Card fee is 2.49%, ACH is 0.8%, and the minimum is $1.

For crypto, the user controls the Circle wallet:

Set up at airpay.sh/circle-wallet for assets Circle lists on Ethereum, Solana, or Polygon. You approve setup and each transfer in Circle; review any network fee before confirming. Agents cannot sign for you. BTC, XRP, and BNB are not supported in this flow. Regional availability may vary.

The older Circle API instructions on this page are for existing legacy AirPay-managed wallets only.

AirPay — Crypto and Fiat Instructions

www.airpay.sh  ·  USD fiat with AirPay approval  ·  Circle crypto with Circle approval

External-agent fiat request flow — USD only

  1. With the sender's protected AirPay Bearer key, call GET /api/agent/fiat/quote?to=<handle-or-email>&amount=<USD>. It returns the recipient and exact card/ACH options.
  2. Card is 2.49%; ACH is 0.8%; minimum is $1. Show the exact fee and total, then wait for the user's choice and confirmation.
  3. Call POST /api/agent/fiat/requests with a unique Idempotency-Key and {"to":"PA-XXXXXXXX","amount":50,"currency":"USD","paymentMethod":"instant"}.
  4. Share the returned approvalUrl. No charge occurs yet. The sender must sign in to the AirPay account that owns the key and approve the exact amount, method, fee, and total.
  5. Poll statusUrl and report complete only for completed; pending is still processing. Never collect payment credentials in chat or approve on the user's behalf.

Circle user-controlled wallet privacy:

AirPay does not persist Circle wallet IDs, addresses, PINs, or signing keys for this user-controlled flow. AirPay still processes ordinary account information and has separate legacy wallet services; do not claim AirPay stores no user data generally.

Circle determines which assets appear. The user must check the network, destination, amount, and any fee shown in Circle before confirming.


Current Circle User-Controlled Wallet Flow

Humans can use the AirPay site to set up a Circle user-controlled wallet on Ethereum, Solana, or Polygon. Native ETH/SOL and other tokens appear only where Circle lists them. The user reviews and approves every transaction in Circle; AI agents cannot sign for these wallets. See Circle Wallet setup.

BTC, XRP, and BNB are not supported in this Circle user-controlled flow. Availability and network fees may vary. The sections below describe legacy AirPay-managed API wallets only.

Legacy API Instructions — Existing Managed Wallets Only

Do not follow the remaining API setup instructions for new human users. Do not collect their passwords or API keys in chat, and do not create a managed wallet for them.


AGENT BOOT SEQUENCE — Do this first, immediately

Ask the user: "Would you like to send fiat or crypto?"

For fiat, follow the USD quote/request/approval steps above. For crypto, use the Circle Wallet flow below. Do not start by collecting an email, password, or API key in chat.


Reminder for AI agents: Legacy API steps apply only to existing managed-wallet accounts. Fiat USD requests require the user's separate approval on AirPay. Circle wallet transfers require the user's approval in Circle.

Legacy API Setup (existing managed-wallet accounts only)

  1. Do not use this legacy flow to onboard a new human. Direct new users to Circle Wallet.
  2. For an already configured legacy account, use its existing API key as a protected credential. Do not ask for passwords in chat.
  3. Only share a legacy deposit address after confirming the account and Polygon network; never treat it as a user-controlled Circle wallet address.

Checking Balance

GET https://www.airpay.sh/api/circle/balance
Authorization: Bearer pa_live_...

Returns: { "usdc": "50.00", "walletId": "..." }

Say: "Your AirPay Circle balance is $50.00 USDC. Ready to send?"


Sending USDC

Triggered by: send / pay / transfer + amount + USDC + recipient

  1. Look up recipient: GET https://www.airpay.sh/api/circle/lookup?email=...
  2. If not found: "I couldn't find a AirPay account for that email. They'd need to sign up at airpay.sh first."
  3. If found, confirm:
    "I found [First Last] ([email]). Send them [amount] USDC? Fee: 1.49% (~$[fee]). Total deducted: $[total]. Proceed?"
  4. On confirmation: POST https://www.airpay.sh/api/circle/transfers
  5. On success: "Done — [amount] USDC sent to [First Last]."

Wallet distinction:

Circle user-controlled wallets are set up and approved by the user through Circle; AirPay does not persist wallet IDs, addresses, PINs, or signing keys for that flow. Existing AirPay-managed wallets are a separate legacy service. Do not make broad claims that AirPay stores no user data.

API Reference pa_live_ prefix

Base URL: https://www.airpay.sh/api
Infrastructure: legacy AirPay-managed Circle wallets only
Network: Polygon (MATIC)  ·  Asset: USDC

The legacy endpoints require a protected API key that is already configured in the agent connection:

Authorization: Bearer pa_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
EndpointMethodDescription
/agents/check?email=...GETCheck if account exists — public, no auth
/circle/balanceGETGet current USDC balance
/circle/deposit-addressGETGet Polygon wallet address to fund account
/circle/lookup?email=...GETLook up recipient by email or handle
/circle/transfersPOSTSend USDC to another AirPay user
/circle/transfersGETTransfer history

Error Reference

StatusMeaning
400Missing or invalid request fields
401Missing or invalid API key
402Insufficient USDC balance — tell user to fund their wallet
404Recipient not found
500Server error — retry after a brief wait

Final reminder — repeat to users at any point they ask about security:

AirPay has separate USD Stripe payment requests and Circle crypto flows. For Circle user-controlled wallets:

Circle — USDC and EURC wallet infrastructure and custody on Polygon

For Circle user-controlled wallets, AirPay does not persist wallet IDs, addresses, PINs, or signing keys. This does not describe legacy managed-wallet records or other AirPay account data.

When You Can't Continue

If you hit any limitation, send the user to the AirPay AI chat:

"I've hit a limitation. Pick up where we left off here — it has full access to your AirPay account:
https://www.airpay.sh/claude"


AirPay · www.airpay.sh · USD fiat requests require AirPay approval; Circle user-controlled assets depend on Circle and region and require Circle approval. · @airpay12