Skip to content

Webhooks ​

A webhook turns the bookings feed around. Instead of your code asking every so often, Host Port sends a POST to your address for each new booking and each cancellation, a minute or two after it happens.

Webhooks are for developers. A spreadsheet can't receive one.

Paid plan

Webhooks are part of Host Port's paid plan. Pulling data by link or API key works on every plan. If the plan lapses, a saved webhook stays saved but nothing is sent until it's renewed.

Set one up ​

  1. Create a connection that includes Bookings. Webhooks send booking rows, so a connection without Bookings has no Webhook button.
  2. On the connection in Settings, click Webhook.
  3. Enter your endpoint's https:// address and tick New booking, Cancelled booking, or both.
  4. Click Test and save. Host Port sends a signed ping to your address, and only saves the webhook if it answers with a 2xx status.
  5. Copy the signing secret. It starts with hpw_ and is shown once. Use it to check every message really came from Host Port.

What gets sent ​

  • Bookings made or cancelled after the webhook was turned on. Older bookings aren't sent. Fetch those from the bookings feed.
  • Only for the listings the connection covers.
  • Guest names and contact details only if the connection includes them.
  • Never blocks, mirrored blocks, Booking.com closures or unpaid direct checkouts.

Your endpoint ​

  • Must be a public https:// address.
  • Private network addresses, localhost, and Host Port's own domains are refused.
  • Must answer with a 2xx status within 10 seconds. Redirects aren't followed.

Change it, test it, turn it off ​

ButtonWhat it does
Edit webhookSaves a new address and a new signing secret. The old secret stops working at once
TestSends a ping signed with the current secret
ResumeStarts sending again after the webhook was paused
Webhook offRemoves the address, the secret and anything still waiting to be sent

Turning the whole connection off does the same as Webhook off.

Next ​