Receive webhooks in your app
What your app gets from Unmissed, and how to handle it.
Your app receives each webhook with its original method, body and headers, so the sender’s signature still checks out. Reply with any 2xx status to accept it.
A few headers that only make sense for one connection are left out: host, content-length, connection, keep-alive, transfer-encoding, te, upgrade, accept-encoding and proxy-connection. If the sender sent no content-type, your app gets application/octet-stream.
Headers
Unmissed adds two headers:
| Header | What it is |
|---|---|
x-unmissed-webhook-id | The same on every retry and resend. Use it to skip a webhook you’ve already handled. |
x-unmissed-attempt | Which attempt this is, starting at 1. A resend starts again at 1. |
Order
Order isn’t guaranteed. Webhooks go out several at a time, and a retry can land after a newer one. Senders such as Stripe don’t promise order either, so use the event’s own timestamp.
Late webhooks
Some senders sign a timestamp and reject old ones. Stripe allows 5 minutes by default. If webhooks may reach your app late, for example after it was down, raise that tolerance in your app.
Size
Bodies can be up to 25 MB, file uploads included. Multipart webhooks, like inbound email with attachments, arrive byte for byte, so their signatures still check out.
Webhooks from the CLI
Webhooks that unmissed listenx-unmissed-* headers.
Last updated on