Get room types and rooms

Rooms

get/api/rooms/{pcode}/typesx-api-key

The property's inventory: its room types and, inside each, the physical rooms that belong to it. A room type is what is sold (Double Standard, Suite) and carries its name and description in every supported language, its maximum occupancy and its display colour; a room is the physical unit (its number, floor and door) and carries the housekeeping status it is in right now — clean, dirty, inspected or in revision. The response is a map, not a list: keys are roomTypeId, and inside each type rooms is keyed by room ID. This is where the roomTypeId used to check availability and to create a booking comes from. Inventory changes rarely — fetch it once and keep it, but do not cache the housekeeping status, which changes through the day.

Console

Runs against the API from your browser, with the same request your server will send.

Environment

Production

https://uni-api.hotelgest.com

Calls hit live data with your own API key. A POST, PUT, PATCH or DELETE here changes a real property.

Credentials

The API key, sent on every request. A property admin creates it in the PMS under Settings → API keys; a partner receives one per property when the property activates its integration. It works only for the property it was issued for, and only on the endpoints granted to it.

This endpoint needs a credential. Without it you will get a 401.

Stored in this browser only. Never sent anywhere but the API host above.

Path parameters

gethttps://uni-api.hotelgest.com/api/rooms/123456/types

Send the request to see the real response here.

Nothing is mocked. What comes back is what the API returned.

Requests go straight from your browser to the API host above — nothing is proxied through this site.

Path parameters

pcode
number

Property code. Identifies the property (hotel, apartment building, hostel) the request applies to. It must match the property your API key was issued for.

Responses

Ok. If your API key answers encrypted — every key issued now does, and every partner credential — this body arrives as the encryption envelope ({ crypto, protected, wrappedKey, iv, payload, tag }, a compact JWE), and the schema below is what its payload decrypts to. See https://public-api.hotelgest.com/public/guides/encryption

Example response
1{
2 "101": {
3 "id": 101,
4 "name": {
5 "en": "Single Room",
6 "es": "Habitación Individual",
7 "ca": "",
8 "de": "",
9 "it": "",
10 "fr": "Chambre Simple",
11 "eu": "",
12 "gl": "",
13 "pt": ""
14 },
15 "description": {
16 "en": "A room for one person",
17 "es": "Una habitación para una persona",
18 "ca": "",
19 "de": "",
20 "it": "",
21 "fr": "Une chambre pour une personne",
22 "eu": "",
23 "gl": "",
24 "pt": ""
25 },
26 "position": 1,
27 "occupancy": 1,
28 "color": "#FF5733",
29 "splits": {
30 "1": {
31 "name": "Standard",
32 "color": "#33FF57"
33 },
34 "2": {
35 "name": "Deluxe",
36 "color": "#3357FF"
37 }
38 },
39 "rooms": {
40 "1": {
41 "id": 1,
42 "name": "101",
43 "doorNum": "101",
44 "roomTypeId": 101,
45 "status": "dirty",
46 "floor": 1,
47 "position": 1
48 },
49 "2": {
50 "id": 2,
51 "name": "102",
52 "doorNum": "102",
53 "roomTypeId": 101,
54 "status": "ready",
55 "floor": 1,
56 "position": 2,
57 "dateToClean": "2026-01-11",
58 "splitId": 1
59 }
60 }
61 }
62}

What is a pcode?

The property code. Every endpoint is scoped to one property, and your API key only works for the property it was issued for.

Rate limits

100 requests per minute per source IP, 120 per API key and 300 per property, each counted across every endpoint together — not per endpoint. Over any of them you get a 429 with the seconds to wait in Retry-After-<limit> (apikey-ip, apikey or apikey-pcode): stop and wait it out. Repeat offences on a key or a property are blocked for longer each time, up to 7 days.