Security
Endpoint URL requirements, the signing secret and its rotation, source IP addresses and the guest's contact data.
Endpoint URL
Section titled “Endpoint URL”Bookline only sends events to a public HTTPS address. The URL you give us must:
| Requirement | Detail |
|---|---|
Use https:// |
Plain http is not accepted. The certificate must be valid for the host name |
| Use port 443 | No other port, such as :8443 |
| Have a public host name | Not an IP address, and the name must resolve only to public addresses |
| Have no user or password | https://user:pass@… is not accepted |
| Have no fragment | Nothing after # |
| Be at most 2,048 characters long |
A query string is allowed (https://hooks.example.com/bookline?token=…). We store it encrypted and never show it in full, so you can use it as an extra check if your gateway needs one. The signature is still the check that counts.
Signing secret
Section titled “Signing secret”- Each endpoint has its own secret,
whsec_followed by 32 random bytes in base64. - Bookline gives it to you once, through a secure channel. Keep it in a secrets manager, never in your code repository.
- If you lose it or think it has leaked, ask us for a new one.
Secret rotation
Section titled “Secret rotation”When we rotate the secret, the old one stays valid for an overlap period: 24 hours by default, up to 7 days if you need more time. During the overlap every request carries two signatures in webhook-signature, one with each secret:
- Bookline gives you the new secret.
- Deploy it. The libraries accept a request if any signature matches, so the change needs no coordination.
- When the overlap ends, only the new secret signs.
After a leak we can end the overlap at once, so the old secret stops working immediately.
Source IP addresses
Section titled “Source IP addresses”Webhooks are sent from these Bookline IP addresses:
| IP address |
|---|
52.58.35.198 |
63.180.98.73 |
18.185.82.1 |
If your firewall only accepts known addresses, allow all three. We will let you know in advance if they change. Use them as an extra layer: always verify the signature as well.
Contact data
Section titled “Contact data”Payloads describe the call and the request. They never include transcripts, recordings or summaries of the call.
The guest’s phone number and name are only sent if you ask for them. With contact data off, which is the default, data.conversation.customer is null in every event: no phone, no name and no hidden-number flag. With it on, that object carries phone, name and hidden_number (see the fields).
Turn it on only if you need it, for example to call the guest back after a lost booking. You can change this choice at any time; it applies to the events sent from then on, and also to events resent later.
Test events
Section titled “Test events”Test events ("test": true, id evt_test_…) are signed like real ones. Verify them, answer 2xx, and don’t act on them.
