timezone, hours, slot_minutes, calendar_id, send_invites.
SCOPE · number For an owned number assigned to an agent, send only return_url to start Google Calendar consent. Open the returned url for the calendar owner. A competing calendar is refused. Read the number’s status after consent to confirm connection.
Read the compact AI rules
Receive confirmed calendar mutations and their final booking results after a call ends.
Guide: API reference ·
Topic: Booking results event
The important part
- timeline lists confirmed actions; final shows the result per booking UID.
- Count active final rows. Creating then cancelling leaves zero active bookings.
call.bookings is a post-call webhook event for confirmed Google Calendar or
Cal.com booking changes. It is sent only after an ended call has at least one
successful create, reschedule or cancellation. A lookup, available slot,
already-existing booking, failed write or statement by the agent does not create
this event.
Use timeline to understand the actions and final for the resulting bookings.
For example, creating an appointment and then cancelling it produces two actions
and zero active bookings. Counting actions would give the wrong result.
Where the event is sent
It uses the existing primary and secondary number webhooks, inherited call webhook and configured post-call automation destinations. Identical destination URLs are deduplicated. No new switch, API endpoint or API-key scope is needed. The engine queuescall.completed before call.bookings, but network delivery can
arrive in either order. Existing call.completed.bookings[] is unchanged. SMS keeps
the existing sms.booking event per reply because a message thread has no hang-up
boundary. The primary URL saved through the number webhook API
also receives applicable SMS booking events.
Payload
The body is flat and all fields below are present. IDs and phone fields may be null when unavailable. The payload has no account field: identify the account from your trusted receiver configuration and the signing secret that verified it.Timeline fields
Each action hasaction, booking_uid, start, end, attendee_name,
attendee_email, service, timezone and at.
The booking fields use the same public projection as
call.completed.bookings[], with at added. Preserve nulls; do not invent an end
time or attendee. These fields do not confirm that an email or SMS was delivered.
Final fields
Each result containsbooking_uid, status, start, end, attendee_name,
attendee_email, service and timezone. status is active or cancelled.
The last confirmed action wins; missing values retain earlier known values from
this call. A Cal.com reschedule can replace a UID: final resolves that replacement
to one resulting booking, while the timeline retains the original action IDs.
final describes changes made during this call. It is neither a full calendar
inventory nor a count of newly acquired customers. A moved existing booking can
appear as one active result. Cancellation rows remain visible for reconciliation.
Example: create, then move
Fictional identifiers and contact details. The delivery signature is computed over the actual transmitted bytes; the formatted body below has no reusable signature.webhooks, with create/cancel, move/cancel, existing-booking, two-UID,
replacement-UID and nullable-field examples. It is not a callable API path.
Verify before processing
RequireX-Nixflex-Signature: t=UNIX_SECONDS,v1=HEX_HMAC. Verify HMAC-SHA256 over
timestamp.raw_body using the exact received bytes and the privately provisioned
account signing secret. Apply a short timestamp tolerance and constant-time digest
comparison before JSON parsing. See the receiver guide and verifier.
Unlike legacy event paths that may send without a signature if material is missing,
call.bookings requires signing material and retries instead of sending unsigned.
Your receiver should reject or quarantine any missing or invalid signature.
Deduplicate and count active results
Within each receiver, atomically deduplicate(account, event, call_id) and
store the verified event with durable downstream work before acknowledging it.
Derive account identity from trusted configuration, not arbitrary request data.
If an identifier needed for deduplication is null, quarantine the event for
reconciliation instead of collapsing all unknown calls into one key.
The event discriminator matters: the same call can produce call.started,
call.completed and call.bookings. Keep a unique database constraint or atomic
insert on the complete key. A check followed by a separate insert can race.
Return a prompt 2xx for a verified duplicate that was already durably stored.
Delivery timing and retries
The normal initial queue delay is 60 seconds. There are up to five queue attempts, with retry waits of 5, 5, 5 and 60 minutes. Network errors, 408, 429 and 5xx are retryable; other 4xx end delivery. A queue attempt can also retry a transport error internally, so five queue attempts is not a maximum of five HTTP requests. The current queue treats 3xx as delivered. Return 2xx directly after durable acceptance; do not use redirects. A queued event can arrive more than once, arrive late or fail to arrive. Retention, ownership and deletion safeguards can stop delivery; neither delivery nor the schedule is guaranteed. An already-dispatched calendar action can finish just after hang-up. Only the post-call snapshot waits for that result, bounded at 30 seconds. It does not start another calendar write or add webhook HTTP work to live speech. Unknown results are not reported as confirmed bookings.Related pages
- Webhook events overview
- Build a signed event receiver
- Booking approval and notification wording
- Read a call