Appearance
Events and payload
Events
| Event | When |
|---|---|
booking.created | A booking was made on one of the connection's listings |
booking.cancelled | A booking was cancelled. data.status is cancelled |
ping | A test, sent when you save the webhook or press Test. data holds only the connection's id and name |
You choose booking.created, booking.cancelled or both when you set the webhook up. A ping is only ever sent when you save or test.
The request
POSThttps://your-endpoint.example/hostport
http
POST /hostport HTTP/1.1
Content-Type: application/json
User-Agent: HostPort-Webhooks/1.0 (+https://hostport.co/data-connections)
X-HostPort-Event: booking.created
X-HostPort-Delivery: 8123
X-HostPort-Timestamp: 1758172800
X-HostPort-Signature: sha256=3f0a9c…
{
"id": "8123",
"event": "booking.created",
"occurred_at": "2026-09-18T04:40:00.512Z",
"data": {
"booking_id": "6f1c2a7e-0b4d-4c55-9e2a-31f0c8a9d4b1",
"property_name": "Beachside Cottage",
"status": "confirmed",
"check_in": "2026-10-03",
"check_out": "2026-10-06",
…
}
}Headers
| Header | Meaning |
|---|---|
X-HostPort-Event | The event name, the same as event in the body |
X-HostPort-Delivery | The message id, the same as id in the body. Use it to ignore a repeat |
X-HostPort-Timestamp | When the message was signed, in Unix seconds |
X-HostPort-Signature | sha256= and the HMAC of the timestamp and body. See Verify the signature |
Body
| Field | Meaning |
|---|---|
id | The message id. The same message sent twice has the same id |
event | booking.created, booking.cancelled or ping |
occurred_at | When Host Port queued the message, as an ISO 8601 instant |
data | One row of the bookings dataset, exactly as the feed would have returned it when the message was queued |
data has every bookings column, so you don't need to call the API to get the details. Guest names and contact details are included only if the connection includes them.
A ping looks like this:
json
{
"id": "0b8e3a54-5f0f-4d62-9a39-7c1d0e6f2a11",
"event": "ping",
"occurred_at": "2026-09-18T04:39:12.004Z",
"data": { "connection_id": "3c9b…", "connection_name": "Owner dashboard" }
}