Webhooks
Let your system know when something happens in Atlas, without asking every few minutes.
How webhooks work
When something happens in your Atlas account, for example a new booking, Atlas sends a POST request to an address you choose. Your server answers with status 200 within ten seconds, and the event counts as delivered.
Failed deliveries are retried six times over 24 hours, with growing pauses in between.
What an event looks like
Every event has the same shape. The type tells you what happened, data holds the object it happened to.
booking.created.json
JSONCheck the signature
Each request carries the header Atlas-Signature. Compare it with your own hash of the body before you trust the event.
verify.js
JavaScriptTest without real bookings
In the dashboard under Developers you can send a sample event of any type to your endpoint and watch the response.