POST
granola_webhook_endpoints_create.py
from charter.packs import granola
result = await granola.webhook_endpoints_create.ainvoke({"url": ..., "scopes": ...})
Body
| Field | Type | Description |
|---|---|---|
url * | string | The publicly reachable HTTPS URL to deliver events to |
scopes * | WebhookScope[] | Which notes to receive events for. personal covers notes you own, notes shared directly with you, and notes in private folders shared with you. public covers notes visible to everyone in the workspace. Pass both for both sets of notes. Workspace admins can disable scopes for non-admin members in the workspace’s API settings. With a Workspace API key, pass exactly ["workspace"] — the key’s own scope: public workspace notes plus notes in spaces with Granola API access enabled. min 1 items |
events | WebhookEventName[] | Event names to subscribe to. Omit to subscribe to all events — note.access_granted, note.edited and note.generated. min 1 items |
folderIds | string[] | Restrict delivery to notes in these folders or any of their subfolders. Accepts folder IDs returned by GET /v1/folders. Omit to receive events for every note matching scopes. The same filter applies to all subscribed events. min 1 items; max 100 items |