Webhooks
Get an HTTPS callback for every message status change, signed so you can verify it came from us.
Applies to
v2
Create an endpoint
Add an HTTPS URL in the dashboard or with POST /v2/webhook_endpoints and pick the events you want, such as message.delivered and message.failed. Fernway sends a JSON event to that URL each time one happens.
Verify signatures
Every event carries a fernway-signature header. Verify it with your endpoint's signing secret before you trust the payload, and reject events older than five minutes to block replays.
Retries
Return any 2xx status within 10 seconds. Otherwise Fernway retries with exponential backoff for up to 24 hours. Make your handler idempotent by storing the event id.