> ## Documentation Index
> Fetch the complete documentation index at: https://docs.granola.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhooks

> Granola webhooks documentation. Receive HTTP notifications when meeting notes change, verify delivery signatures, and handle retries.

Webhooks notify your systems when notes change in Granola, so you don't have to poll the API. You register an HTTPS URL as a webhook endpoint; when a subscribed event occurs, Granola sends it an HTTP POST with a small JSON payload, and you fetch the latest data through the [Granola API](https://docs.granola.ai/introduction.md).

Webhooks are available on Business and Enterprise plans.

## Set up a webhook endpoint

You can create a webhook in Granola or through the API. Whichever method you use, you'll need a [Granola API key](https://docs.granola.ai/help-center/sharing/integrations/granola-api.md) to fetch the notes referenced by webhook events.

### Create a webhook in Granola

To create a webhook that can receive events for notes across Granola:

1. Go to **Settings → Connectors → Webhooks**.
2. Select **Set up a webhook**.
3. Choose which notes and events to receive, then enter your endpoint URL.
4. Create the webhook and copy its signing secret. You can also send a test event and create a compatible API key from the confirmation dialog.

To create a webhook for one folder:

1. Open the folder and select **Integrations**.
2. Select **Webhooks**, then **Create new webhook**.
3. Choose the events to receive and enter your endpoint URL.
4. Create the webhook and copy its signing secret. Granola automatically filters the webhook to notes in that folder and its subfolders.

### Create a webhook through the API

A webhook endpoint uses the same access scopes as API keys; the scopes control which notes it receives events for:

| Scope | Events you'll receive |
| - | - |
| `personal` | Notes you own, notes shared directly with you, and notes in private folders shared with you |
| `public` | Notes visible to everyone in the workspace |
| `workspace` | Notes allowed by the [creating workspace API key's space limits](https://docs.granola.ai/help-center/sharing/integrations/granola-api.md#workspace-api-keys) |

With a workspace API key, pass exactly `["workspace"]`. The endpoint belongs to the workspace rather than a person, and its scope can't be changed later. If the key is limited to Engineering, its webhook only receives events for Engineering. Turning off API access for that space stops those events. Personal API keys use `personal`, `public`, or both.

Register your endpoint with [Create webhook endpoint](https://docs.granola.ai/api-reference/create-webhook-endpoint.md):

```bash theme={null}
$ curl -X POST "https://public-api.granola.ai/v1/webhook-endpoints" \
  -H "Authorization: Bearer grn_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/granola-webhooks",
    "scopes": ["personal", "public"]
  }'
{
  "id": "whe_2mKr8fQxLp7Ta3",
  "object": "webhook_endpoint",
  "url": "https://example.com/granola-webhooks",
  "events": ["note.access_granted", "note.edited", "note.generated"],
  "scopes": ["personal", "public"],
  "created_by": {
    "name": "Oat Benson",
    "email": "oat@granola.ai"
  },
  "enabled": true,
  "created_at": "2026-01-27T15:30:00Z",
  "signing_secret": "whsec_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
```

> [!NOTE]
>
> The `signing_secret` is returned only in this response and cannot be
> retrieved later. Store it securely. You need it to verify that deliveries
> came from Granola.

The URL must be HTTPS and publicly reachable; addresses on private networks are rejected. `events` chooses which [events](#events) the endpoint receives; omit it to subscribe to all events.

On Enterprise plans, workspace admins control which scopes members can use in [**Settings → Workspace → General → Apps & connectors → API access**](https://grano.la/app?path=%2Fsettings%2Fworkspace%2Fapi-access), the same controls that govern API keys.

### Filter by folder

Pass `folder_ids` to receive events only for notes in those folders (or their subfolders), instead of every note matching `scopes`. Find folder IDs with [List folders](https://docs.granola.ai/api-reference/list-folders.md).

```bash theme={null}
$ curl -X POST "https://public-api.granola.ai/v1/webhook-endpoints" \
  -H "Authorization: Bearer grn_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/granola-webhooks",
    "scopes": ["personal"],
    "folder_ids": ["fol_2mKr8fQxLp7Ta3"]
  }'
```

With a personal API key, make sure `scopes` matches the folder's visibility: include `personal` for a private folder, `public` for a workspace-visible one.

With a workspace API key, use `["workspace"]`. Each folder must be accessible to the key that created the webhook, including when another authorized key edits the filter. A folder outside that key's spaces returns 404. Removing the folder filter does not remove the key's space limits.

## Events

Each way a note can change has its own event. Your endpoint receives the events it subscribed to, for notes in its scope:

| Event | Sent when |
| - | - |
| `note.generated` | The first AI summary for a note is generated |
| `note.edited` | The note's summary is edited or regenerated |
| `note.access_granted` | A note is shared with you, directly or via a folder |

`note.generated` is sent only when a note's first summary is generated while your endpoint can access it. If an already-generated note is later shared with you, your endpoint receives `note.access_granted` instead. Subscribe to both events when using webhooks to discover notes.

An example payload:

```json theme={null}
{
  "event_id": "8f1c2a4e-6b3d-4e8f-9a2b-1c5d7e9f0a3b",
  "event_type": "note.generated",
  "note_id": "not_1d3tmYTlCICgjy",
  "occurred_at": "2026-01-27T15:30:00Z"
}
```

| Field | Description |
| - | - |
| `event_id` | Unique ID for the event. Retries of the same delivery reuse it. |
| `event_type` | Which event occurred. |
| `note_id` | The note the event is about. Fetch it with [Get Note](https://docs.granola.ai/api-reference/get-note.md). |
| `occurred_at` | When the event occurred (ISO 8601). |

`note.edited` payloads also include a `data` object with `changed_fields`, the note fields that changed. Currently this is always `["summary"]`.

Payloads carry no note content. When you receive one, fetch the note with your API key. Access checks apply at fetch time, so a delivery never exposes more than the API would.

## Verify deliveries

Every delivery is signed following the [Standard Webhooks](https://www.standardwebhooks.com/) specification, so you can verify it with any Standard Webhooks library, or a few lines of code.

| Header | Description |
| - | - |
| `webhook-id` | The event ID (matches `event_id` in the payload) |
| `webhook-timestamp` | Unix timestamp, in seconds, of this delivery attempt |
| `webhook-signature` | `v1,` followed by a base64 HMAC-SHA256 signature |

The signature is an HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with your signing secret (base64-decoded, after the `whsec_` prefix).

Sample code for verifying it yourself:

```typescript theme={null}
import crypto from "crypto";

function verifyGranolaSignature(
  headers: Record<string, string>,
  rawBody: string,
  signingSecret: string
): boolean {
  const key = Buffer.from(signingSecret.slice("whsec_".length), "base64");
  const signedContent = `${headers["webhook-id"]}.${headers["webhook-timestamp"]}.${rawBody}`;
  const expected = Buffer.from(
    crypto
      .createHmac("sha256", key)
      .update(signedContent, "utf8")
      .digest("base64")
  );

  return (headers["webhook-signature"] ?? "").split(" ").some((versioned) => {
    const [version, signature = ""] = versioned.split(",");
    const provided = Buffer.from(signature);
    return (
      version === "v1" &&
      provided.length === expected.length &&
      crypto.timingSafeEqual(provided, expected)
    );
  });
}
```

Compute the signature over the raw request body and parse the JSON only after verifying. To protect against replayed deliveries, reject requests whose `webhook-timestamp` is more than a few minutes old.

## Deliveries and retries

Your endpoint has 15 seconds to respond, so acknowledge with a `2xx` before any heavy processing.

| Response | Result |
| - | - |
| `2xx` | Delivered |
| `408`, `429`, `5xx`, network errors, timeouts | Retried |
| `3xx` | Failed permanently; redirects are not followed |
| Other `4xx` | Failed permanently |

Failed deliveries are retried with exponential backoff for four days. Retries reuse `event_id`, which can be used to deduplicate deliveries.

After repeated failures with no success for four days, Granola disables the endpoint and emails its creator or workspace admins. Events missed while disabled are not replayed. Restore the receiver, then re-enable the endpoint in **Settings → Connectors → Webhooks**.

## Manage webhook endpoints

List the endpoints your key can manage:

* A personal key sees endpoints created by the same user. An Enterprise workspace admin's personal key can see all API-created endpoints in that workspace.
* A workspace API key limited to selected spaces can only list, edit, or delete endpoints created with that exact key. Another key with the same selected spaces cannot manage them.
* A workspace API key with **All spaces** can manage workspace-owned endpoints created by other keys in the same workspace. Editing a webhook does not replace its creating key's space limits.

For example, a Sales-only key cannot delete a webhook created by an Engineering-only key. An **All spaces** key in the same workspace can delete either webhook. To replace a limited key, create a new webhook with the replacement key and delete the old endpoint with the original key or an **All spaces** key.

```bash theme={null}
$ curl "https://public-api.granola.ai/v1/webhook-endpoints" \
  -H "Authorization: Bearer grn_YOUR_API_KEY"
{
  "webhook_endpoints": [
    {
      "id": "whe_2mKr8fQxLp7Ta3",
      "object": "webhook_endpoint",
      "url": "https://example.com/granola-webhooks",
      "events": ["note.generated"],
      "scopes": ["personal"],
      "created_by": {
        "name": "Oat Benson",
        "email": "oat@granola.ai"
      },
      "enabled": true,
      "created_at": "2026-01-27T15:30:00Z"
    }
  ]
}
```

`created_by` is `null` for endpoints registered with a workspace API key, which belong to the workspace rather than a person, and when the endpoint creator's account was deleted.

> [!NOTE]
>
> The signing secret is never included in list responses; it's shown once, on
> creation.

Delete an endpoint to stop its deliveries immediately:

```bash theme={null}
$ curl -X DELETE "https://public-api.granola.ai/v1/webhook-endpoints/whe_2mKr8fQxLp7Ta3" \
  -H "Authorization: Bearer grn_YOUR_API_KEY"
{
  "id": "whe_2mKr8fQxLp7Ta3",
  "object": "webhook_endpoint",
  "deleted": true
}
```

See the API reference for full request and response schemas: [Create webhook endpoint](https://docs.granola.ai/api-reference/create-webhook-endpoint.md), [List webhook endpoints](https://docs.granola.ai/api-reference/list-webhook-endpoints.md), [Update webhook endpoint](https://docs.granola.ai/api-reference/update-webhook-endpoint.md), [Delete webhook endpoint](https://docs.granola.ai/api-reference/delete-webhook-endpoint.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.