Guide
Security(keep your key safe)
Your can change a hotel's prices and rooms. So it must stay secret. This page says what you must do, and what ZimmerStack does to protect the hotel.
The idea
A key is like a password for your software. Anyone who has it can act as you. Three simple habits keep it safe.
Here is one example. Someone copies your key from an old chat message. You had set an , so the key does not work from their computer. The key holds one only, so it could not do much anyway. And the hotel's owner sees the refused address on the key.
What you must do
- 1
Keep the key on a server
Never put it in a web page, a mobile app, a code repository or a chat. Your should load it from its secret settings. Use one key for testing and another key for the real hotel. - 2
Set the allowlist
Give the key's owner the public outgoing addresses of your servers. If they change, the owner edits the key. You do not need a new key. Some hosts have no fixed address: Vercel, Netlify, Replit and most serverless hosts. There, leave the list empty while you build. Before you go live, use fixed addresses, or send your requests through a proxy that has one fixed address. - 3
Ask for the fewest scopes
A hotel's own website that takes bookings needsbookings:write. Addbookings:readto check your bookings. Addbookings:paymentsonly if your website takes money. A PMS needsari:readandari:write. Keys and scopes lists every scope. - 4
Replace the key when you are not sure
To a key is to replace it. The old key keeps working for 24 hours, so the change costs you nothing. If you know the key has leaked, it. Then it stops at once. - 5
Send externalReference with every booking you create
It is your own id for the . If you send the same request again, the same value gives you the same booking back. No second booking is made. - 6
Check every webhook
Check the of each . Compare it in a way that always takes the same time. Refuse a webhook with an old time on it. The same webhook can arrive more than once, so be ready for that. Webhooks shows how. - 7
Look at the owner's screens
In Admin, under Developers, the owner sees when each key was last used, every refused address, and every booking made by API. If something looks wrong, ask the owner to look there.
What ZimmerStack does
These are the protections on our side. You do not have to build them.
- Your key is never saved
- ZimmerStack saves only a of the key, made with a secret of our own. The check takes the same time for a right key and a wrong one. Nobody at ZimmerStack can read a key back. Our staff can only revoke it.
- A key works only for what it was given
- A hotel key acts for one hotel only. A company key works for the hotels that let the company in, and each request names one hotel. An id of a room type, a rate plan or a booking outside that is refused. The answer gives no hint that it exists.
- Scopes
- Every address of the API needs one scope. A key without it gets
403 SCOPE_MISSING. Recording a payment is a scope of its own. Creating a booking does not include it. - Address allowlist
- Each key can have a list of allowed . It is optional. The address checked is the one ZimmerStack's own network saw. A forwarded-for header that you send is not read. Each refusal is counted and shown to the owner.
- Strict checks of what you send
- Every is checked against the published contract. A field we do not know is refused. A text that is too long is refused. A number that is too big or too small is refused. So nothing unexpected is saved.
- Limits come first
- There is a for each address, each key, each hotel, each company and each day, and one for everyone together. The key and the limits are checked before the body is read.
- A wrong key costs us almost nothing
- A text that does not have the shape of a key is refused without a look in our database. A made-up key with the right shape costs one look. A flood of made-up keys is cut off at 1,200 a minute.
- Limits that fit many hotels behind one address
- An IPv6 /56 block counts as one address. A key that has just worked from your address is counted against its own limits, not the address's. A revoked key is refused alone. So it can never lock out your other keys behind the same address.
- A booking can never sell a room twice
- A booking by API is saved with the same lock and the same check of free rooms as a booking at the . If a night is sold out, nothing of the booking is saved.
- Guests hear from you, not from us
- ZimmerStack sends no email and no WhatsApp for a booking made by API. Your own website already wrote to the guest. Only the hotel's owner can switch our confirmation on. So a leaked key cannot be used to send spam through us.
- Your key never reaches an OTA
- Your key never reaches or an . ZimmerStack saves your update first. Then our own senders pass it on, at the speed our connectivity partner allows.
- Refusals say little
- A wrong key gets
401and nothing more. An id that belongs to another hotel gets404, never403. A revoked key is told that it is revoked. So nobody can use the answers to guess which keys or ids exist. - A leaked key is stopped
- A key ends in a , so a tool that searches code for secrets knows a real key when it sees one. A key reported as visible in a public place is revoked within minutes, and its holder gets an email. Every key can be rotated, company keys too, and the old key works for 24 more hours.
- Your own request log
- Every request made with a key is kept for 7 days. Read it with List your recent requests. Each line has the address pattern, our answer, the IP address it came from and the time it took. It never has the data you sent, or any data of a guest.
- A guest's phone and email are held back
- A webhook carries a guest's phone and email only while its has that switched on. A read by API returns them until 30 days after . After that the answer has
nulland says why. Every read that returned them is written down, and the hotel's owner sees who read what. Guest contact says more. - A webhook's secret is shown one time
- The is in the answer that creates a webhook endpoint, or that changes its secret. No request reads it back. So a leaked key cannot be used to send you false webhooks.
- Everything is written down
- A key that is made, changed, rotated or revoked is a line on the hotel's activity log. The line names who did it and what changed. A refusal by a key's allowlist is shown on that key in the owner's screens. Every booking made by API can be traced to the key that made it.
- Version 1 does not break
- The API only grows. A part we would like you to stop using keeps working, and says so in a header named
Deprecation. Before anything is removed, you get 12 months of notice and a header namedSunset. Compatibility has the full promise.
The checks every request passes
Each request passes nine checks, in this order. The cheap checks come first. A request without a working key is answered before its body is read. Each check refuses with a code that never changes, and saves nothing.
- 1
The address
Before ZimmerStack looks anything up. One address may send 240 requests a minute without a working key, and may fail 20 times a minute. - 2
The key
It is compared with the saved hash. The key itself is never saved. - 3
The allowlist
The address ZimmerStack's own network saw must be on the key's list, if the key has one. - 4
The scope
The key must hold the one scope this address of the API needs. - 5
The data you sent
Before anything is saved. A field we do not know is refused. A text that is too long is refused. - 6
The hotel's account and plan
The hotel's plan must include the product this request uses. - 7
The limits
For the key, for the hotel, and for the day. - 8
The ids
Every id must belong to this hotel. An id of another hotel gets404. - 9
Only then: the change is saved
It is saved in one step: all of it, or nothing. A lock on the hotel's rooms stops two bookings from taking the same room at the same moment.
Words on this page
- API key
- A long secret code that proves who is calling the API. Keep it safe like a password.
- Scope
- One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
- Allowlist
- A list of internet addresses a key may be used from. From any other address the key is refused.
- IP address
- The number that names a computer on the internet, like 203.0.113.7.
- Server
- A computer that runs your software all the time and can be reached over the internet.
- Rotate
- To replace a key or a secret with a new one. The old one keeps working for a short time.
- Revoke
- To switch a key or a link off for good.
- Hash
- A scrambled form of a secret. It can be checked, but it cannot be turned back into the secret.
- Checksum
- A few extra characters at the end of a key, worked out from the rest of the key. A key with a typing mistake fails this check.
- Body
- The data you send inside a request, written in JSON.
- Rate limit
- How many requests you may send in a minute, an hour or a day.
- Booking
- A guest has reserved a room for some nights. Also called a reservation.
- Front desk
- The reception of a hotel, where guests arrive and leave.
- Check-out
- The day a guest leaves. It is not a night of the stay.
- OTA
- Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
- Connectivity partner
- The company that carries ZimmerStack's numbers to each OTA and brings the bookings back. You never call it. Where an API name says channel manager, it means this last step. Learn more
- Webhook
- A message ZimmerStack sends to your server when something happens, like a new booking.
- Webhook endpoint
- The address of your server where ZimmerStack sends webhooks.
- Signature
- A code sent with each webhook. Your server checks it with the signing secret.
- Signing secret
- A secret code ZimmerStack shares with you once. With it your server can check that a webhook is really from ZimmerStack.
Routes, samples, limits and codes on this page come from the API's public contract, read live, Fri, 04 Dec 2026 23:28:36 UTC.