Goki API
Search…
Webhooks
Let Goki trigger your webhook on different events
You can register your webhooks on Goki and get updates on particular events. For now, each third-party app can register only one webhook which will be subscribed to all events automatically.
Your webhook’s method should be POST as we need to submit data to you.
Any response in the range of 2xx will be considered successful. Otherwise, we will trigger the webhook two more times with exponential backoff.

Available Events

1) reservationPinGenerated

Currently, the only available webhook event is reservationPinGenerated. Once you register for it, we will call your API whenever a pin is generated on the reservation with the below information:
1
{
2
event: ‘reservationPinGenerated’,
3
data: {
4
...ReservationDocument, // Check ReservationDocument for sample data
5
"pin": "2817628",
6
"gatesPins": [ // Common area PINs. It's an empty array when there is no common area PINs.
7
{
8
"gateName": "TV Room",
9
"pin": "45863456"
10
}
11
]
12
}
13
}
14
Copied!
To get a PIN your room should have a SmartLock or a SmartDisc.
You typically do not need this as Goki emails the PINs to the guests when they are checked in.

Data Structure

APIs

Last modified 4mo ago