Webhooks
Send a signed JSON POST to a URL you control each time a dCal booking is created, rescheduled or cancelled. Add a webhook, pick its events, test it with Ping, read its deliveries, and learn how delive
A webhook tells another system the moment something happens to a booking: dCal sends a signed JSON POST to a URL you control when a booking is created, rescheduled or cancelled. Use it to update a CRM, start an automation or post a message to your team.
Webhooks belong to the whole workspace. One webhook receives the events of every booking in it: any host, any event, personal or team.
This page covers setting a webhook up. What each message contains is on Payload reference, and how to check it came from dCal is on Verify the signature.
Before you start
You are an admin or owner of your dCal workspace. Only they see API and webhooks in the left menu.
You have an endpoint on the public internet that starts with
https://and answers within 10 seconds.
Step 1: In the left menu, click API and webhooks > Webhooks, or open app.dcal.ai/admin/developers/webhooks. Click Add webhook at the top right of the page.

Step 2: In Subscriber URL, paste your endpoint. Under Events, tick the events you want: Booking created, Booking rescheduled and Booking cancelled. Each tick shows its event name beside it, such as booking.created, the name your endpoint receives. Booking created is ticked for you. Click Add webhook.

Tick at least one event. A webhook with no events never receives anything.
Write down which events you ticked. The list of webhooks shows only the URL, and the events cannot be edited later. To change them, add a new webhook with the right events and delete the old one.
The URL must start with
https://and point to a public address. Addresses such aslocalhost, private networks and names ending in.localor.internalare refused, and so is a name that does not resolve. dCal checks this when you add the webhook and again before every delivery. A refused URL shows a message that starts with Subscriber URL rejected.
Step 3: Copy the signing secret now. It appears once, above the list of webhooks, and starts with whsec_. Store it in your server's settings: your endpoint uses it to verify the signature of every delivery.
⚠️ Note: dCal never shows the signing secret again. If you lose it, add a new webhook for the same URL, update your server with the new secret, then delete the old webhook.
Step 4: Click Ping on the webhook's row. dCal sends a signed test message, {"event":"ping","data":{"ok":true}}, to your URL and shows the result under the row: Delivered with the status code, for example Delivered (200), only when your endpoint answers with a 2xx status. Any other answer shows Failed, without the status code or a reason; check your endpoint's logs to see what it returned.

Delivered with a status code, for example Delivered (200)
Your endpoint answered with a 2xx status. You are ready.
Failed
Your endpoint answered, but not with a 2xx status. The status code is not shown here: check your endpoint's logs.
Subscriber unreachable.
dCal could not connect, or your endpoint took longer than 10 seconds.
URL is not allowed.
The URL no longer resolves to a public address.
A ping is a test only: it does not appear in the webhook's deliveries.
Step 5: Click Deliveries to open the webhook's history. It lists the latest 20 real deliveries, newest first, each with its event, a mark for delivered or failed, the status code or error, and the time. Until a real booking event fires, it reads No deliveries yet.

The events
booking.created
Booking created
A booking is made: on a booking page or team page, by you from Bookings, by a Dapta agent or through the API. It fires for confirmed bookings and for requests waiting for your OK; the status field tells them apart.
booking.rescheduled
Booking rescheduled
The guest moves the booking from the link in their email, or your system moves it through the API.
booking.cancelled
Booking cancelled
The guest, you or the API cancels a booking. It also fires when you decline a request.
Every booking event carries the booking's campaign. When the booking was made on a booking page from a link with UTM tags, each of its events carries them in
utm. See Track where bookings come from.Declined requests arrive as
booking.cancelled. Abooking.cancelledfor a booking whosebooking.createdcame withstatuspendingmeans that request is off, whether you declined it or the guest withdrew it.A move made through the Cal.com-compatible API gives the booking a new
uid. Itsbooking.rescheduledcarries the newuidand the old one inrescheduledFromUid, with no times. See Payload reference.Confirming a request does not reach the webhooks you add here. dCal has a
booking.confirmedevent, but the Add webhook dialog does not offer it, and API keys cannot create webhooks. If you work with requests, read the booking's currentstatusthrough the REST API to see when it is confirmed.
How a delivery behaves
dCal sends a
POSTwith a JSON body and the headerscontent-type,X-Slate-Event,X-Slate-SignatureandX-Slate-Delivery. See Payload reference.Your endpoint has 10 seconds to answer. Any 2xx status counts as delivered. Redirects are not followed and count as a failure, like 4xx and 5xx answers, timeouts and network errors.
A failed delivery is tried again, with a wait of about 1 second that doubles after each failure, up to 15 minutes between attempts. dCal keeps trying until the delivery has been failing for 24 hours. Then it is marked as failed and not sent again, and its Deliveries list gets a line that starts with
Gave up after.The events about one booking reach your endpoint one at a time, in the order they happened. While one waits for a retry, the ones after it wait too, so a
booking.cancellednever arrives before thebooking.createdit follows.A slow or failing endpoint only delays its own deliveries. Emails, calendar updates and your other webhooks keep going.
A booking never waits for a webhook: deliveries go out in the background.
Nothing is sent to a webhook while its active switch is off, and messages waiting for it are dropped.
⚠️ Note: A delivery can arrive more than once, for example when your endpoint answered after dCal stopped waiting. Every attempt of one delivery carries the same
X-Slate-DeliveryID: keep the IDs you already handled and skip repeats.
💡 Tip: If your endpoint was down for more than 24 hours, catch up with the REST API: list the bookings for that period and compare them with what you received.
Pause or delete a webhook
The active switch on the row pauses and resumes deliveries. You see Webhook updated.
Delete asks Delete this webhook? and warns that no more events will be sent to that URL and its signing secret is gone for good. Confirm with Delete. You see Webhook deleted.
One webhook for the whole workspace
A webhook cannot be limited to one host or one event: it receives every booking in the workspace. To act on some of them only, filter on your side. For a personal event, booking.created carries the event's name in title: keep the uid of the bookings you care about, and match the later booking.rescheduled and booking.cancelled on that uid.
Related
Payload reference: the body and headers of each event.
Verify the signature: Node.js and Python examples.
HubSpot: send bookings to HubSpot without code.
REST API: read and change bookings from your system.
Last updated