Skip to content

API action

Add a webhook endpoint(your server's address)

Tell ZimmerStack the address of your server. ZimmerStack then sends a message to it each time something happens at your hotels.

About this action

What it does
Saves the address of your as a . From then on ZimmerStack sends a to it for each , like a new from an .
When to use it
Once for each server that must get webhooks. Make one with a for testing, and one with a for your real hotels. You can have up to 3 endpoints, test and live together.
Who can use it
A only. The key needs the webhooks:manage.
Address
POST https://api.zimmerstack.com/api/v1/connect-api/v1/webhook-endpoints
Before this
Your server needs a public address that starts with https://. Your key needs the webhooks:manage. No key has it by default. Tick it when you make the company key, in the partner portal under Developers.

What you send

You send the address and one confirmation. The other fields are optional.

url
Text. Required. The address of your server. It must use , so it starts with https://. It must use a domain name (not an IP address), and be reachable from the internet. Put your own address here: the one in the example does not exist.
dataAck
true. Required. With it you confirm that you know guest booking details will be sent to this address.
eventTypes
List of text. Optional. The you want. If you leave it out, you get the OTA booking events and the two channel.sync events.
includeGuestContact
true or false. Optional. With true, webhooks carry the guest's phone and email (). If you leave it out, it is false.
notifyEmail
Text. Optional. The email address ZimmerStack writes to when this endpoint keeps failing. If you leave it out, it is your account's email.
description
Text, up to 200 letters. Optional. Your own note, like Production server.
example: send webhooks to this address
{
  "url": "https://pms.example.com/webhooks/zimmerstack",
  "dataAck": true
}

Things to know

  1. Save the signing secret at once. The answer shows the one time only. No request can read it again. If you lose it, make a new one with Change the signing secret.
  2. A test key makes a test endpoint. An endpoint made with a test key gets only the events of your . An endpoint made with a live key gets the events of your real hotels.
  3. Guest contact is off at the start. A new endpoint does not get the guest's phone and email. Send includeGuestContact: true now, or switch it on later with Change a webhook endpoint.
  4. Website bookings are not in the default list. To get each , send eventTypes yourself. Name direct.booking.created, direct.booking.modified and direct.booking.cancelled in it, together with every other type you want.

The request, in your language

Put your key in place of zsk_test_YOUR_KEY.

Save the example above as add-a-webhook-endpoint.json. Open a terminal in the same folder and run this. On Windows PowerShell, type curl.exe instead of curl.

terminal
curl -X POST "https://api.zimmerstack.com/api/v1/connect-api/v1/webhook-endpoints" -H "Authorization: Bearer zsk_test_YOUR_KEY" -H "Content-Type: application/json" -d "@add-a-webhook-endpoint.json"

What comes back

The is 201. It means: created. The endpoint is saved and active. ZimmerStack does not send a test message by itself.

response · status code 201
{
  "statuscode": 201,
  "message": "Webhook endpoint created",
  "data": {
    "endpoint": {
      "id": 7,
      "mode": "live",
      "url": "https://example.com/zimmerstack/webhooks",
      "description": "Bookings and channel alerts for our PMS",
      "apiVersion": "2026-09-01",
      "eventTypes": [
        "channel.booking.created",
        "channel.booking.modified",
        "channel.booking.cancelled",
        "channel.sync.alert",
        "channel.sync.recovered"
      ],
      "includeGuestContact": false,
      "status": "ACTIVE",
      "statusReason": null,
      "secretVersion": 1,
      "previousSecretExpiresAt": null,
      "notifyEmail": null,
      "createdAt": "2026-12-10T09:30:00.000Z",
      "updatedAt": "2026-12-10T09:30:00.000Z",
      "lastStoppedAt": null,
      "health": {
        "state": "healthy",
        "consecutiveFailures": 0,
        "failingSince": null,
        "lastSuccessAt": null,
        "lastFailureAt": null,
        "lastErrorMessage": null
      }
    },
    "secret": "whsec_…"
  }
}
endpoint.id
The id of this endpoint. Save it: every other webhook endpoint action needs it.
endpoint.mode
test or live. It is the same as the key you used.
endpoint.status
ACTIVE: ZimmerStack sends webhooks to this address.
endpoint.eventTypes
The event types this endpoint gets.
endpoint.includeGuestContact
false, unless you sent true.
secret
The signing secret. It starts with whsec_. Your server uses it to check the of each webhook. It is shown only here.

Then put the secret on your server and send a test

Save the secret where your server can read it. Then send one sample with Send a test webhook. Your server must check the signature, and answer within 10 seconds with a status code from 200 to 299.

Common mistakes

400 VALIDATION
A value is missing or wrong. The message says which one. For an address, an event type or an email, data.details.reason says why. Check that url starts with https:// and that dataAck is true.
409 WEBHOOK_ENDPOINT_LIMIT
You already have 3 endpoints, test and live together. Delete one with Delete a webhook endpoint. Then send this request again, with a new idempotency key.
403 COMPANY_KEY_REQUIRED
You used a . Webhook endpoints are managed with a company key.
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 webhooks: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-After header, 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_NOT_FOUND
The property id is not a hotel this key may use. Read GET /properties again. The hotel's owner may have ended your access.
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.

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: add a webhook endpoint

It starts with zsk_test_. It is kept in this browser tab only. Never paste a live key into a web page.

Go deeper

  • Webhooks: Receive every booking, check that it is real, and never lose one.
  • Guest contact: When you get a guest's phone and email, and for how long.

Words on this page

Server
A computer that runs your software all the time and can be reached over the internet.
Webhook endpoint
The address of your server where ZimmerStack sends webhooks.
Webhook
A message ZimmerStack sends to your server when something happens, like a new booking.
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
Test key
A key that starts with zsk_test_. It works only on a sandbox, so it can never change a real hotel.
Live key
A key that starts with zsk_live_. It works on real hotels.
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.
HTTPS
The safe way to send data over the internet. An address that uses it starts with https://. Learn more
Event type
The name of one kind of event, like channel.booking.created for a new OTA booking.
Guest contact
A guest's phone number and email address.
Signing secret
A secret code ZimmerStack shares with you once. With it your server can check that a webhook is really from ZimmerStack.
Sandbox
Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
Website booking
A booking a guest made on the hotel's own website, through the ZimmerStack booking engine.
Idempotency key
A code you choose and send with an update. If the same update is sent twice by mistake, it is done only once.
Status code
A number in every response. 200 to 299 means it worked. 400 and above means there is a problem.
Signature
A code sent with each webhook. Your server checks it with the signing secret.
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.

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:02 UTC.