Webhooks
Receive Bookline events in your own systems, live, while your agents handle each call.
Webhooks send an HTTPS POST to your server every time something happens in a conversation your agents handle: a call starts, the guest asks for a booking, the booking is confirmed, the request stays pending with the venue, the call ends. You don’t have to poll the API: the events reach you as they happen.
What you receive
Section titled “What you receive”There are two kinds of entities and eight event types:
- A conversation is one call. It gets
conversation.startedandconversation.ended. - A request is one thing the guest asks for during the call: a new booking, a change, a cancellation, a question, talking to staff. A call can hold several requests. Each request gets
request.createdand then an event for every change of status:request.updated,request.pending,request.transferred,request.completedorrequest.not_completed.
Every event carries the full current state of the request (or of the conversation), not only what changed. The details of each event, its fields and sample payloads are in the event catalogue.
When the events arrive
Section titled “When the events arrive”Events are sent during the call, not only at the end: you receive conversation.started when the call starts, request.created once the agent understands what the guest wants, and the result as soon as it is known. Events usually arrive a few seconds after the change, but there is no latency guarantee.
Some requests also change after the call. For example, a group booking waits for the venue to confirm it (request.pending) and is closed later with request.completed or request.not_completed, when the venue accepts or rejects it, or when it expires.
The events only cover conversations that started after your endpoint was created. A call that started earlier sends nothing to that endpoint, not even when one of its requests changes later (for example, a group booking that expires after you connected). Adding venues or event types to an endpoint applies to new events only.
Getting started
Section titled “Getting started”For now Bookline sets up the endpoint for you. Managing your endpoints yourself from the portal will come later.
1. Send us your details. Write to your Bookline contact or to soporte@bookline.ai with:
| What | Example |
|---|---|
| The HTTPS URL that will receive the events | https://hooks.example.com/bookline |
| Which event types you want | All eight, or for example only request.* |
| Which venues | All your venues, or a list |
| Whether you want the guest’s contact data (phone and name) | Yes / No. Off by default, see Contact data |
The URL must meet the URL requirements. If you prefer, you can use one URL per event type or per group of venues (up to 10 endpoints per account).
2. Receive your signing secret. Bookline creates the endpoint and gives you its signing secret (whsec_…) once, through a secure channel, never by plain email. Store it in your secrets manager: you need it to verify every request.
3. Try it with test events. Before going live, Bookline can send you test events for the usual cases: call started and ended, booking made, no availability, alternatives declined, guest hung up, transfer to staff, and a group booking pending, accepted, rejected and expired. They have "test": true and their id starts with evt_test_. They are sent once and never retried. Your server must verify them like any other event and must not act on them.
4. Go live. Once your server answers the test events with a 2xx, Bookline turns on the real events. If you want to start with a single venue, ask for the endpoint to cover only that venue and add the rest later.
Checklist for your server
Section titled “Checklist for your server”- Read the raw body and verify the signature before anything else.
- Answer
2xxwithin 10 seconds, and do the heavy work afterwards, in a queue. See Responses and retries. - Deduplicate by the event id (
webhook-idheader) and keep the event with the highestsequencefor each request. See Ordering and duplicates. - Ignore fields and values you don’t know: new ones may be added without notice.
Changelog
Section titled “Changelog”| Version | Date | Changes |
|---|---|---|
| v0.0.1 | 2026-11-20 | First version. Restaurant voice calls. Eight event types, payload api_version 2026-11-01. Endpoints set up by Bookline |
Planned for later versions: WhatsApp conversations, lodging venues, booking events (for example, a booking cancelled days after the call), and managing your endpoints from the portal.
Related
Section titled “Related”- Event catalogue: every event, its fields and sample payloads.
- Verify signatures: Python and Node examples.
- Responses and retries: what to answer, retries, ordering and limits.
- Security: URL, secret rotation, IPs and contact data.
- FAQ.
