How webhooks work
- You register a webhook endpoint URL in your Lanten dashboard
- When an event occurs, Lanten sends an HTTP
POSTrequest to your endpoint - Your endpoint receives the event payload and responds with a
200status
200 response or times out, Lanten will retry the request with exponential backoff.
Registering a webhook
Go to Settings → Developers in your dashboard and add your endpoint URL. You can subscribe to specific event types or receive all events.Verifying requests
Every webhook request includes a signature in theLanten-Signature header. Verify this signature to confirm the request came from Lanten.
The signature is an HMAC-SHA256 hash of the raw request body, signed with your webhook secret:
Example verification
Payload structure
All webhook payloads share a common envelope:| Field | Type | Description |
|---|---|---|
event | string | The event type (see Events) |
timestamp | string | ISO 8601 timestamp of when the event occurred |
data | object | The event payload |
Browse all events
See the full list of webhook events and their payloads.
