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

# Granola API reference

> API reference for the Granola plugin in Corsair: every `granola.api.*` operation with its input and output types, taken from the plugin's Zod schemas.

> [!NOTE]
>
> **New to Corsair?** See [API access](https://docs.corsair.dev/concepts/api.md), [authentication](https://docs.corsair.dev/concepts/auth.md), and [error handling](https://docs.corsair.dev/concepts/error-handling).

## Folders

### list

`folders.list`

Lists the folders the API key can read, ordered by name.

**Risk:** `read`

```ts theme={null}
await corsair.granola.api.folders.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `cursor` | `string` | No | The cursor to continue from |
| `page_size` | `number` | No | Maximum number of folders to return per page |

GET /v1/folders

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `folders` | `object[] \| null` | No | — |
| `hasMore` | `boolean \| null` | No | Whether there are more folders to fetch |
| `cursor` | `string \| null \| null` | No | The cursor to continue from |

> [accordion] folders full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   name?: string | null,
>   parent_folder_id?: string | null | null,
>   space_id?: string | null | null
> }[] | null
> ```

***

## Legal Holds

### addCustodians

`legalHolds.addCustodians`

Names users on a hold, by email or by Granola user id. Idempotent: the response carries the request's full resolved set, whether each entry was newly added or already present.

**Risk:** `write`

```ts theme={null}
await corsair.granola.api.legalHolds.addCustodians({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `hold_id` | `string` | Yes | The legal hold id. Case-insensitive. |
| `custodians` | `object[]` | Yes | Users to name on this hold |

POST /v1/legal-holds/\{hold\_id}/custodians

> [accordion] custodians full type
>
> ```ts theme={null}
> {
>   email?: string,
>   id?: string
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `custodians` | `object[] \| null` | No | — |

> [accordion] custodians full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   user?: {
>     object?: string | null,
>     id?: string | null,
>     email?: string | null | null
>   } | null,
>   added_at?: string | null,
>   removed_at?: string | null | null
> }[] | null
> ```

***

### create

`legalHolds.create`

Places a named legal hold on custodians in your workspace. Granola preserves a custodian's notes, transcripts and attachments while any hold covering them is active. Custodians see no change in the product.

**Risk:** `write`

```ts theme={null}
await corsair.granola.api.legalHolds.create({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `name` | `string` | Yes | A name for the matter this hold preserves |
| `description` | `string \| null` | No | Free text describing the matter |
| `covers_entire_workspace` | `boolean` | Yes | Whether the hold covers every member of your workspace, current and future. Required: scope is never something a caller falls into. |
| `custodians` | `object[]` | No | Users to name individually when the hold is created |

POST /v1/legal-holds

> [accordion] custodians full type
>
> ```ts theme={null}
> {
>   email?: string,
>   id?: string
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The unique identifier for the legal hold |
| `object` | `string \| null` | No | The type of object |
| `name` | `string \| null` | No | The name of the hold, as your admins see it |
| `description` | `string \| null \| null` | No | Free text describing the matter, or null |
| `covers_entire_workspace` | `boolean \| null` | No | True when the hold covers every member of your workspace, current and future. Additive with `custodian_count`: a hold may do both. |
| `custodian_count` | `number \| null` | No | How many users this hold names individually. Workspace-wide coverage is `covers_entire_workspace`, not a custodian. |
| `created_at` | `string \| null` | No | When the hold was placed |
| `released_at` | `string \| null \| null` | No | When the hold was released, or null while it is active. A released hold is never deleted. |

***

### get

`legalHolds.get`

Returns one legal hold. A released hold is still returned, carrying `released_at`.

**Risk:** `read`

```ts theme={null}
await corsair.granola.api.legalHolds.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `hold_id` | `string` | Yes | The legal hold id. Case-insensitive. |

GET /v1/legal-holds/\{hold\_id}

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The unique identifier for the legal hold |
| `object` | `string \| null` | No | The type of object |
| `name` | `string \| null` | No | The name of the hold, as your admins see it |
| `description` | `string \| null \| null` | No | Free text describing the matter, or null |
| `covers_entire_workspace` | `boolean \| null` | No | True when the hold covers every member of your workspace, current and future. Additive with `custodian_count`: a hold may do both. |
| `custodian_count` | `number \| null` | No | How many users this hold names individually. Workspace-wide coverage is `covers_entire_workspace`, not a custodian. |
| `created_at` | `string \| null` | No | When the hold was placed |
| `released_at` | `string \| null \| null` | No | When the hold was released, or null while it is active. A released hold is never deleted. |

***

### list

`legalHolds.list`

Lists every legal hold in your workspace, newest first. Released holds are returned alongside active ones, each carrying `released_at`.

**Risk:** `read`

```ts theme={null}
await corsair.granola.api.legalHolds.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `cursor` | `string` | No | The cursor to continue from |
| `page_size` | `number` | No | Maximum number of legal holds to return per page |

GET /v1/legal-holds

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `legal_holds` | `object[] \| null` | No | — |
| `hasMore` | `boolean \| null` | No | Whether there are more legal holds to fetch. A page can hold fewer than `page_size` holds and still not be the last one, so page on this and `cursor`. |
| `cursor` | `string \| null \| null` | No | The cursor to continue from |

> [accordion] legal\_holds full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   name?: string | null,
>   description?: string | null | null,
>   covers_entire_workspace?: boolean | null,
>   custodian_count?: number | null,
>   created_at?: string | null,
>   released_at?: string | null | null
> }[] | null
> ```

***

### listCustodians

`legalHolds.listCustodians`

Lists the users a hold names, oldest first. Removed custodians are returned alongside active ones, each carrying `removed_at`.

**Risk:** `read`

```ts theme={null}
await corsair.granola.api.legalHolds.listCustodians({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `hold_id` | `string` | Yes | The legal hold id. Case-insensitive. |
| `cursor` | `string` | No | The cursor to continue from |
| `page_size` | `number` | No | Maximum number of custodians to return per page |

GET /v1/legal-holds/\{hold\_id}/custodians

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `custodians` | `object[] \| null` | No | — |
| `hasMore` | `boolean \| null` | No | Whether there are more custodians to fetch. A page can hold fewer than `page_size` custodians and still not be the last one, so page on this and `cursor`. |
| `cursor` | `string \| null \| null` | No | The cursor to continue from |

> [accordion] custodians full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   user?: {
>     object?: string | null,
>     id?: string | null,
>     email?: string | null | null
>   } | null,
>   added_at?: string | null,
>   removed_at?: string | null | null
> }[] | null
> ```

***

### release

`legalHolds.release`

Release a legal hold, ending its preservation of the custodians' notes. Release is final: there is no un-release, and a reopened matter needs a new hold.

**Risk:** `destructive`

```ts theme={null}
await corsair.granola.api.legalHolds.release({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `hold_id` | `string` | Yes | The legal hold id. Case-insensitive. |

DELETE /v1/legal-holds/\{hold\_id}

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `object` | `string \| null` | No | — |
| `released` | `boolean \| null` | No | — |
| `released_at` | `string \| null` | No | — |

***

### removeCustodian

`legalHolds.removeCustodian`

Remove a custodian from a hold, so this hold no longer preserves that person's notes. The entry stays listed with removed\_at.

**Risk:** `destructive`

```ts theme={null}
await corsair.granola.api.legalHolds.removeCustodian({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `hold_id` | `string` | Yes | The legal hold id. Case-insensitive. |
| `custodian_id` | `string` | Yes | The custodian entry id. Case-insensitive. |

DELETE /v1/legal-holds/\{hold\_id}/custodians/\{custodian\_id}

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | — |
| `object` | `string \| null` | No | — |
| `removed` | `boolean \| null` | No | — |
| `removed_at` | `string \| null` | No | — |

***

### update

`legalHolds.update`

Rename or re-describe a hold, or widen or narrow its workspace-wide coverage. Narrowing ends this hold's preservation for members it covered only through that coverage, so the operation is destructive: in cautious permission mode it waits for approval, and strict mode refuses it. The custodians the hold names are never touched. A released hold cannot be updated.

**Risk:** `destructive`

```ts theme={null}
await corsair.granola.api.legalHolds.update({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `hold_id` | `string` | Yes | The legal hold id. Case-insensitive. |
| `name` | `string` | No | A new name for the matter |
| `description` | `string \| null` | No | New free text for the matter, or null to clear it |
| `covers_entire_workspace` | `boolean` | No | Whether the hold covers every member of your workspace. Toggling this never touches the custodians the hold names. |

PATCH /v1/legal-holds/\{hold\_id}

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The unique identifier for the legal hold |
| `object` | `string \| null` | No | The type of object |
| `name` | `string \| null` | No | The name of the hold, as your admins see it |
| `description` | `string \| null \| null` | No | Free text describing the matter, or null |
| `covers_entire_workspace` | `boolean \| null` | No | True when the hold covers every member of your workspace, current and future. Additive with `custodian_count`: a hold may do both. |
| `custodian_count` | `number \| null` | No | How many users this hold names individually. Workspace-wide coverage is `covers_entire_workspace`, not a custodian. |
| `created_at` | `string \| null` | No | When the hold was placed |
| `released_at` | `string \| null \| null` | No | When the hold was released, or null while it is active. A released hold is never deleted. |

***

## Notes

### delete

`notes.delete`

Move a note to the trash, as deleting it in Granola does. permanent=true deletes it now with its transcript and attachments, which cannot be undone. Needs a key with the delete permission.

**Risk:** `destructive`

```ts theme={null}
await corsair.granola.api.notes.delete({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `note_id` | `string` | Yes | The ID of the note (case-insensitive) |
| `permanent` | `boolean` | No | Delete the note permanently instead of moving it to the trash: its transcript and attachments are destroyed and can't be restored. |

DELETE /v1/notes/\{note\_id}

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the deleted note |
| `object` | `string \| null` | No | — |
| `deleted` | `boolean \| null` | No | — |
| `permanent` | `boolean \| null` | No | Whether the note was deleted permanently rather than moved to the trash |

***

### get

`notes.get`

Get one note: its AI summary (text and Markdown), private notes, attendees, calendar event, folders and attachments. Pass include="transcript" to add the transcript; a very long one returns TRANSCRIPT\_TOO\_LARGE, so read it with transcripts.get.

**Risk:** `read`

```ts theme={null}
await corsair.granola.api.notes.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `note_id` | `string` | Yes | The ID of the note (case-insensitive) |
| `include` | `transcript` | No | Include the note transcript in the response. If a workspace admin has turned off transcript access over the API, `transcript` is null. If it is too large to return inline, Get Note returns `TRANSCRIPT_TOO_LARGE`; retrieve it in pages from `/v1/notes/{note_id}/transcript`. |

GET /v1/notes/\{note\_id}

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the note |
| `object` | `string \| null` | No | The object type of the note |
| `title` | `string \| null \| null` | No | The title of the note |
| `owner` | `object \| null` | No | — |
| `created_at` | `string \| null` | No | The creation time of the note |
| `updated_at` | `string \| null` | No | The last update time of the note |
| `deleted_at` | `string \| null \| null` | No | When the note was deleted, or null if it has not been. Only keys with access to all workspace notes can see deleted notes. |
| `web_url` | `string \| null` | No | The URL to view the note in the Granola web app |
| `calendar_event` | `object \| null` | No | — |
| `attachments` | `object[] \| null` | No | Manually attached photos and snapshots of shared screens, in stored order. On Enterprise plans, snapshots are returned only while a workspace admin has Take snapshots of shared screens turned on. Empty when no attachments are available. |
| `attendees` | `object[] \| null` | No | The attendees of the meeting |
| `folder_membership` | `object[] \| null` | No | The folder membership of the note |
| `space_membership` | `object[] \| null` | No | The spaces the note is in that the API key can access, through the folders it belongs to. |
| `summary_text` | `string \| null` | No | The summary text of the note |
| `summary_markdown` | `string \| null \| null` | No | The summary of the note in markdown format. Can be null if the note has no summary. |
| `links` | `object[] \| null` | No | Links approved for the note, including links added automatically from the meeting chat or calendar invite, in the order they were added. Omitted when the note has none. |
| `private_notes_text` | `string \| null \| null` | No | The private notes the note's owner wrote themselves, as plain text. Only returned when the API key belongs to the user who created the note; `null` otherwise (including for shared notes and workspace-scoped keys). |
| `private_notes_markdown` | `string \| null \| null` | No | The private notes the note's owner wrote themselves, in markdown format. Only returned when the API key belongs to the user who created the note; `null` otherwise (including for shared notes and workspace-scoped keys). |
| `transcript` | `object[] \| null` | No | The inline transcript of the note. It is null unless you pass `include=transcript`, or when a workspace admin has turned off transcript access over the API. If it is too large to return inline, Get Note returns `TRANSCRIPT_TOO_LARGE`; retrieve it in pages from `/v1/notes/{note_id}/transcript`. Th... |

> [accordion] owner full type
>
> ```ts theme={null}
> {
>   name?: string | null | null,
>   email?: string | null
> } | null
> ```

> [accordion] calendar\_event full type
>
> ```ts theme={null}
> {
>   event_title?: string | null | null,
>   invitees?: {
>     email?: string | null
>   }[] | null,
>   organiser?: string | null | null,
>   calendar_event_id?: string | null | null,
>   scheduled_start_time?: string | null | null,
>   scheduled_end_time?: string | null | null
> } | null
> ```

> [accordion] attachments full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   type?: string | null,
>   url?: string | null,
>   width?: number | null,
>   height?: number | null,
>   captured_at?: string | null,
>   description?: string | null
> }[] | null
> ```

> [accordion] attendees full type
>
> ```ts theme={null}
> {
>   name?: string | null | null,
>   email?: string | null
> }[] | null
> ```

> [accordion] folder\_membership full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   name?: string | null,
>   parent_folder_id?: string | null | null,
>   space_id?: string | null | null
> }[] | null
> ```

> [accordion] space\_membership full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   name?: string | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   url?: string | null,
>   label?: string | null
> }[] | null
> ```

> [accordion] transcript full type
>
> ```ts theme={null}
> {
>   speaker?: {
>     source?: string | null,
>     attribution?: string | null,
>     diarization_label?: string | null,
>     name?: string | null
>   } | null,
>   text?: string | null,
>   start_time?: string | null,
>   end_time?: string | null
> }[] | null | null
> ```

***

### list

`notes.list`

List the notes the key can read, newest first, with filters for creation and update dates, folder and space. Only notes with a generated summary are listed. Page with cursor while hasMore is true.

**Risk:** `read`

```ts theme={null}
await corsair.granola.api.notes.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `created_before` | `string` | No | Return notes created before this date |
| `created_after` | `string` | No | Return notes created after this date |
| `updated_after` | `string` | No | Return notes updated after this date |
| `folder_id` | `string` | No | Return notes in this folder and any of its child folders. Folder IDs are case-insensitive. Use the list folders endpoint to discover folder IDs. |
| `cursor` | `string` | No | The cursor to continue from |
| `page_size` | `number` | No | Maximum number of notes to return per page |
| `space_id` | `string` | No | Return notes in this space. Space IDs are case-insensitive. Use the list spaces endpoint to discover space IDs. |

GET /v1/notes

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `notes` | `object[] \| null` | No | — |
| `hasMore` | `boolean \| null` | No | Whether there are more notes to fetch |
| `cursor` | `string \| null \| null` | No | The cursor to continue from |

> [accordion] notes full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   title?: string | null | null,
>   owner?: {
>     name?: string | null | null,
>     email?: string | null
>   } | null,
>   created_at?: string | null,
>   updated_at?: string | null,
>   deleted_at?: string | null | null
> }[] | null
> ```

***

### search

`notes.search`

Search notes by keywords in titles and summaries, or filter by participant (name, email, company or domain on the invite), folder, space or date. Private notes and transcripts are not searched.

**Risk:** `read`

```ts theme={null}
await corsair.granola.api.notes.search({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `keywords` | `string[]` | No | Words to search for in titles and summaries. An entry matches when all its words appear in the title or in the summary, in any order; a note needs only one entry to match. |
| `participant` | `string` | No | Only meetings with this person or company on the calendar invite: a name, email, company or domain. It does not match names mentioned in the notes. |
| `folder_id` | `string` | No | Only notes in this folder and its child folders. Use List folders to find folder IDs. |
| `space_id` | `string` | No | Only notes in this space and its folders. Use List spaces to find space IDs. Combines with folder\_id. |
| `from_date` | `string` | No | Only meetings that started at or after this date or UTC timestamp. A date means midnight UTC. Notes without a calendar event use their creation time. |
| `to_date` | `string` | No | Only meetings that started at or before this date or UTC timestamp. A date means midnight UTC at the start of that day, so it leaves out meetings later that day. |
| `updated_after` | `string` | No | Only notes whose content or summary changed after this date or UTC timestamp. A date means midnight UTC. |
| `page_size` | `number` | No | Maximum number of notes to return per page |
| `cursor` | `string` | No | The cursor from the previous response, to fetch the next page. Send it alone or with page\_size. Cursors expire after 15 minutes. |

POST /v1/notes/search

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `notes` | `object[] \| null` | No | — |
| `hasMore` | `boolean \| null` | No | Whether there is another page. A page can hold fewer notes than page\_size, or none, and still have more, so keep requesting with cursor until this is false. |
| `cursor` | `string \| null \| null` | No | The next-page cursor, or null when hasMore is false. |
| `completion_status` | `string \| null` | No | more\_available: fetch the next page with cursor. exhausted: there are no more matches. incomplete: the search stopped after examining 10,000 notes without finishing; narrow it and search again. |

> [accordion] notes full type
>
> ```ts theme={null}
> (
>   {
>     id?: string | null,
>     object?: string | null,
>     title?: string | null | null,
>     owner?: {
>       name?: string | null | null,
>       email?: string | null
>     } | null,
>     created_at?: string | null,
>     updated_at?: string | null,
>     deleted_at?: string | null | null
>   }& {
>     meeting_at?: string | null
>   }
> )[] | null
> ```

***

## Spaces

### list

`spaces.list`

Lists the spaces the API key can access, ordered by name.

**Risk:** `read`

```ts theme={null}
await corsair.granola.api.spaces.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `cursor` | `string` | No | The cursor to continue from |
| `page_size` | `number` | No | The number of spaces to return |

GET /v1/spaces

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `spaces` | `object[] \| null` | No | — |
| `hasMore` | `boolean \| null` | No | Whether there are more spaces to fetch |
| `cursor` | `string \| null \| null` | No | The cursor to continue from |

> [accordion] spaces full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   name?: string | null
> }[] | null
> ```

***

## Transcripts

### delete

`transcripts.delete`

Permanently delete a note's transcript; the note and its summary stay. Cannot be undone.

**Risk:** `destructive`

```ts theme={null}
await corsair.granola.api.transcripts.delete({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `note_id` | `string` | Yes | The ID of the note (case-insensitive) |

DELETE /v1/notes/\{note\_id}/transcript

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the note whose transcript was deleted |
| `object` | `string \| null` | No | — |
| `transcript_deleted` | `boolean \| null` | No | — |

***

### get

`transcripts.get`

Read a meeting transcript in pages, each line with its speaker and start and end time. Pass from\_time (for example an excerpt start\_time from transcripts.search) to start partway through.

**Risk:** `read`

```ts theme={null}
await corsair.granola.api.transcripts.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `note_id` | `string` | Yes | The ID of the note (case-insensitive) |
| `cursor` | `string` | No | The opaque cursor returned by the previous page |
| `from_time` | `string` | No | Start at the first transcript item that ends after this UTC timestamp, skipping everything earlier. Pass a passage's `start_time` from Search transcripts to read the conversation from that point. It only sets where the first page starts: it is ignored when `cursor` is set, so it is safe to send o... |
| `page_size` | `number` | No | The maximum number of transcript items to return |

GET /v1/notes/\{note\_id}/transcript

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `transcript` | `object[] \| null` | No | Transcript items for this page |
| `hasMore` | `boolean \| null` | No | Whether another page of transcript items is available |
| `cursor` | `string \| null \| null` | No | The opaque cursor for the next page, or null when this is the final page |

> [accordion] transcript full type
>
> ```ts theme={null}
> {
>   speaker?: {
>     source?: string | null,
>     attribution?: string | null,
>     diarization_label?: string | null,
>     name?: string | null
>   } | null,
>   text?: string | null,
>   start_time?: string | null,
>   end_time?: string | null
> }[] | null
> ```

***

### search

`transcripts.search`

Search meeting transcripts for where something was said. Each result is a note with up to two short excerpts; pass an excerpt start\_time to transcripts.get as from\_time to read on from there.

**Risk:** `read`

```ts theme={null}
await corsair.granola.api.transcripts.search({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `keywords` | `string[]` | No | Words to search for. Required unless cursor is set. An entry matches when all its words are said close together, in any order; a note needs only one entry to match. Synonyms and other spellings are not matched, so add them as separate entries. |
| `note_ids` | `string[]` | No | Only search these notes. An ID is ignored when no note has it or the API key cannot read that note. |
| `participant` | `string` | No | Only meetings with this person or company on the calendar invite, or where they are named as a speaker: a name, email, company or domain. A meeting matched only by speaker name returns just the parts where they spoke. |
| `from_date` | `string` | No | Only meetings that started at or after this date or UTC timestamp. A date means midnight UTC. Notes without a calendar event use their creation time. |
| `to_date` | `string` | No | Only meetings that started at or before this date or UTC timestamp. A date means midnight UTC at the start of that day, so it leaves out meetings later that day. |
| `page_size` | `number` | No | Maximum number of notes to return per page |
| `cursor` | `string` | No | The cursor from the previous response, to fetch the next page. Send it alone or with page\_size. Cursors expire after 15 minutes. |

POST /v1/notes/transcripts/search

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `notes` | `object[] \| null` | No | — |
| `hasMore` | `boolean \| null` | No | Whether there is another page. A page can hold fewer notes than page\_size, or none, and still have more, so keep requesting with cursor until this is false. |
| `cursor` | `string \| null \| null` | No | The next-page cursor, or null when hasMore is false. |
| `completion_status` | `string \| null` | No | more\_available: fetch the next page with cursor. exhausted: there are no more matches. incomplete: the search stopped after examining 10,000 notes without finishing; narrow it and search again. |

> [accordion] notes full type
>
> ```ts theme={null}
> (
>   {
>     id?: string | null,
>     object?: string | null,
>     title?: string | null | null,
>     owner?: {
>       name?: string | null | null,
>       email?: string | null
>     } | null,
>     created_at?: string | null,
>     updated_at?: string | null,
>     deleted_at?: string | null | null
>   }& {
>     meeting_at?: string | null,
>     passages?: {
>       text?: string | null,
>       start_time?: string | null | null,
>       matched_keywords?: string[] | null
>     }[] | null
>   }
> )[] | null
> ```

***

## Webhook Endpoints

### create

`webhookEndpoints.create`

Register an HTTPS URL to receive note events (note.generated, note.edited, note.access\_granted). The signing secret is returned only in this response.

**Risk:** `write`

```ts theme={null}
await corsair.granola.api.webhookEndpoints.create({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | The publicly reachable HTTPS URL to deliver events to |
| `scopes` | `(personal \| public \| workspace)[]` | Yes | 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... |
| `events` | `(note.access_granted \| note.edited \| note.generated)[]` | No | Event names to subscribe to. Omit to subscribe to all events. |
| `folder_ids` | `string[]` | No | Restrict delivery to notes in these folders or any of their subfolders. Accepts folder IDs returned by `GET /v1/folders`, in any casing. Omit to receive events for every note matching `scopes`. With a Workspace API key, folders must also be within that key's space limits. The same filter applies ... |

POST /v1/webhook-endpoints

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   url?: string | null,
>   url_redacted?: boolean | null,
>   events?: string[] | null,
>   folder_ids?: string[] | null,
>   scopes?: string[] | null,
>   created_by?: {
>     name?: string | null | null,
>     email?: string | null
>   } | null,
>   enabled?: boolean | null,
>   created_at?: string | null
> }& {
>   signing_secret?: string | null
> }
> ```

***

### delete

`webhookEndpoints.delete`

Delete a webhook endpoint; Granola stops sending it events at once.

**Risk:** `destructive`

```ts theme={null}
await corsair.granola.api.webhookEndpoints.delete({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `webhook_endpoint_id` | `string` | Yes | The ID of the webhook endpoint. Case-insensitive. |

DELETE /v1/webhook-endpoints/\{webhook\_endpoint\_id}

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the deleted webhook endpoint |
| `object` | `string \| null` | No | — |
| `deleted` | `boolean \| null` | No | — |

***

### list

`webhookEndpoints.list`

Lists the webhook endpoints the API key can manage, oldest first. A Workspace API key limited to selected spaces only lists endpoints created with that exact key. An unrestricted Workspace API key can also list endpoints created by other keys in the same workspace.

**Risk:** `read`

```ts theme={null}
await corsair.granola.api.webhookEndpoints.list({});
```

**Input:** *empty object*

GET /v1/webhook-endpoints

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `webhook_endpoints` | `object[] \| null` | No | — |

> [accordion] webhook\_endpoints full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   url?: string | null,
>   url_redacted?: boolean | null,
>   events?: string[] | null,
>   folder_ids?: string[] | null,
>   scopes?: string[] | null,
>   created_by?: {
>     name?: string | null | null,
>     email?: string | null
>   } | null,
>   enabled?: boolean | null,
>   created_at?: string | null
> }[] | null
> ```

***

### update

`webhookEndpoints.update`

Changes an endpoint's URL, scopes, events, folder filter or enabled state. Fields you leave out stay as they are. A space-limited Workspace API key can only update endpoints created with that exact key. A workspace-managed endpoint keeps its creating key's space limits, regardless of which authorized key edits it.

**Risk:** `write`

```ts theme={null}
await corsair.granola.api.webhookEndpoints.update({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `webhook_endpoint_id` | `string` | Yes | The ID of the webhook endpoint. Case-insensitive. |
| `url` | `string` | No | The publicly reachable HTTPS URL to deliver events to. Omit to leave unchanged. |
| `scopes` | `(personal \| public \| workspace)[]` | No | Which notes to receive events for; replaces the current scopes. `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... |
| `events` | `(note.access_granted \| note.edited \| note.generated)[]` | No | Event names to subscribe to; replaces the current subscriptions. Omit to leave unchanged. |
| `folder_ids` | `string[]` | No | Restrict delivery to notes in these folders or any of their subfolders; replaces the current folder filter. Accepts folder IDs returned by `GET /v1/folders`, in any casing. For a workspace-managed endpoint, folders must be within the creating key's space limits, even when another key edits the en... |
| `enabled` | `boolean` | No | Pause (`false`) or resume (`true`) event deliveries. A paused endpoint keeps its configuration and signing secret; events that occur while paused are not delivered later. Omit to leave unchanged. |

PATCH /v1/webhook-endpoints/\{webhook\_endpoint\_id}

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the webhook endpoint |
| `object` | `string \| null` | No | — |
| `url` | `string \| null` | No | The HTTPS URL deliveries are sent to. When `url_redacted` is true, reduced to the URL's origin. |
| `url_redacted` | `boolean \| null` | No | True when this response reduces `url` to its origin because the caller is not the endpoint's creator (the path can carry credentials). Orphaned endpoints whose creator account was deleted are returned unredacted so they can be cleaned up. |
| `events` | `string[] \| null` | No | The event names this endpoint is subscribed to |
| `folder_ids` | `string[] \| null` | No | Folder IDs this endpoint's delivery is restricted to, or an empty array when unrestricted. Events fire only for notes in these folders or their subfolders. |
| `scopes` | `string[] \| null` | No | Which notes this endpoint receives events for. `personal` covers notes the creating user owns, notes shared directly with them, and notes in private folders shared with them. `public` covers notes visible to everyone in the workspace. `workspace` follows the creating Workspace API key's space lim... |
| `created_by` | `object \| null` | No | — |
| `enabled` | `boolean \| null` | No | Whether deliveries are active |
| `created_at` | `string \| null` | No | The creation time of the webhook endpoint |

> [accordion] created\_by full type
>
> ```ts theme={null}
> {
>   name?: string | null | null,
>   email?: string | null
> } | null
> ```

***

## Workspace

### analytics

`workspace.analytics`

Usage snapshot of the workspace's current members over the last 30, 90 or 120 days. Needs an analytics API key. include\_users=true adds a page of members with their activity counts.

**Risk:** `read`

```ts theme={null}
await corsair.granola.api.workspace.analytics({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `days` | `30 \| 90 \| 120` | No | Rolling period in days, ending at the snapshot timestamp. |
| `include_users` | `boolean` | No | Include a page of members with their role and activity counts, including members with no recorded activity. |
| `page_size` | `number` | No | Maximum member rows per page when include\_users=true. |
| `cursor` | `string` | No | Continue the member breakdown with the same days and include\_users=true. If the snapshot refreshes, restart without a cursor. |

GET /v1/analytics

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `period_days` | `number \| null` | No | — |
| `period_start` | `string \| null` | No | Inclusive UTC start of the rolling period. |
| `period_end` | `string \| null` | No | Inclusive UTC reporting cutoff for the snapshot. |
| `summary` | `object \| null` | No | — |
| `users` | `object[] \| null` | No | Omitted unless include\_users=true. Summary totals always cover all members, not just this page. |
| `hasMore` | `boolean \| null` | No | — |
| `cursor` | `string \| null \| null` | No | — |

> [accordion] summary full type
>
> ```ts theme={null}
> {
>   total_workspace_users?: number | null,
>   meetings?: {
>     count?: number | null,
>     distinct_users?: number | null
>   } | null,
>   chat_messages?: {
>     count?: number | null,
>     distinct_users?: number | null
>   } | null,
>   mcp_tool_calls?: {
>     count?: number | null,
>     distinct_users?: number | null
>   } | null,
>   note_views?: {
>     count?: number | null,
>     distinct_users?: number | null
>   } | null,
>   voice_typing?: {
>     count?: number | null,
>     distinct_users?: number | null
>   } | null
> } | null
> ```

> [accordion] users full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   name?: string | null,
>   email?: string | null,
>   role?: string | null,
>   member_since?: string | null,
>   meetings?: number | null,
>   chat_messages?: number | null,
>   mcp_tool_calls?: number | null,
>   note_views?: number | null,
>   voice_typing?: number | null
> }[] | null
> ```

***

### auditEvents

`workspace.auditEvents`

List the workspace's audit events, newest first, filtered by action or date. Needs an Audit API key.

**Risk:** `read`

```ts theme={null}
await corsair.granola.api.workspace.auditEvents({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `action` | `string` | No | Return only events with this exact action, or events whose action starts with it followed by a dot (`workspace` returns `workspace.member_added` but not `workspace_automation.created`). Lowercase, as actions are. |
| `occurred_before` | `string` | No | Return events that occurred before this date. Must fall within the one-year retention window; an earlier date is rejected. |
| `occurred_after` | `string` | No | Return events that occurred after this date. Must fall within the one-year retention window; an earlier date is rejected. |
| `cursor` | `string` | No | The cursor to continue from |
| `page_size` | `number` | No | Maximum number of audit events to return per page |

GET /v1/audit

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `events` | `object[] \| null` | No | — |
| `hasMore` | `boolean \| null` | No | Whether there are more audit events to fetch. A page can hold fewer than `page_size` events and still not be the last one, so page on this and `cursor` rather than on the number of events returned. |
| `cursor` | `string \| null \| null` | No | The cursor to continue from |

> [accordion] events full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   object?: string | null,
>   action?: string | null,
>   occurred_at?: string | null,
>   collected_at?: string | null,
>   actor?: {
>     object?: string | null,
>     id_suffix?: string | null
>   } | {
>     object?: string | null,
>     id?: string | null | null,
>     email?: string | null | null
>   } | {
>     object?: string | null
>   } | null,
>   data?: Record<string, any> | null,
>   context?: {
>     ip_address?: string | null | null,
>     user_agent?: string | null | null,
>     client_version?: string | null | null
>   } | null
> }[] | null
> ```

***


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