Skip to content

API action

Get a connect link

See if the hotel has used one connect link.

About this action

What it does
Reads one by its id. The answer says where the link stands. Once the is connected, it also has the id of the new .
When to use it
After you sent a link to a hotel, to see if the hotel opened it and finished. A tells you the same without asking.
Who can use it
A only. The key needs the channels:connect.
Address
GET https://api.zimmerstack.com/api/v1/connect-api/v1/connect-links/{linkId}
Before this
You need the linkId. It is link.id in the answer of Make a connect link.

What you send

In the address:

linkId
The id of the link, from the answer of Make a connect link.

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.

terminal
curl "https://api.zimmerstack.com/api/v1/connect-api/v1/connect-links/3f2b6c1e-8a4d-4e7b-9c05-1d2e3f4a5b6c" -H "Authorization: Bearer zsk_test_YOUR_KEY"

What comes back

The is 200. Read status first. In this example the hotel finished: the status is completed.

response · status code 200
{
  "statuscode": 200,
  "message": "OK",
  "data": {
    "id": "3f2b6c1e-8a4d-4e7b-9c05-1d2e3f4a5b6c",
    "propertyId": 61,
    "channel": "bookingcom",
    "channelName": "Booking.com",
    "status": "completed",
    "createdAt": "2026-11-23T09:30:00.000Z",
    "expiresAt": "2026-11-26T09:30:00.000Z",
    "openedAt": "2026-11-23T11:02:10.000Z",
    "connectedAt": "2026-11-23T11:14:41.000Z",
    "completedAt": "2026-11-23T11:16:03.000Z",
    "revokedAt": null,
    "channelId": "7c1d8a3e-5f2b-4d6a-9e0c-1b2a3c4d5e6f",
    "reference": "onboarding-4471",
    "returnUrl": null,
    "createdByKey": {
      "id": 12,
      "name": "Aarohan PMS, production",
      "maskedKey": "zsk_live_aB3…"
    }
  }
}
status
Where the link stands. The table below explains each value.
openedAt
When the hotel's person opened the link. It is null if nobody did.
connectedAt
When the page saved the connection. The connection is paused until Start selling is pressed.
completedAt
When Start selling was pressed.
channelId
The id of the new channel, as List the connected OTAs shows it. It is null until the page saved one.
expiresAt
The link can be opened until this time.

What each status means

A link has one of five statuses.

pending
Made, and nobody has opened it yet.
opened
Someone is on the page now.
completed
Start selling was pressed. The OTA is connected.
expired
The time ran out before anyone finished. Make a new link.
revoked
You cancelled it, or a newer link for the same hotel and OTA replaced it.

Common mistakes

404 CONNECT_LINK_NOT_FOUND
No link of your company has this id. Check the linkId.
403 COMPANY_KEY_REQUIRED
You used a hotel key. Connect links belong to 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 channels:connect.
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.
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: get a connect link

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

Go deeper

  • Connect an OTA: First the OTA accepts our connectivity partner. Then a link: the hotel's id, the mapping, Start selling.

Words on this page

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.
OTA
Online travel agency: a website that sells hotel rooms, like Booking.com, MakeMyTrip or Agoda. Learn more
Channel
One connection between a hotel and one OTA. Hotel people say channel and OTA for nearly the same thing.
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.
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.
Sandbox
Your test hotel. It works like a real hotel, but no OTA can see it and it costs nothing.
Test key
A key that starts with zsk_test_. It works only on a sandbox, so it can never change a real hotel.
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
Extranet
The website an OTA gives a hotel to manage its own listing, like the Booking.com extranet.
Mapping
Saying which room and price in one system is which room and price in another system. For an OTA: each of its rooms and rates is matched to one of the hotel's rate plans. A person makes the first matching. Changing it later is called a re-map. Learn more
Room type
A kind of room the hotel sells, like Deluxe Room or Family Suite. A hotel can have 12 rooms of one room type.
Rate plan
One way to sell a room type, with its own price. For example Room only, or With breakfast.

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:25:45 UTC.