Webhooks
Calendly sends events to your server when they happen. Events include bookings, cancellations, no-shows, event type changes, meeting recaps, routing form submissions and contacts. You do not have to poll the API. To receive events, you create a webhook subscription. This page calls it a subscription.
How it works: create a subscription → an event happens, for example,
someone books → Calendly sends the signed event to your callback URL in a POST request → your server
verifies it, returns 2xx, and processes it.
At a glance
Get a webhook working
Follow the numbered steps to create a subscription, then receive, verify and test a delivery. If you already have webhooks working, go to Production considerations.
1. Create a subscription
To receive events, create a subscription. Give it a public callback URL and the events you want.
Before you create one: organization scope requires an organization admin
or owner role. See Check requirements.
OAuth apps: omit signing_key. Calendly then signs deliveries with your
app’s signing key. See Which key signs a delivery.
signing_key can be any non-empty string. Calendly does not check its
strength, so use a long random value. For example, generate 32 random bytes and
encode them as hex.
You can subscribe to events in six families: invitees, invitee no-shows, event types, meeting recaps, routing form submissions and contacts. Each event allows specific subscription scopes and needs a specific auth scope on your token. See the full event table on Create Webhook Subscription. It lists each event, the subscription scopes it allows, and the auth scope it needs.
Callback URL requirements
Your url must include a scheme. It must resolve to a public address.
Use HTTPS. Calendly accepts plain http://, but deliveries contain invitee
personal data, such as names, email addresses and answers to booking questions.
The signature proves that a delivery is authentic. It does not keep the data
confidential. Over HTTP, the data crosses the network in cleartext.
One subscription per callback URL
In one organization, each callback URL can have only one subscription for each
user. You get this error when you create a second subscription with the same
url, organization and user. You also get it when you omit user both
times:
The events, scope and group do not change this. For example, you cannot
subscribe …/webhooks/calendly to invitee.created and then create a second
subscription on the same URL for invitee.canceled. Put all the events on one
subscription, or use different paths. A disabled subscription also keeps its
URL. Delete it before you create a new subscription on the same URL.
Different organizations can use the same callback URL. A multi-account app can send the deliveries for all its customers to one endpoint. See Route deliveries in a multi-account app.
Save the right fields
A 201 response returns the subscription. Save uri and creator.
- Use
urito get or delete the subscription. - If you serve multiple Calendly accounts, store
creatortoo. It connects deliveries to the subscription owner. See Route deliveries in a multi-account app.
The names are different. The subscription calls this field creator. The
delivery calls the same value created_by. The subscription has no
created_by field.
signing_key is write-only. You send it when you create the subscription,
and no endpoint returns it. Store it at that time, because you cannot read it
back.
2. Check requirements
Webhooks are available on every plan, including Free. You can subscribe only to
events from features that the organization owner’s plan includes.
Create Webhook Subscription
lists the events that need a feature. If the plan does not include the feature,
the API returns 403 Permission Denied.
Who can create each scope
You can create a subscription at user, group or organization scope.
If you do not have the role, the API returns:
To check your role, call List Organization Memberships:
A member can subscribe to almost every event at user scope. The exception is
routing_form_submission.created, which is organization-only, so members
cannot subscribe to it. meeting_recap.* events are the reverse. They are
user-only, so an admin must also subscribe to them at user scope.
Choose your authentication
A subscription that you create with an OAuth token belongs to the user who
connected your app. A user-scope subscription must name that user, which is
the owner in the token response.
OAuth apps: your webhook signing key is shown once. Calendly shows the
client secret and the webhook signing key only when you create the app. You
cannot view them again, including when you edit the app. If you lose the
webhook signing key, create your subscriptions again with your own
signing_key. Calendly then signs those deliveries with that key. See
Which key signs a delivery.
3. What a delivery looks like
Each delivery is one JSON object with the same four top-level fields. Calendly does not batch deliveries. Each request contains one event, not an array.
The person who triggered the event is in payload. For invitee.* events, the
payload is an Invitee object. payload.uri is its canonical resource reference.
Use it to fetch the full invitee, and to
deduplicate deliveries.
For the full payload fields of each event, see Get sample webhook data.
event_type.* payloads include host-only fields. An event_type.updated
delivery contains the full Event Type object, including internal_note and
secret. Every app that subscribes to the event receives them.
Headers
No header gives a delivery ID, attempt number, subscription ID or event
type. Calendly-Webhook-Signature is the only Calendly-specific header.
Deliveries can contain other headers, such as tracing headers. They are not part of the webhook contract, and they can change without notice. Do not build on them.
4. Verify the signature
Verification is optional, but we strongly recommend it. Without it, anyone who learns your callback URL can send you fake events.
- Signing key: the secret that you set (personal access token) or copied from your app (OAuth). Calendly never sends it in a delivery. It sends only the signature.
- Signature: in the
Calendly-Webhook-Signatureheader, in the formatt=<unix-timestamp>,v1=<hex-hmac>. - HMAC input:
HMAC-SHA256(signing_key, "<t>." + raw_body), hex-encoded.
JSON.stringify(JSON.parse(body)) returns the same bytes for simple payloads.
Verification then passes in testing and fails in production on accented names,
escaped characters, decimals or large numbers. Capture the raw body before
you parse the JSON.
An uncaught exception in your handler becomes a 500. Calendly counts that as
a failed delivery, and repeated failures disable your subscription. See
Delivery, retries and failures. A malformed
or forged signature header is a normal input, not an exception. Return 401.
Which key signs a delivery
A delivery does not identify the key that signed it. If your app manages subscriptions from both personal access tokens and OAuth, store the key with each subscription when you create it.
Do not use v1 as an idempotency key. Calendly generates the signature for
each delivery attempt, so it does not identify the event.
Example code
The three examples use the same pattern. Each one keeps the raw body, compares the HMAC in constant time, and rejects old timestamps.
Each example treats a missing or invalid signature as normal input. Each one accepts timestamps up to 180 seconds old. Change the tolerance to suit your clock skew.
To check your code against a real signature, send a signed test event.
Rotate a signing key
You cannot change the key of a personal access token subscription after you
create it. You also cannot create a second subscription on the same callback
URL for the same user (409). To rotate the key without downtime, use a
second subscription. The new subscription needs a different callback URL. For
example, add a path segment or a query parameter: …/webhooks/calendly?v=2.
- Create a second subscription on the new callback URL.
- Set your endpoint to accept either key.
- Delete the old subscription.
- Remove the old key from your endpoint.
An OAuth app has one signing key for all its webhook subscriptions. You cannot rotate it.
5. Test your endpoint
Send a signed test event
The endpoint tester in Calendly sends a sample event to your callback URL. It shows the request it sent and the response from your endpoint. It does not create a subscription, and it does not need a token or a booking.
The tester signs each test event with a test signing key. It sends
Calendly-Webhook-Signature the same way a real delivery does. Copy the test
signing key into your endpoint before you send, so your verification code runs
during the test.
- Open the Webhooks tab in Developer tools.
- Copy the test signing key into your endpoint.
- Enter your callback URL.
- Select an event.
- Send the test event.
- Read the result.
When you create a subscription, replace the test key with your real signing key.
Read the result as you would a real delivery:
- Any
2xxmeans your endpoint accepted the event. - A
401or403usually means the signature check failed. See Verify the signature. - A timeout or other non-
2xxresponse counts as a failed delivery. See Delivery, retries and failures.
The tester sends only to public https URLs. To test a local server, expose it
through a tunnel first. The tester has no subscription,
so a 410 response deletes nothing. You can send up to 50 test events a
minute.
Inspect payload shapes without booking
Call Get sample webhook data:
This returns real data from your account, not a synthetic fixture. It can include live meeting links and real attendee email addresses. Treat the response as production data. Do not commit it to fixtures, and do not paste it into tickets without redacting it.
Trigger real events from the API
Fastest test: subscribe to event_type.updated, then update an event type
with PATCH /event_types/{uuid}.
A PATCH request that sends an existing value also fires the event, so you do
not have to change anything. You get a delivery without a booking, and no
invitee receives an email.
You can trigger these events on demand:
About POST /invitees:
- It requires
invitee.timezone. It also requiresevent.location_configuration.kindwhen the event type has a configured location. - It has its own rate limits, separate from the general API limit. See Rate Limits.
Local development
Calendly cannot reach localhost, and the endpoint tester cannot either. Use a
tunnel to expose your local server:
You cannot change a subscription’s callback_url. Temporary tunnel
hostnames change each time you restart the tunnel, and some expire in less than
an hour. When your tunnel URL changes, the subscription points at a dead
address. Delete it
and create a new one.
Until you do, deliveries fail and the 24-hour
retry window starts.
Production considerations
The rest of this page covers what you need before you go live: multi-account routing, failure handling, idempotency, monitoring and troubleshooting.
6. Route deliveries in a multi-account app
Deliveries do not contain an organization ID or a subscription ID. If you serve multiple Calendly accounts, use the subscription’s creator:
At create: save the subscription’s
creator→ on each delivery: matchcreated_byto it → that is the connected account.
Do not use the callback URL to identify the customer when multiple customers share the same endpoint.
7. Delivery, retries and failures
Respond fast: verify the signature → store the raw body → return 2xx →
process asynchronously.
Any response other than 2xx is a failure, including 3xx. Do not redirect
your callback URL.
A 410 Gone response deletes the subscription. Calendly does not retry the
delivery, and it does not send later events to that subscription. Return 410
only when you want to remove the subscription.
When deliveries fail: a delivery fails → Calendly retries with exponential backoff → still failing after 24 hours → Calendly disables the subscription → you delete it and create a new one.
- The 24 hours start at the first failed delivery, not at each failed
delivery. Calendly records that time in
retry_started_at. - Any successful delivery resets the clock.
- If deliveries still fail after 24 hours, the next failed attempt disables the subscription.
- Do not build logic on the exact delay between attempts.
- A failed delivery does not stop later events. Calendly continues to send other events while it retries the failed one.
Monitor the right field
Poll GET /webhook_subscriptions/{uuid},
or alert when events that you expect do not arrive. Verification failures and
handler crashes also count as failed deliveries. A subscription that returns
401 for every event runs the same 24-hour clock as one that is offline.
Duplicates and ordering
Make your handler idempotent. Calendly can deliver the same event more than once, and deliveries can arrive in any order. The delivery does not contain a delivery ID or an attempt ID.
For invitee.* events, use payload.uri + event as the deduplication key.
payload.uri identifies the invitee resource. For other event families, do not
assume one key works for every event. Make the processing itself idempotent.
If more than one of your subscriptions matches an event, each subscription can receive its own delivery. These are separate deliveries, not retries.
When a host cancels an event, Calendly sends one invitee.canceled delivery
for each invitee who had not already canceled.
A reschedule creates a new invitee with a new payload.uri. Your
deduplication key must not merge a reschedule into the original booking. See
Handling invitee reschedules with webhooks.
8. Troubleshoot
Not receiving anything
First, send a signed test event from the endpoint tester. If the test succeeds, the problem is the subscription, not your endpoint.
Receiving, but something is wrong
9. Production checklist
- Verify every delivery against the raw body. Return
401; do not raise an exception. - Return
2xxbefore you process. Do the work in a queue. - Make processing idempotent. See Duplicates and ordering.
- Do not make correctness depend on delivery order.
- If you serve multiple accounts, store
creatorfor each customer when you create the subscription. - Do not redirect the callback URL. A
3xxcounts as a failure. - Do not return
410unless you want Calendly to delete the subscription. - Monitor
stateandretry_started_at. Alert when expected events do not arrive. - Store signing keys as secrets. Do not put them in source code.
- Use HTTPS. Payloads contain invitee personal data.