List all webhooks

Webhooks

get/api/webhooks/{pcode}x-api-key

The outgoing webhooks configured for a property. Each one is a URL of yours that the PMS calls with an HTTP POST when an event it subscribes to happens, and each shows whether it is currently enabled. The Basic password is never returned, only whether one is stored (passwordSet). The only event available today is bookings-added, sent when bookings are created. Requires an admin user and a subscription with the API add-on; without either, every endpoint in this section answers 403.

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/webhooks/123456

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

id
string

Unique identifier of the webhook (a 24-character hex id)

pcode
number

Property code the webhook belongs to

name
string

Name of the webhook

url
string

URL of the webhook

eventTypes
enum[]

Event types that trigger a delivery

One of:bookings-added

WebhookAuthenticationDto

Authentication sent with each delivery

isAvailable
boolean

Whether the webhook is enabled

createdAt
string · date-time

When the webhook was created (ISO 8601)

Example response
1[
2 {
3 "id": "65f1c2a9b4d3e2f1a0c9b8d7",
4 "pcode": 1010,
5 "name": "Booking Created Webhook",
6 "url": "https://myapp.com/webhooks",
7 "eventTypes": [
8 "bookings-added"
9 ],
10 "authentication": {
11 "status": true,
12 "username": "myUser",
13 "password": "",
14 "passwordSet": true
15 },
16 "isAvailable": true,
17 "createdAt": "2025-01-10T14:35:00.000Z"
18 }
19]

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.