Webhooks types
Available webhook types to get notified when a reservation is created, updated, or deleted.
π Get webhooks subscriptions
GET/webhooks/subscriptions
Retrieve all webhook subscriptions registered by the client.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Query params
next_cursor
string
Pagination cursor
limit
int
Elements limit per page
Response
{
"data": [
{
"endpoint": "http://localhost:8183/main-page/webhook",
"id": 9,
"webhook_type": "RESERVATION_CREATED"
},
{
"endpoint": "http://localhost:8183/main-page/webhook",
"id": 10,
"webhook_type": "RESERVATION_UPDATED"
}
]
}π Get webhooks subscriptions by ID
GET /webhooks/subscription/{id}
Retrieve a specific webhook subscription by its ID.
Response
{
"data": [
{
"endpoint": "http://localhost:8183/main-page/webhook",
"id": 10,
"webhook_type": "RESERVATION_UPDATED"
}
]
}π Create webhook subscription
POST /webhooks/subscription
Registers a new webhook subscription for a specific event type.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Property
<your_property_id>
Body
endpoint
http://localhost:8183/main-page/webhookwebhook_typeRESERVATION_CREATED{
"endpoint": "http://localhost:8183/main-page/webhook",
"webhook_type": "RESERVATION_CREATED"
}Response
{
"data": [
{
"endpoint": "http://localhost:8183/main-page/webhook",
"id": 9,
"webhook_type": "RESERVATION_CREATED"
}
]
}π Update webhook subsciption
PUT /webhook/subscription/{id}
Updates the details of an existing webhook subscription.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
endpoint
http://localhost:8183/second-page/webhookwebhook_typeRESERVATION_CREATEDResponse
{
"data": [
{
"endpoint": "http://localhost:8183/second-page/webhook",
"id": 9,
"webhook_type": "RESERVATION_CREATED"
}
]
}ποΈ Delete webhook subscription
DELETE /webhook/subscription/{id}
Deletes a specific webhook subscription by its ID.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Response
{
"data": [
{
"endpoint": "http://localhost:8183/second-page/webhook",
"id": 9,
"webhook_type": "RESERVATION_CREATED"
}
]
}Last updated