Webhook scope levels
Webhooks can be created at multiple levels of scope, each determining which events they apply to:- User-level: Triggers for all event types owned by the user (excluding team-managed types).
- Event-type level: Triggers only for a specific event type. Useful for fine-grained control.
-
Team-level:
Applies to team event types (i.e., Collective and Round Robin) within the specified team.
In the case of Managed events, bookings are made on the child event types, not the parent team event. Because of this, team-level webhooks will not trigger for managed events unless one of the following is true:
- You create a webhook directly on the parent event type (recommended), or
- You create individual webhooks on the child event types (owned by users).
- Organization-level: Applies to all team event types across all teams within the organization.
Creating a webhook subscription
To create a new webhook subscription, visit/settings/developer/webhooks and proceed to enter the following details:
-
Subscriber URL: The listener URL where the payload will be sent to, when an event trigger is triggered.
The subscriber URL must meet the following requirements:
- Cal.com SaaS: Only HTTPS URLs are accepted. HTTP, private/internal IP addresses (e.g.,
10.x.x.x,192.168.x.x,127.0.0.1), andlocalhostare blocked. - Self-hosted: Both HTTP and HTTPS URLs are accepted, and private IP addresses are allowed for internal webhooks.
- All environments: Cloud metadata endpoints (e.g.,
169.254.169.254) and non-HTTP protocols (e.g.,ftp://,file://) are always blocked.
- Cal.com SaaS: Only HTTPS URLs are accepted. HTTP, private/internal IP addresses (e.g.,
-
Event triggers: You can decide which triggers specifically to listen to. Currently, we offer listening to
Booking Cancelled,Booking Created,Booking Rescheduled,Booking Rejected,Booking Requested,Booking Paid,Booking Payment Initiated,Booking No-Show Updated,Meeting Started,Meeting Ended,Recording Ready,Recording Transcription Generated,Instant Meeting Created,Out of Office Created,After Hosts Cal Video No-Show,After Guests Cal Video No-Show,Form Submitted, andForm Submitted (No Event). - Secret: You can provide a secret key with this webhook and then verify it on the subscriber URL when receiving a payload to confirm if the payload is authentic or adulterated. You can leave it blank, if you don’t wish to secure the webhook with a secret key.
- Custom Payload: You have the option to customize the payload you receive when a subscribed event is triggered.
Expectations with the triggers
Example webhook payloads
Most webhook events use a nested payload format with booking details inside apayload object. The MEETING_STARTED and MEETING_ENDED events use a different flat format where booking fields are at the top level.
Booking events (nested format)
Events likeBOOKING_CREATED, BOOKING_CANCELLED, BOOKING_RESCHEDULED, and most other triggers use this format:
Meeting started / meeting ended (flat format)
MEETING_STARTED and MEETING_ENDED webhooks use a flat payload format where booking fields are at the top level alongside triggerEvent, rather than nested inside a payload object. These webhooks are delivered at the scheduled start and end time of the meeting respectively.
MEETING_STARTED and MEETING_ENDED webhooks do not support custom payload templates. They always send the full booking data in the flat format shown above.MEETING_STARTED and MEETING_ENDED webhooks for that booking are automatically cancelled.
Subscriber URL requirements
Cal.com validates webhook subscriber URLs to protect against server-side request forgery (SSRF). The validation rules depend on whether you are using Cal.com Cloud or a self-hosted instance. Cal.com Cloud:- The subscriber URL must use HTTPS.
- URLs pointing to private or internal IP addresses (such as
10.x.x.x,172.16.x.x,192.168.x.x, or127.0.0.1) are blocked. - Cloud metadata endpoints (such as
169.254.169.254) are blocked. - Hostnames that resolve to private IP addresses via DNS are also blocked.
- Both HTTP and HTTPS URLs are accepted, so you can use internal services as webhook targets.
- Private IP addresses are allowed for internal webhooks.
- Cloud metadata endpoints are still blocked for security, since self-hosted instances may run on cloud infrastructure.
Verifying the authenticity of the received payload
- Simply add a new secret key to your webhook and save.
- Wait for the webhook to be triggered (event created, cancelled, rescheduled, or meeting ended)
-
Use the secret key to create an
hmac, and update that with the webhook payload received to create an SHA256. -
Compare the hash received in the header of the webhook
(X-Cal-Signature-256)with the one created using the secret key and the body of the payload. If they don’t match, the received payload was adulterated and cannot be trusted.
Adding a custom payload template
Customizable webhooks are a great way reduce the development effort and in many cases remove the need for a developer to build an additional integration service. An example of a custom payload template is provided here:{{type}} represents the event type slug and {{title}} represents the title of the event type. Note that the variables should be added with a double parenthesis as shown above. Here’s a breakdown of the payload that you would receive via an incoming webhook, with an exhaustive list of all the supported variables provided below:
Webhook variable list
Organizer Structure
Attendee Structure
Webhooks for seated event types
When you use seated event types, multiple attendees can book the same time slot. In this case, webhook payloads include only the attendee whose booking triggered the event — not all attendees for that slot. This makes it easier to process individual bookings in your automation without needing to filter through other attendees. For cancellation events (BOOKING_CANCELLED), the payload includes all attendees for the time slot, since the cancellation may affect the entire booking.
This applies to all webhook triggers except
BOOKING_CANCELLED. If your event type does not use seats, the attendees array behaves the same as before — it contains the booker and any guests.