API action
List hotel keys
See the keys you made for one hotel.
About this action
- What it does
- Lists the your company made for one hotel. It never shows a full key, only its first 12 characters.
- When to use it
- To find the
idof a key before you replace it or switch it off. Also to see when each key was last used. - Who can use it
- A only. The key needs the
keys:manage. - Address
GEThttps://api.zimmerstack.com/api/v1/connect-api/v1/properties/{propertyId}/keys- Before this
- The hotel must be one you added. With a , it must be one of your .
What you send
In the address:
- propertyId
- The hotel's property id, a number. It is the
idin the answer of List your hotels.
Things to know
- Only the keys you made. Keys the hotel's owner made are not in this list. Your company key is not in it either.
- A hotel can have only a few active keys. The answer's
limitis that number. The owner's own keys count too.
The request, in your language
Put your key in place of zsk_test_YOUR_KEY.
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/properties/61/keys" -H "Authorization: Bearer zsk_test_YOUR_KEY"What comes back
The is 200. The list of keys is in items.
{
"statuscode": 200,
"message": "OK",
"data": {
"items": [
{
"id": 87,
"propertyId": 61,
"name": "Aarohan PMS, The Lantern House",
"maskedKey": "zsk_live_Qm7…",
"mode": "live",
"status": "ACTIVE",
"scopes": [
"ari:read",
"ari:write",
"channel-bookings:read"
],
"allowedCidrs": [
"203.0.113.0/24"
],
"createdAt": "2026-11-23T12:45:00.000Z",
"lastUsedAt": null,
"lastUsedIp": null,
"expiresAt": null,
"retireAt": null,
"rotatedToId": null,
"revokedAt": null,
"revokedReason": null
}
],
"limit": 5
}
}- id
- The id of the key. Use it as
keyIdto replace the key or to switch it off. - maskedKey
- The first 12 characters of the key. The full key is shown only once, in the answer that made it.
- mode
- For a real hotel:
live. For a sandbox:test. - status
- The value
ACTIVEmeans: the key works.REVOKED: the key is switched off. - scopes
- What the key may do.
- allowedCidrs
- The internet addresses the key may be used from, each as a . An empty list means: any address.
- lastUsedAt
- When the key was last used. Empty (
null) when it was never used. - expiresAt
- When the key stops by itself. Empty (
null) when it has no end date. - retireAt
- Filled only for a key that was replaced: the time this old key stops working.
- rotatedToId
- Filled only for a key that was replaced: the
idof the new key. - revokedAt, revokedReason
- Filled only for a key that was switched off: when, and why.
- limit
- The most active keys one hotel may have, the owner's own keys included.
Common mistakes
- 403 COMPANY_KEY_REQUIRED
- You used a hotel key. This request works with a company key only.
- 404 PROPERTY_NOT_FOUND
- The property id is not a hotel you added. With a test key, it is not one of your sandboxes. A hotel whose owner let you in with your vendor code gives this error too.
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.
- 403 SCOPE_MISSING
- The key is not allowed to do this. It needs the scope
keys:manage. - 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.
- 404 PROPERTY_REQUIRED
- You hold a company key, and the request did not say which hotel. Add the header X-ZS-Property with the id of one of your hotels. The answer already lists the first 20 in details.properties (id and name), with details.total for how many there are. GET /properties lists them all.
- 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 CHANNEL_MANAGER_DISABLED
- The hotel's channel manager is off, so nothing would be sent to an OTA. details.reason says why. not_on_channel_manager: the hotel was never put on it. With a company key, send its room types and rate plans (PUT /catalog/room-types, then PUT /catalog/rate-plans), or press Finish setup in the Channels app. Either puts it there. switched_off: the hotel's owner switched it off. Only the owner can switch it back on.
- 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 hotel keys
It starts with zsk_test_. It is kept in this browser tab only. Never paste a live key into a web page.
Go deeper
- Keys and scopes: The kinds of key, what each may do, and how to replace one.
Words on this page
- 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.
- Test key
- A key that starts with zsk_test_. It works only on a sandbox, so it can never change a real hotel.
- Sandbox
- Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
- Company key
- The key of a software company. One key works for all the hotels of that company.
- Scope
- One permission of a key. For example ari:write lets the key update availability, rates and restrictions.
- Status code
- A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
- CIDR range
- One line that names a group of IP addresses, like 203.0.113.0/24.
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 22:24:44 UTC.