Quickstart
From zero to a real response in four steps.
4 min read
The Public API is a plain REST API over HTTPS. Everything is JSON, almost every endpoint is scoped to one property, and the only credential is a header. If you can send an HTTP request, you can integrate.
- 1Get an API keyIn the PMS, an admin opens Settings → API keys and generates one. The key belongs to a single property. Save the private key the panel shows you at that moment: responses come back encrypted, and that private key is what opens them — see Encrypted responses.
- 2Note your pcodeThe property code. It appears in the path of almost every endpoint, and your key only works for its own property — using another one returns 401, not 403.
- 3Call something harmless firstGET /api/otas is the one endpoint with no pcode in its path: any valid key reads it, so it tells you at once whether your key and your network work. Then move to an endpoint of your property.
- 4Read before you writeThere is one environment and it holds real reservations. Build the read side first — search, availability, detail — and only then move on to the endpoints that change something. The console on this site keeps POST, PUT, PATCH and DELETE locked until you unlock them, for the same reason.
Your first call
bash
1curl -X GET 'https://uni-api.hotelgest.com/api/rooms/1234/types' \2 -H 'x-api-key: YOUR_API_KEY'
Use the console on this site
Every endpoint page has a console that sends the same request your server will send and prints the real response — the encrypted envelope, if your key answers encrypted; the console does not decrypt it. Paste your key once and it stays for the rest of the session.
Where to go next
- •Reading a calendar: GET /api/v2/rooms/{pcode}/availability tells you what is free between two dates.
- •Listing reservations: GET /api/v2/bookings/{pcode}/search, filtered by date, status or free text.
- •Reacting to changes: register a webhook instead of polling that search endpoint on a timer.