Skip to content

Retries and delivery ​

Answer quickly ​

Answer with any 2xx status within 10 seconds. Anything else counts as a failure:

  • a 4xx or 5xx status
  • a redirect (they're not followed)
  • no answer within 10 seconds
  • no connection at all

Save the message, answer, then do the slow part.

Timing ​

Host Port looks for new bookings and cancellations every minute, so a message usually arrives one to two minutes after the booking.

At most 100 messages a minute go to one endpoint. If more are waiting, the rest follow the next minute.

Retries ​

A failed message is tried again, waiting longer each time:

AttemptWaits before it
1sent straight away
2about 2 minutes
3about 4 minutes
4about 8 minutes
5about 16 minutes
6about 32 minutes
7 to 10about an hour each

10 attempts in all, over roughly five hours.

Paused ​

When a message fails its tenth attempt, the webhook is paused:

  • Nothing more is sent.
  • The connection shows paused in Settings, and the owner gets an email.
  • New bookings and cancellations are still queued while it's paused. Messages are kept for 90 days. After that they're dropped, so resume within 90 days or fetch the gap from the bookings feed.

Fix your endpoint, then press Resume in Settings. Everything that failed is sent again, in order, and the queue carries on.

Order ​

Messages for one connection are sent in the order they were queued. But a message that fails and is retried arrives after later ones. Don't rely on order. If you need the latest state of a booking, use updated_at in data, or fetch it from the bookings feed.

Duplicates ​

The same message can arrive more than once, for example when your endpoint did the work but answered too slowly. Use id (also in the X-HostPort-Delivery header) to skip a message you've already handled.

A safety net ​

Webhooks are fast but not a record. If your endpoint was down for longer than the retries cover, or you turned the webhook off and on, fetch the bookings feed with updated_since to fill any gap.