> Calendly developer docs. For page Markdown, append .md to any URL.
> Index: https://developer.calendly.com/llms.txt
> API catalog: https://developer.calendly.com/.well-known/api-catalog
> OpenAPI: https://developer.calendly.com/openapi/calendly-api.yaml
> OAuth authorization server: https://calendly.com/.well-known/oauth-authorization-server
> MCP protected resource: https://mcp.calendly.com/.well-known/oauth-protected-resource
> Scheduling MCP endpoint: https://mcp.calendly.com
> Docs search MCP: https://developer.calendly.com/_mcp/server

# 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

|                   |                                                                                                                                                                                                                           |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| API base          | `https://api.calendly.com`                                                                                                                                                                                                |
| Resource          | `/webhook_subscriptions`                                                                                                                                                                                                  |
| Plans             | You can subscribe to an event only if the organization owner's plan includes the feature that the event comes from. See [Check requirements](#check-requirements).                                                        |
| Your endpoint     | Your callback URL. You send it as `url`, and the webhook subscription returns it as `callback_url`. It must be public, and you cannot change it. In one organization, subscriptions for the same user cannot share a URL. |
| Signature         | `Calendly-Webhook-Signature: t=<unix>,v1=<hex>`. Verify `HMAC-SHA256(key, "<t>." + raw_body)`.                                                                                                                            |
| Signing key       | Write-only. Store it when you create the subscription.                                                                                                                                                                    |
| Success response  | Return `2xx`. Redirects and all other status codes count as failures.                                                                                                                                                     |
| `410 Gone`        | Deletes the subscription immediately. Calendly does not retry.                                                                                                                                                            |
| Timeouts          | 10 seconds to connect, 15 seconds to read                                                                                                                                                                                 |
| Retries           | Exponential backoff for up to 24 hours. Do not depend on exact retry timing.                                                                                                                                              |
| Failure state     | After 24 hours of unresolved failures, Calendly disables the subscription. To receive events again, delete it and create a new one.                                                                                       |
| Delivery handling | Expect duplicates. Do not depend on arrival order.                                                                                                                                                                        |
| Idempotency       | For `invitee.*`, use `payload.uri` + `event`. Other event families can need a different strategy.                                                                                                                         |

## 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](#production-considerations).

---

## 1. Create a subscription

To receive events, [create a subscription](/api-docs/calendly-api/webhooks/create-webhook-subscription).
Give it a public callback URL and the events you want.

> **Note**
>
> **Before you create one:** `organization` scope requires an organization admin
> or owner role. See [Check requirements](#check-requirements).

```http
POST /webhook_subscriptions
Authorization: Bearer <token>
Content-Type: application/json

{
  "url": "https://your-app.example.com/webhooks/calendly",
  "events": ["invitee.created", "invitee.canceled"],
  "organization": "https://api.calendly.com/organizations/<uuid>",
  "scope": "organization",
  "signing_key": "<A_SECRET_YOU_CHOOSE_AND_STORE>"
}
```

**OAuth apps: omit `signing_key`.** Calendly then signs deliveries with your
app's signing key. See [Which key signs a delivery](#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](/api-docs/calendly-api/webhooks/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.

| URL                             | Result                                     |
| ------------------------------- | ------------------------------------------ |
| `https://example.com/hook`      | accepted                                   |
| `http://example.com/hook`       | accepted                                   |
| a hostname that doesn't resolve | `400` — `must resolve to a public address` |
| `127.0.0.1`, `192.168.x.x`      | `400` — `cannot be for a private network`  |
| `localhost`, or no scheme       | `400` — `invalid`                          |

**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:

```json
{ "title": "Already Exists", "message": "Hook with this url already exists" }
```

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](#route-deliveries-in-a-multi-account-app).

### Save the right fields

A `201` response returns the subscription. **Save `uri` and `creator`.**

```json
{
  "resource": {
    "uri": "https://api.calendly.com/webhook_subscriptions/<uuid>",
    "callback_url": "https://your-app.example.com/webhooks/calendly",
    "state": "active",
    "retry_started_at": null,
    "events": ["invitee.created", "invitee.canceled"],
    "scope": "organization",
    "organization": "https://api.calendly.com/organizations/<uuid>",
    "user": null,
    "group": null,
    "creator": "https://api.calendly.com/users/<uuid>"
  }
}
```

* Use `uri` to [get](/api-docs/calendly-api/webhooks/get-webhook-subscription)
  or [delete](/api-docs/calendly-api/webhooks/delete-webhook-subscription) the
  subscription.
* If you serve multiple Calendly accounts, store `creator` too. It connects
  deliveries to the subscription owner. See
  [Route deliveries in a multi-account app](#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](/api-docs/calendly-api/webhooks/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.

| Subscription scope | Who can create it                                         |
| ------------------ | --------------------------------------------------------- |
| `user`             | Any member, for themselves only                           |
| `group`            | An organization admin or owner, or an admin of that group |
| `organization`     | An organization admin or owner                            |

If you do not have the role, the API returns:

```json
{ "title": "Permission Denied", "message": "You do not have permission" }
```

To check your role, call
[List Organization Memberships](/api-docs/calendly-api/organizations/list-organization-memberships):

```bash
curl -s "https://api.calendly.com/organization_memberships?user=<YOUR_USER_URI>" \
  -H "Authorization: Bearer $CALENDLY_TOKEN" | jq '.collection[].role'
```

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

|                    | Personal access token                                                                                       | OAuth app                                                                                                                |
| ------------------ | ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| **Token**          | Create under [Personal access tokens](/docs/authentication/how-to-authenticate-with-personal-access-tokens) | [Create an OAuth app](/docs/authentication/creating-an-oauth-app), run the OAuth flow, and exchange the code for a token |
| **Org / user URI** | [`GET /users/me`](/api-docs/calendly-api/users/get-current-user) → `current_organization`, `uri`            | In the token response as `organization` and `owner`                                                                      |
| **Signing key**    | You choose one when you create each subscription.                                                           | Calendly generates one when you create your app. Copy it then.                                                           |

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.

> **Warning**
>
> **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](#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.

```json
{
  "event": "invitee.created",
  "created_at": "2026-09-21T16:45:39.000000Z",
  "created_by": "https://api.calendly.com/users/<uuid>",
  "payload": {
    "uri": "https://api.calendly.com/scheduled_events/<uuid>/invitees/<uuid>",
    "email": "invitee@example.com",
    "name": "Jordan Rivera",
    "status": "active",
    "scheduled_event": { "uri": "…", "start_time": "…" }
  }
}
```

| Field        | Meaning                                                                           |
| ------------ | --------------------------------------------------------------------------------- |
| `event`      | Which event fired                                                                 |
| `created_at` | When the event occurred                                                           |
| `created_by` | The user who created the **subscription**, not the person who triggered the event |
| `payload`    | Shape varies by event family                                                      |

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](#duplicates-and-ordering).

For the full payload fields of each event, see
[Get sample webhook data](/api-docs/calendly-api/webhooks/get-sample-webhook-data).

> **Warning**
>
> **`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

| Header                       | Example                     | Always present                               |
| ---------------------------- | --------------------------- | -------------------------------------------- |
| `Calendly-Webhook-Signature` | `t=1789752871,v1=012f4d47…` | Only when the subscription has a signing key |
| `User-Agent`                 | `Calendly`                  | Yes                                          |
| `Content-Type`               | `application/json`          | Yes                                          |
| `Accept-Encoding`            | `gzip`                      | Yes                                          |

**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-Signature` header, in the format
  `t=<unix-timestamp>,v1=<hex-hmac>`.
* **HMAC input**: `HMAC-SHA256(signing_key, "<t>." + raw_body)`, hex-encoded.

> **Hash the raw bytes, exactly as received**
>
> `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.

> **Return a status code. Do not raise an exception.**
>
> 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](#delivery-retries-and-failures). A malformed
> or forged signature header is a normal input, not an exception. Return `401`.

### Which key signs a delivery

| Subscription created with | `signing_key` sent | Signed with                         |
| ------------------------- | ------------------ | ----------------------------------- |
| Personal access token     | yes                | that key                            |
| Personal access token     | omitted            | nothing (no signature header)       |
| OAuth app                 | omitted            | your app's signing key              |
| OAuth app                 | yes                | that key, instead of your app's key |

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.

**`Node (Express)`**

```javascript title="Node (Express)"
import crypto from "crypto";
import express from "express";

const app = express();
const SIGNING_KEY = process.env.CALENDLY_SIGNING_KEY;

function verify(header, body, tolerance = 180) {
  if (!header) return false;
  const parts = {};
  for (const piece of header.split(",")) {
    const i = piece.indexOf("=");
    if (i === -1) continue;
    parts[piece.slice(0, i).trim()] = piece.slice(i + 1).trim();
  }
  const { t, v1 } = parts;
  if (!t || !v1 || !/^\d+$/.test(t)) return false;

  const computed = crypto.createHmac("sha256", SIGNING_KEY)
    .update(Buffer.concat([Buffer.from(`${t}.`), body]))
    .digest("hex");
  const a = Buffer.from(computed), b = Buffer.from(v1);
  if (a.length !== b.length || !crypto.timingSafeEqual(a, b)) return false;

  return Math.abs(Date.now() / 1000 - Number(t)) <= tolerance;
}

// express.raw preserves the bytes; express.json would break the signature
app.post("/webhooks/calendly", express.raw({ type: "application/json" }),
  (req, res) => {
    if (!verify(req.get("Calendly-Webhook-Signature") || "", req.body))
      return res.sendStatus(401);
    // enqueue req.body, then acknowledge
    res.sendStatus(200);
  });
```

**`Python (Flask)`**

```python title="Python (Flask)"
import hashlib, hmac, os, time
from flask import Flask, request

app = Flask(__name__)
SIGNING_KEY = os.environ["CALENDLY_SIGNING_KEY"]

def verify(header, body, tolerance=180):
    if not header:
        return False
    parts = {}
    for piece in header.split(","):
        key, _, value = piece.partition("=")
        if value:
            parts[key.strip()] = value.strip()
    t, expected = parts.get("t"), parts.get("v1")
    if not t or not expected or not t.isdigit():
        return False
    signed = f"{t}.".encode() + body
    computed = hmac.new(SIGNING_KEY.encode(), signed, hashlib.sha256).hexdigest()
    # compare bytes: compare_digest raises TypeError on non-ASCII str input
    if not hmac.compare_digest(computed.encode(), expected.encode()):
        return False
    return abs(time.time() - int(t)) <= tolerance

@app.post("/webhooks/calendly")
def calendly_webhook():
    raw = request.get_data()          # raw bytes, before JSON parsing
    if not verify(request.headers.get("Calendly-Webhook-Signature", ""), raw):
        return "", 401
    # enqueue raw for background processing, then acknowledge
    return "", 200
```

**`Ruby (Sinatra)`**

```ruby title="Ruby (Sinatra)"
require 'openssl'
require 'sinatra'

SIGNING_KEY = ENV.fetch('CALENDLY_SIGNING_KEY')

# Ruby 2.7+ for OpenSSL.fixed_length_secure_compare. On 2.6 and earlier use
# Rack::Utils.secure_compare or ActiveSupport::SecurityUtils.
def calendly_signature_valid?(header, raw_body, tolerance: 180)
  return false if header.nil? || header.empty?

  parts = header.split(',').each_with_object({}) do |piece, acc|
    key, _, value = piece.partition('=')
    acc[key.strip] = value.strip unless value.empty?
  end
  t, v1 = parts['t'], parts['v1']
  return false if t.nil? || v1.nil? || !t.match?(/\A\d+\z/)

  expected = OpenSSL::HMAC.hexdigest('SHA256', SIGNING_KEY, "#{t}.#{raw_body}")
  return false unless expected.bytesize == v1.bytesize
  return false unless OpenSSL.fixed_length_secure_compare(expected, v1)

  (Time.now.to_i - t.to_i).abs <= tolerance
end

post '/webhooks/calendly' do
  raw = request.body.read            # raw bytes, before JSON parsing
  halt 401 unless calendly_signature_valid?(
    request.env['HTTP_CALENDLY_WEBHOOK_SIGNATURE'], raw)
  # enqueue raw for background processing, then acknowledge
  status 200
end
```

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](#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`.

1. Create a second subscription on the new callback URL.
2. Set your endpoint to accept either key.
3. Delete the old subscription.
4. 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.

1. Open the [**Webhooks** tab in Developer tools](https://calendly.com/app/developer?tab=webhooks).
2. Copy the test signing key into your endpoint.
3. Enter your callback URL.
4. Select an event.
5. Send the test event.
6. Read the result.

When you [create a subscription](#1-create-a-subscription), replace the test
key with your real signing key.

Read the result as you would a real delivery:

* Any `2xx` means your endpoint accepted the event.
* A `401` or `403` usually means the signature check failed. See
  [Verify the signature](#verify-the-signature).
* A timeout or other non-`2xx` response counts as a failed delivery. See
  [Delivery, retries and failures](#delivery-retries-and-failures).

The tester sends only to public `https` URLs. To test a local server, expose it
through a [tunnel](#local-development) 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](/api-docs/calendly-api/webhooks/get-sample-webhook-data):

```http
GET /sample_webhook_data?event=invitee.created&organization=<org_uri>&scope=user&user=<user_uri>
```

> **Warning**
>
> **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

> **Tip**
>
> **Fastest test:** subscribe to `event_type.updated`, then update an event type
> with [`PATCH /event_types/{uuid}`](/api-docs/calendly-api/event-types/update-event-type).
> 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:

| To fire              | Call                                                                                                                        |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `invitee.created`    | [`POST /invitees`](/api-docs/calendly-api/scheduled-events/create-event-invitee)                                            |
| `invitee.canceled`   | [`POST /scheduled_events/{uuid}/cancellation`](/api-docs/calendly-api/scheduled-events/create-scheduled-event-cancellation) |
| `event_type.updated` | [`PATCH /event_types/{uuid}`](/api-docs/calendly-api/event-types/update-event-type)                                         |

About `POST /invitees`:

* It requires `invitee.timezone`. It also requires
  `event.location_configuration.kind` when the event type has a configured
  location.
* It has its own rate limits, separate from the general API limit. See
  [Rate Limits](/api-docs/overview/rate-limits).

### Local development

Calendly cannot reach `localhost`, and the endpoint tester cannot either. Use a
tunnel to expose your local server:

```bash
ngrok http 4567
# or
cloudflared tunnel --url http://localhost:4567
```

> **Warning**
>
> **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](/api-docs/calendly-api/webhooks/delete-webhook-subscription)
> and [create a new one](/api-docs/calendly-api/webhooks/create-webhook-subscription).
> Until you do, deliveries fail and the 24-hour
> [retry window](#delivery-retries-and-failures) 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:** match
> `created_by` to 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.

|                    |            |
| ------------------ | ---------- |
| Connection timeout | 10 seconds |
| Read timeout       | 15 seconds |

**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

| Field              | Answers                                                                                                                                  |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `state`            | Is the subscription already disabled? (`active` / `disabled`)                                                                            |
| `retry_started_at` | Is it failing *now*? When a delivery fails, this is the time that Calendly started to retry. It is `null` when no failure is unresolved. |

Poll [`GET /webhook_subscriptions/{uuid}`](/api-docs/calendly-api/webhooks/get-webhook-subscription),
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](/docs/webhooks/handling-reschedules).

---

## 8. Troubleshoot

**Not receiving anything**

First, send a signed test event from the
[endpoint tester](#send-a-signed-test-event). If the test succeeds, the problem
is the subscription, not your endpoint.

| Symptom                                                                 | Cause                                                                                                                                |
| ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| `403 Permission Denied` on create, message `You do not have permission` | You do not have the role for that subscription scope. See [Who can create each scope](#who-can-create-each-scope).                   |
| `403 Permission Denied` on create, any other message                    | The event needs a feature that the organization owner's plan does not include.                                                       |
| `400 invalid` / `must resolve to a public address` on create            | Callback URL is localhost, private, unresolvable, or missing a scheme                                                                |
| `409 Already Exists` on create                                          | That callback URL already has a subscription for this organization and user. This includes a disabled subscription. Delete it first. |
| Nothing arrives, subscription looks fine                                | Scope mismatch. A `user`-scope subscription receives events only for that user.                                                      |
| Nothing arrives for one event type                                      | The event is not available at your subscription scope, or your token does not have the event's auth scope.                           |
| Events stopped arriving                                                 | Check `state` and `retry_started_at` with [Get Webhook Subscription](/api-docs/calendly-api/webhooks/get-webhook-subscription)       |
| The subscription no longer exists                                       | Your endpoint returned `410 Gone`, which deletes the subscription. Create it again.                                                  |
| Behind a firewall                                                       | Allowlist Calendly's [published IP addresses](https://ip-whitelist.calendly.com). Webhook deliveries come from that list.            |

**Receiving, but something is wrong**

| Symptom                                            | Cause                                                                                     |
| -------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| No `Calendly-Webhook-Signature` header             | The subscription has no signing key. Delete it and create a new one with a `signing_key`. |
| Signature verified in testing, fails in production | You re-serialize the body. Hash the raw bytes.                                            |
| Cannot tell which customer an event belongs to     | Match the delivery's `created_by` to the `creator` that you stored.                       |
| Duplicate effects in your system                   | Make processing idempotent. See [Duplicates and ordering](#duplicates-and-ordering).      |
| Subscription keeps getting disabled                | Look for repeated non-`2xx` responses, timeouts, signature failures or handler errors.    |

---

## 9. Production checklist

* [ ] Verify every delivery against the raw body. Return `401`; do not raise an exception.
* [ ] Return `2xx` before you process. Do the work in a queue.
* [ ] Make processing idempotent. See [Duplicates and ordering](#duplicates-and-ordering).
* [ ] Do not make correctness depend on delivery order.
* [ ] If you serve multiple accounts, store `creator` for each customer when you create the subscription.
* [ ] Do not redirect the callback URL. A `3xx` counts as a failure.
* [ ] Do not return `410` unless you want Calendly to delete the subscription.
* [ ] Monitor `state` **and** `retry_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.