Before you start
- A Sandbox API key. See Authentication.
- A Next.js app on the App Router.
- A webhook endpoint registered under Developers > Webhooks in the Dashboard. See Webhooks.
Prompt
Prompt
How to use
- Tell the agent which Next.js version and whether you are on the App or Pages Router before it starts — the raw-body handling differs and this prompt assumes App Router.
- Create the key and the webhook endpoint yourself; the tunnel URL has to exist before the handler can be tested.
- Review the client-server boundary by hand at the end. It is the one thing in this prompt where a mistake is invisible until it is public.
What the prompt builds
Errors to expect
These codes come from the errors catalog, for the resources this prompt uses. Match oncode, not on message.
Related resources
Authentication
API keys and the production IP allowlist.
Webhooks
Event catalog, signatures, and retries.
Connect your agent to the Lumx docs MCP
Connect your agent to these docs so it stops guessing field names.
Integrate on-ramps from fiat to stablecoin
Take fiat in and deliver stablecoin to the customer’s wallet.