Skip to main content

Overview

The Laso Finance API uses the x402 protocol to gate endpoints behind crypto payments on Base (USDC). Agents and clients can programmatically order prepaid Visa cards (US only) or send Venmo/PayPal payments.

How x402 works

1

Call a paywalled endpoint

Make a request without a payment header. You’ll receive a 402 Payment Required response containing payment details (price, recipient address, network).
2

Construct a payment header

Use the details from the 402 response to create an x402 payment header with a Base USDC transaction.
3

Replay the request

Send the same request with the payment header attached. The server verifies the payment and processes your request.

Authentication

Paywalled endpoints extract the payer’s wallet address from the x402 payment header to identify the user. No separate API key is needed. The /auth endpoint returns auth credentials (idToken, refreshToken) that can be used as Bearer tokens to call other Laso Finance APIs at the callableBaseUrl returned in the response. When the idToken expires, use the free /refresh endpoint to get a new one.

Endpoints

EndpointMethodPaymentDescription
/authGET$0.001 USDCGet API auth credentials
/get-cardGET55–1000 USDCOrder a prepaid Visa card (US only, for caller’s own use)
/paid-dataGET55–1000 USDCDeprecated — alias for /get-card
/send-paymentGET55–1000 USDCSend a Venmo or PayPal payment
/refreshPOSTFreeRefresh an expired ID token

Discovery

Agents can discover this API via:

Base URL

https://laso.finance