API action
List events(everything that happened, in order)
Read everything that happened to a hotel, in order. Use it to catch up after your server was down.
About this action
- What it does
- Lists the of one hotel, oldest first. An event is a from an , a booking from the hotel's own website, or an OTA problem. Each event has a number, its .
- When to use it
- After your server was down. Also on a schedule: every few minutes is enough. And when a arrives with a sequence that is not your next one.
- Who can use it
- A or a . A company key names the hotel with the . The key needs the
channel-bookings:readordirect-bookings:read. - Address
GEThttps://api.zimmerstack.com/api/v1/connect-api/v1/events- Before this
- Save one number for each hotel: the sequence of the last event you used. Start with 0.
What you send
At the end of the address, after a question mark:
- after
- Whole number, 0 or more. Optional. The sequence of the last event you used. The answer starts at the next event. Send 0, or nothing, to read from the oldest event that is still kept.
- limit
- Whole number, 1 to 100. Optional. How many events in one answer. Without it: 50.
Things to know
- Keep one number for each hotel. Each hotel has its own events and its own sequence. With a company key, save one number for each hotel.
- Save nextAfter when you have used the events. It is your new place. Send it as
afternext time. Whilemoreistrue, ask again at once. - Events are kept for a limited time. The field
retentionDayssays how many days. IfearliestSequenceis more than one above yourafter, some events are gone. Then read List OTA bookings and List website bookings, and go on fromnextAfter. - Two scopes open this list. With
channel-bookings:readyou see OTA bookings and OTA problems. Withdirect-bookings:readyou see website bookings. A key with only one of them does not see the other kind: those numbers are skipped.
The request, in your language
Show the examples for
A sandbox's own key works for one hotel: choose "A hotel key" for it.
Put your key in place of zsk_test_YOUR_KEY, and your hotel's property id in place of YOUR_PROPERTY_ID.
Open a terminal and run this. On Windows PowerShell, type curl.exe instead of curl.
curl "https://api.zimmerstack.com/api/v1/connect-api/v1/events?after=41&limit=20" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "X-ZS-Property: YOUR_PROPERTY_ID"Put your key in place of zsk_test_YOUR_KEY. A hotel key works for one hotel, so the request does not name the hotel.
Open a terminal and run this. On Windows PowerShell, type curl.exe instead of curl.
curl "https://api.zimmerstack.com/api/v1/connect-api/v1/events?after=41&limit=20" -H "Authorization: Bearer zsk_test_YOUR_KEY"What comes back
The is 200. The events are in items, oldest first. In this example nothing new happened after event 41, so items is empty.
{
"statuscode": 200,
"message": "OK",
"data": {
"items": [],
"more": false,
"nextAfter": 41,
"earliestSequence": 1,
"retentionDays": 90
}
}- items
- The events. Each one looks exactly like the webhook for that event.
- items[].type
- What happened, for example
channel.booking.created. - items[].sequence
- The number of the event in this hotel's list.
- items[].data
- The details of the event. A booking event has the whole booking in
data.booking. - more
- With
true, more events are waiting. Ask again withafterset tonextAfter. - nextAfter
- The sequence of the last event in this answer. On an empty answer it is the
afteryou sent. Save it. - earliestSequence
- The oldest event that is still kept for this hotel. It is
nullwhen the hotel has no events yet. - retentionDays
- How many days an event is kept.
Then use each event, in order
Go through items from first to last, and look at type to know what happened. Then save nextAfter, together with what you changed. If a type is new to you, skip it and still move your place past it.
- channel.booking.created, .modified, .cancelled
- A booking from an OTA is new, was changed, or was cancelled. The booking is in
data.booking. - direct.booking.created, .modified, .cancelled
- The same for a booking from the hotel's own website.
- channel.sync.alert, .recovered
- A problem with an OTA started, or ended. The details are in
data.sync. - channel.connect.completed, .expired
- A was used, or ran out. The details are in
data.connect. - channel.drift.detected, .healed
- On some nights the holds other numbers than you sent, or it holds yours again. The details are in
data.drift.
Common mistakes
- 400 VALIDATION
- A value in the address is wrong, and the message names it. For example,
afteris below 0, orlimitis not 1 to 100. - 409 CHANNEL_MANAGER_DISABLED
- The hotel's channel manager is not switched on. For a new hotel, send its room types and rate plans first.
Other errors this request can give
- 401 API_KEY_INVALID
- The key is not right. Copy it again, all of it, with no space before or after.
- 400 PROPERTY_REQUIRED
- You hold a company key and did not name the hotel. Add the
X-ZS-Propertyheader. - 404 PROPERTY_NOT_FOUND
- The property id is not one of your hotels. Use an id from List your hotels.
- 403 SCOPE_MISSING
- The key is not allowed to do this. It needs the scope
channel-bookings:readordirect-bookings:read. - 403 IP_NOT_ALLOWED
- The key only works from the addresses its owner allowed.
- 429 RATE_LIMITED
- Too many requests in a short time. Wait the number of seconds in the
Retry-Afterheader, then send again. - 401 API_KEY_REVOKED
- The key was switched off, or it was replaced and its extra 24 hours are over. Ask the key's owner for the new key. Nothing else makes this key work.
- 409 ARI_NOT_AUTHORITATIVE
- The hotel is not live yet: your software is not its source of truth, so nothing was saved. GET /readiness says what is missing, and POST /go-live makes the switch. To send rates before that, add the header X-ZS-Before-Go-Live: true. It is the same for a company key and for a hotel's own key: a hotel key with ari:read or ari:write can be made before its hotel is live.
- 409 PROPERTY_UNAVAILABLE
- The hotel is deleted or is a demo. Or a test key was used on a real hotel, or a live key on a sandbox. Check which key you send. If the key is right, contact the hotel's owner.
Try it now
No code and no install. This box sends a real request to your . It works with a only, so it can never change a real hotel.
Try it here: list events
It starts with zsk_test_. It is kept in this browser tab only. Never paste a live key into a web page.
Go deeper
- The event log: Read everything that happened to a hotel, in order.
- Webhooks: Receive every booking, check that it is real, and never lose one.
Words on this page
- Event
- One thing that happened, like a new booking. Each webhook carries one event.
- Booking
- A guest has reserved a room for some nights. Also called a reservation.
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
- Sequence
- A number that counts a hotel's events in order: 1, 2, 3 and so on.
- Webhook
- A message ZimmerStack sends to your server when something happens, like a new booking.
- Company key
- The key of a software company. One key works for all the hotels of that company.
- Hotel key
- A key that works for one hotel only. The hotel's owner makes it, or a partner makes it for a hotel it added.
- X-ZS-Property
- The header that tells ZimmerStack which hotel a request is for. Its value is the property id.
- Header
- A small piece of extra information sent with a request, like your key.
- Scope
- One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
- Sandbox
- Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
- Status code
- A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
- Connect link
- A one-time link you send to a hotel: the last step of connecting one OTA. Except on Airbnb, the OTA must first accept our connectivity partner for the hotel. Then the hotel's person types the hotel's id at the OTA, matches the rooms and rates, and starts selling.
- Channel manager
- Software that keeps a hotel's rooms and prices the same on every OTA. Learn more
- Test key
- A key that starts with zsk_test_. It works only on a sandbox, so it can never change a real hotel.
New here? Start with the partner path or the one-hotel path.
Routes, samples, limits and codes on this page come from the API's public contract, read live, Fri, 04 Dec 2026 18:26:12 UTC.