Set up webhooks and replay missed events
Use a webhook when your integration needs to hear about a change, such as a mailbox enquiry needing a person. The event tells your receiver when to look. The receiver uses its own authorization to read the enquiry.
- Prepare an HTTPS receiver and create its endpoint in developer access.
- Select the events you handle, attach the resources you may share, and complete the signing-secret handoff. Store the secret when it is revealed.
- Send a synthetic test. Verify its signature and check that your receiver recorded the event ID before activating delivery.
Process a delivery once
Verify the signature and timestamp against the raw request bytes before parsing. Persist the event in a durable inbox keyed by event ID before returning success. Deliveries may repeat or arrive out of order. Fetch the current resource with the receiver’s own authorized credential.
After downtime, inspect delivery history and replay retained events or use the event feed. Save next_cursor even on an empty page. On 410 reconcile current resources and start a new cursor. Replaying a notification leaves the original business action untouched. Signature and payload details · Event reference.
Two notices arrive for one enquiry
Suppose your receiver was offline when a mailbox enquiry needed a person. By the time it recovers, a colleague has answered and a draft is ready. The older event still describes something that happened. Before creating a “please answer” reminder, read the current enquiry with the receiver’s own credential.
If the same event ID arrives twice, use the saved inbox entry to avoid creating a second reminder. If two distinct IDs concern the same enquiry, keep both facts and use the current state to decide what the team needs now.