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
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 costs $0.001 USDC and returns tokens your agent will use for all 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. Available actions
| Action | Endpoint | Cost |
|---|---|---|
| Get a prepaid card | GET /get-card?amount=X | $5–$1000 USDC |
| Send a Venmo payment | GET /send-payment?amount=X&platform=venmo&recipient_id=PHONE | $5–$1000 USDC |
| Send a PayPal payment | GET /send-payment?amount=X&platform=paypal&recipient_id=X | $5–$1000 USDC |
| Send to a U.S. debit card | GET /push-to-card?amount=X | $10–$9,541.98 USDC |
| Poll for card details | GET /get-card-data?card_id=X | Free (Bearer token) |
| Get auth credentials | GET /auth | $0.001 USDC |
| Check merchant compatibility | GET /search-merchants?q=NAME | Free (Bearer token) |
| Refresh expired token | POST /auth | Free |
Cards are US only. They can only be used at US-based merchants for USD
purchases. Physical goods must ship to a US address.
Next steps
Making a purchase
Walk through ordering a card and buying something with your agent.