1. Set up your agent’s wallet
Your agent needs a crypto wallet with USDC on Base to pay for Laso Finance API calls. Choose a wallet provider:- Locus
- Sponge
- Ampersend
Locus provides wallet infrastructure purpose-built for AI agents.Tell your agent:Your agent will walk through the Locus onboarding, but it needs a few things from you first:
Create a Locus account
Go to app.paywithlocus.com and sign up with your email.
Deploy a wallet
From the dashboard, click Create Wallet. This deploys a smart wallet on the Base blockchain (~30 seconds). Save your private key — it’s shown only once.
Fund your wallet
Transfer USDC on the Base chain to the wallet address shown on your dashboard. You’ll need at least $5 to order a card.
Generate an API key
Go to the API Key section and generate a key (starts with
claw_). Copy it immediately — it’s shown only once.Configure x402 endpoints
Navigate to x402 Endpoints in the Locus dashboard and add the Laso Finance endpoints your agent will use. See the Locus x402 Configuration guide for detailed instructions on adding each endpoint with the correct parameters.
2. Authenticate with Laso Finance
Once your agent has a funded wallet, tell it to call the/auth endpoint to get API credentials. This endpoint is free: your agent proves wallet ownership with a SIGN-IN-WITH-X signature header. Tokens are returned for use in subsequent requests.
Tell your agent:
/auth response includes:
id_token— Bearer token for authenticated endpoints (like/get-card-data). Expires after ~1 hour.refresh_token— Use withPOST /auth(grant_type: "refresh_token") to get a newid_tokenwhen it expires.user_id— Your agent’s user ID (derived from wallet address).
3. Discover available endpoints
Your agent can discover everything it needs from these standard files:| File | URL | Purpose |
|---|---|---|
| Agent skill file | laso.finance/SKILL.md | Step-by-step instructions for agents |
| OpenAPI spec | laso.finance/openapi.json | Machine-readable API schema |
| AI plugin manifest | laso.finance/.well-known/ai-plugin.json | Agent discovery manifest |
| LLM context | laso.finance/llms.txt | LLM-optimized summary |
4. What your agent can do
Once authenticated, point your agent at any of these flows. Each guide covers the full happy path, parameters, response shape, and example agent prompts.Order a USA prepaid card
Best for U.S. online merchants. Two-step flow: provision the card, then poll
/get-card-data for the number, CVV, and expiry.Order an international prepaid card
Works with non-U.S. merchants and addresses. Stays
queued until an admin
fulfills the order (typically within 24 hours).Send money to a debit card
Push USDC out to any USD, EUR, or GBP debit card. The recipient completes a
short form at the returned
redemption_url.Order a gift card
Pick a brand from the multi-brand catalog with
/search-gift-cards, then
order by laso_server_id. Redemption details returned instantly.Check merchant compatibility
Search the merchant database before ordering to confirm a retailer accepts
Laso prepaid cards.
Authenticate and refresh tokens
SIGN-IN-WITH-X, ID tokens, and OAuth2 refresh — the plumbing that backs
every paywalled call.
The USA prepaid card is U.S. only — issued in USD, usable at U.S. merchants
only, and physical goods must ship to a U.S. address. For international
purchases, use the international prepaid card instead.
Next steps
Making a purchase
Walk through ordering a card and buying something with your agent.