GET /messages.
Prerequisites
- A Messages API key with the
comms_webhooksscope. - A public HTTPS URL that accepts
POST.
Register an endpoint
comms_webhooksSuccess: 201 with the created webhook object.
List endpoints
Local development
- Run your app with a
POSThandler that logs the body. - Tunnel with ngrok / Cloudflare Tunnel.
- Register the tunnel URL as above.
- Send a test message to your line (or fire a test from the API if available on your deployment).
Handler checklist
Respond quickly
Respond quickly
Return 2xx as soon as you accept the event. Do heavy work in a queue.
Treat delivery as at-least-once
Treat delivery as at-least-once
The same event may arrive more than once. Make handlers idempotent on event id when present.
Keep secrets off the client
Keep secrets off the client
Webhook receivers belong on your server. Do not process hooks in a browser.
Related
- Create webhook
- List webhooks
- List events — poll delivery attempts if you need pull-based debugging

