Skip to main content
Paste this prompt into your coding agent to build a Lumx webhook endpoint that verifies signatures and survives retries. The agent builds an endpoint that verifies each signature over the raw body, survives secret rotation, deduplicates retries, and confirms state with the API before acting.

Before you start

  • A webhook endpoint registered under Developers > Webhooks in the Dashboard, with its signing secret in your own secret store.

Prompt

Prompt

How to use

  1. Register the endpoint in the Dashboard under Developers → Webhooks and copy the signing secret into your own secret store before running the agent.
  2. If your infrastructure filters inbound IPs, take the published list from the webhooks page and add it yourself.
  3. Run the rotation test after the agent finishes: rotate the secret in the Dashboard and confirm nothing drops during the 24-hour overlap.

What the prompt builds

Errors to expect

These codes come from the errors catalog, for the resources this prompt uses. Match on code, not on message.

Webhooks

Event catalog, signatures, and retries.

Idempotency

Safe retries with Idempotency-Key.

Integrate on-ramps from fiat to stablecoin

Take fiat in and deliver stablecoin to the customer’s wallet.

Integrate off-ramps to local bank rails

Pay out from a stablecoin balance to a local bank account.