lomi.
BuildCli

Listen for webhooks

Use lomi listen to receive sandbox webhooks via cloud relay without ngrok.

lomi listen opens a Server-Sent Events (SSE) connection to the lomi. API and streams real webhook events to your machine. Optionally forward them to a local HTTP handler.

Requires lomi login with a sandbox profile (recommended).

Usage

# Print events in the terminal
lomi listen

# Forward to your local webhook handler
lomi listen http://localhost:3000/api/webhooks

Options

FlagDescription
FORWARD_URLOptional URL to POST signed webhook payloads
--allow-productionOpt in to listen on a production profile (requires API CLI_LISTEN_ALLOW_PRODUCTION=true)

Workflow

Log in (sandbox)

lomi login --profile sandbox
lomi switch sandbox

Start listening

lomi listen http://localhost:3000/webhooks

On connect, the CLI prints your organization and LOMI_WEBHOOK_SECRET. Add the secret to .env:

LOMI_WEBHOOK_SECRET=whsec_...

Trigger a test event

lomi webhooks list
lomi webhooks test <webhook-id>

Events appear in the terminal and are forwarded to your local URL with production headers (X-Lomi-Signature, X-Lomi-Event).

Compared to lomi dev

lomi listenlomi dev
Receives real sandbox eventsYesOnly if dashboard points to localhost/ngrok
Requires ngrokNoOften yes for E2E
Runs local HTTP serverNo (optional forward)Yes (:4242/webhook)

Use lomi listen as the primary integration path. Use lomi dev when you only need a local receiver.

Next steps

Sur cette page