Webhooks
Coming soon
Webhooks are not available yet. This page describes what is planned so you can design for it.
Webhooks will notify your server when something changes, so you do not have to poll. Planned events include booking.created, booking.updated, booking.confirmed, booking.cancelled, payment.completed, and payment.failed.
Planned behavior:
- Endpoints are set per app and per environment, on the app's Webhooks tab.
- Each delivery has a unique event ID. Store the IDs you have processed and ignore repeats, because a delivery can arrive more than once.
- Each delivery is signed with HMAC-SHA256 in an
X-Agantia-Signatureheader (t=<timestamp>,v1=<signature>). Check the signature and reject old timestamps. - Failed deliveries are retried with exponential backoff, and can be replayed from the delivery log.
- An event only contains data the app is allowed to read.
Until webhooks are available, poll GET /bookings with filter[created_from], at most once a minute.