> ## 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.

# Pocket API reference

> API reference for the Pocket plugin in Corsair: every `heypocket.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`

List your folders and spaces as a tree, with recording counts per folder.

**Risk:** `read`

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

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |
| `data` | `object[]` | Yes | — |
| `pagination` | `object \| null` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id: string,
>   name?: string | null,
>   kind?: string | null,
>   parent_folder_id?: string | null,
>   space_id?: string | null,
>   color?: string | null,
>   recording_count?: number | null,
>   total_recording_count?: number | null,
>   created_at?: string | null,
>   updated_at?: string | null,
>   children?: (recursive)[] | null
> }[]
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   page?: number | null,
>   limit?: number | null,
>   total?: number | null,
>   total_pages?: number | null,
>   has_more?: boolean | null,
>   next_cursor?: string | null
> } | null
> ```

***

## Organization

### apiKeys.create

`organization.apiKeys.create`

Create an organization API key; the key is returned only in this reply. Without scopes it gets every scope. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `destructive`

```ts theme={null}
await corsair.heypocket.api.organization.apiKeys.create({
	orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6',
	name: 'CI pipeline',
	scopes: ['recordings:read', 'templates:read'],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `name` | `string` | Yes | Label for the key. |
| `scopes` | `(recordings:read \| recordings:write \| templates:read \| templates:write \| users:read \| users:write)[]` | No | Default: every scope. |
| `expires_at` | `string` | No | ISO 8601; leave out for a key that never expires. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | — |
| `name` | `string \| null` | No | — |
| `scopes` | `string[] \| null` | No | — |
| `created_at` | `string \| null` | No | — |
| `expires_at` | `string \| null` | No | — |
| `last_used_at` | `string \| null` | No | — |
| `key` | `string` | Yes | The key itself, shown only in this reply. |

***

### apiKeys.delete

`organization.apiKeys.delete`

Revoke an organization API key at once. Cannot be undone. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `destructive`

```ts theme={null}
await corsair.heypocket.api.organization.apiKeys.delete({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6', keyId: 'key_abc123' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `keyId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |

***

### apiKeys.get

`organization.apiKeys.get`

Get one organization API key's name, scopes and dates. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `read`

```ts theme={null}
await corsair.heypocket.api.organization.apiKeys.get({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6', keyId: 'key_abc123' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `keyId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | — |
| `name` | `string \| null` | No | — |
| `scopes` | `string[] \| null` | No | — |
| `created_at` | `string \| null` | No | — |
| `expires_at` | `string \| null` | No | — |
| `last_used_at` | `string \| null` | No | — |

***

### apiKeys.list

`organization.apiKeys.list`

List the organization's API keys (names, scopes, dates; never the key). Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `read`

```ts theme={null}
await corsair.heypocket.api.organization.apiKeys.list({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `keys` | `object[]` | Yes | — |

> [accordion] keys full type
>
> ```ts theme={null}
> {
>   id: string,
>   name?: string | null,
>   scopes?: string[] | null,
>   created_at?: string | null,
>   expires_at?: string | null,
>   last_used_at?: string | null
> }[]
> ```

***

### getAnalytics

`organization.getAnalytics`

Recording counts, durations and summarizations per member for a date range (default the last 30 days). Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `read`

```ts theme={null}
await corsair.heypocket.api.organization.getAnalytics({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6', start_date: '2026-11-01', end_date: '2026-11-30' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `start_date` | `string` | No | Default 30 days ago. |
| `end_date` | `string` | No | Default today. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `period` | `object` | Yes | — |
| `totals` | `Record<string, JsonValue>` | Yes | — |
| `members` | `object[]` | Yes | — |

> [accordion] period full type
>
> ```ts theme={null}
> {
>   start_date?: string | null,
>   end_date?: string | null
> }
> ```

> [accordion] members full type
>
> ```ts theme={null}
> {
>   user_id: string,
>   email?: string | null,
>   name?: string | null,
>   recordings?: number | null,
>   total_duration_seconds?: number | null,
>   summarizations?: number | null
> }[]
> ```

***

### invites.accept

`organization.invites.accept`

Accept an invitation with the token from its email; the caller joins with the invited role.

**Risk:** `write`

```ts theme={null}
await corsair.heypocket.api.organization.invites.accept({ token: 'inv_token_example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `token` | `string` | Yes | The token from the invitation email. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `org_id` | `string` | Yes | — |
| `role` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |

***

### invites.resend

`organization.invites.resend`

Email a pending invitation again. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `destructive`

```ts theme={null}
await corsair.heypocket.api.organization.invites.resend({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6', inviteId: 'inv_abc123' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `inviteId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |

***

### invites.revoke

`organization.invites.revoke`

Revoke a pending invitation; its link stops working. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `destructive`

```ts theme={null}
await corsair.heypocket.api.organization.invites.revoke({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6', inviteId: 'inv_abc123' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `inviteId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |

***

### invites.send

`organization.invites.send`

Email an invitation to join the organization. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `destructive`

```ts theme={null}
await corsair.heypocket.api.organization.invites.send({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6', email: 'ada@example.com', role: 'viewer' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `email` | `string` | Yes | Who to invite. |
| `role` | `owner \| admin \| member \| viewer` | No | Role on accepting (default member). |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | — |
| `email` | `string \| null` | No | — |
| `role` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `created_at` | `string \| null` | No | — |
| `expires_at` | `string \| null` | No | — |

***

### members.update

`organization.members.update`

Change a member's role (owner, admin, member, viewer) or status (active, pending, removed). Removing a member revokes their access. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `destructive`

```ts theme={null}
await corsair.heypocket.api.organization.members.update({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6', userId: 'usr_002', role: 'admin' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `userId` | `string` | Yes | — |
| `role` | `owner \| admin \| member \| viewer` | No | — |
| `status` | `active \| pending \| removed` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `user_id` | `string` | Yes | — |
| `email` | `string \| null` | No | — |
| `name` | `string \| null` | No | — |
| `role` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `updated_at` | `string \| null` | No | — |

***

### recordings.delete

`organization.recordings.delete`

Delete a recording: a soft delete, or with permanent: true the recording and all its data for good. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `destructive`

```ts theme={null}
await corsair.heypocket.api.organization.recordings.delete({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6', recordingId: 'rec_abc123' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `recordingId` | `string` | Yes | — |
| `permanent` | `boolean` | No | true deletes the recording and all its data for good; default is a soft delete. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |

***

### recordings.get

`organization.recordings.get`

Get one organization recording; include adds transcript, summary or action items. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `read`

```ts theme={null}
await corsair.heypocket.api.organization.recordings.get({
	orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6',
	recordingId: 'rec_abc123',
	include: ['transcript', 'summary'],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `recordingId` | `string` | Yes | — |
| `include` | `string[]` | No | Related data to include, such as transcript, summary, action\_items. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | — |
| `title` | `string \| null` | No | — |
| `description` | `string \| null` | No | — |
| `duration` | `number \| null` | No | — |
| `language` | `string \| null` | No | — |
| `recorded_by` | `JsonValue` | No | — |
| `tags` | `JsonValue[] \| null` | No | — |
| `created_at` | `string \| null` | No | — |
| `updated_at` | `string \| null` | No | — |
| `transcript` | `JsonValue` | No | — |
| `summary` | `JsonValue` | No | — |

***

### recordings.list

`organization.recordings.list`

List the organization's recordings by date, tags or recorder (page or cursor). Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `read`

```ts theme={null}
await corsair.heypocket.api.organization.recordings.list({
	orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6',
	startDate: '2026-11-01',
	endDate: '2026-11-30',
	limit: 20,
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `date` | `string` | No | One day. |
| `startDate` | `string` | No | — |
| `endDate` | `string` | No | — |
| `tagIds` | `string[]` | No | Sent comma-separated. |
| `tagMode` | `any \| all` | No | — |
| `recordedBy` | `string` | No | Recorder user ID. |
| `recordedByEmail` | `string` | No | — |
| `page` | `number` | No | — |
| `limit` | `number` | No | — |
| `cursor` | `string` | No | pagination.next\_cursor of the previous page. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `recordings` | `object[]` | Yes | — |
| `pagination` | `object \| null` | No | — |

> [accordion] recordings full type
>
> ```ts theme={null}
> {
>   id: string,
>   title?: string | null,
>   description?: string | null,
>   duration?: number | null,
>   language?: string | null,
>   recorded_by?: JsonValue,
>   tags?: JsonValue[] | null,
>   created_at?: string | null,
>   updated_at?: string | null,
>   transcript?: JsonValue,
>   summary?: JsonValue
> }[]
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   page?: number | null,
>   limit?: number | null,
>   total?: number | null,
>   total_pages?: number | null,
>   has_more?: boolean | null,
>   next_cursor?: string | null
> } | null
> ```

***

### recordings.update

`organization.recordings.update`

Change a recording's title, description or tags (tags are replaced). Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `write`

```ts theme={null}
await corsair.heypocket.api.organization.recordings.update({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6', recordingId: 'rec_abc123', title: 'Team standup, week 48' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `recordingId` | `string` | Yes | — |
| `title` | `string` | No | — |
| `description` | `string` | No | — |
| `tags` | `string[]` | No | Replacement tag IDs. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | — |
| `title` | `string \| null` | No | — |
| `description` | `string \| null` | No | — |
| `duration` | `number \| null` | No | — |
| `language` | `string \| null` | No | — |
| `recorded_by` | `JsonValue` | No | — |
| `tags` | `JsonValue[] \| null` | No | — |
| `created_at` | `string \| null` | No | — |
| `updated_at` | `string \| null` | No | — |
| `transcript` | `JsonValue` | No | — |
| `summary` | `JsonValue` | No | — |

***

### templates.create

`organization.templates.create`

Create a shared summary template (name and ordered sections, each a title and a prompt); it shows up for every member. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `write`

```ts theme={null}
await corsair.heypocket.api.organization.templates.create({
	orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6',
	name: 'Sales call debrief',
	sections: [{ title: 'Key takeaways', prompt: 'List the main outcomes' }, { title: 'Action items', prompt: 'Extract follow-up tasks' }],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `name` | `string` | Yes | — |
| `description` | `string` | No | — |
| `sections` | `object[]` | Yes | — |

> [accordion] sections full type
>
> ```ts theme={null}
> {
>   title: string,
>   prompt: string
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | — |
| `name` | `string \| null` | No | — |
| `description` | `string \| null` | No | — |
| `sections` | `object[] \| null` | No | — |
| `created_at` | `string \| null` | No | — |
| `updated_at` | `string \| null` | No | — |

> [accordion] sections full type
>
> ```ts theme={null}
> {
>   title?: string | null,
>   prompt?: string | null
> }[] | null
> ```

***

### templates.delete

`organization.templates.delete`

Delete a shared template; summaries made with it stay. Cannot be undone. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `destructive`

```ts theme={null}
await corsair.heypocket.api.organization.templates.delete({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6', templateId: 'tpl_abc123' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `templateId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |

***

### templates.get

`organization.templates.get`

Get one shared summary template with its sections. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `read`

```ts theme={null}
await corsair.heypocket.api.organization.templates.get({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6', templateId: 'tpl_abc123' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `templateId` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | — |
| `name` | `string \| null` | No | — |
| `description` | `string \| null` | No | — |
| `sections` | `object[] \| null` | No | — |
| `created_at` | `string \| null` | No | — |
| `updated_at` | `string \| null` | No | — |

> [accordion] sections full type
>
> ```ts theme={null}
> {
>   title?: string | null,
>   prompt?: string | null
> }[] | null
> ```

***

### templates.list

`organization.templates.list`

List the organization's shared summary templates. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `read`

```ts theme={null}
await corsair.heypocket.api.organization.templates.list({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `templates` | `object[]` | Yes | — |

> [accordion] templates full type
>
> ```ts theme={null}
> {
>   id: string,
>   name?: string | null,
>   description?: string | null,
>   sections?: {
>     title?: string | null,
>     prompt?: string | null
>   }[] | null,
>   created_at?: string | null,
>   updated_at?: string | null
> }[]
> ```

***

### templates.update

`organization.templates.update`

Change a shared template; sections, when given, replace all sections. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `write`

```ts theme={null}
await corsair.heypocket.api.organization.templates.update({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6', templateId: 'tpl_abc123', name: 'Sales call debrief v2' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `templateId` | `string` | Yes | — |
| `name` | `string` | No | — |
| `description` | `string` | No | — |
| `sections` | `object[]` | No | Replaces every section. |

> [accordion] sections full type
>
> ```ts theme={null}
> {
>   title: string,
>   prompt: string
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | — |
| `name` | `string \| null` | No | — |
| `description` | `string \| null` | No | — |
| `sections` | `object[] \| null` | No | — |
| `created_at` | `string \| null` | No | — |
| `updated_at` | `string \| null` | No | — |

> [accordion] sections full type
>
> ```ts theme={null}
> {
>   title?: string | null,
>   prompt?: string | null
> }[] | null
> ```

***

### webhooks.create

`organization.webhooks.create`

Add an organization webhook: Pocket posts recording events of every member to the URL. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `write`

```ts theme={null}
await corsair.heypocket.api.organization.webhooks.create({
	orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6',
	webhook: {
		url: 'https://example.com/hooks/pocket',
		events: ['summary.completed'],
	},
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `webhook` | `object` | Yes | — |

> [accordion] webhook full type
>
> ```ts theme={null}
> {
>   url?: string,
>   events?: string[]
> }
> ```

**Output:** `JsonValue`

***

### webhooks.delete

`organization.webhooks.delete`

Remove an organization webhook integration. Cannot be undone. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `destructive`

```ts theme={null}
await corsair.heypocket.api.organization.webhooks.delete({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6', webhookId: 'wh_abc123' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `webhookId` | `string` | Yes | — |

**Output:** `JsonValue`

***

### webhooks.get

`organization.webhooks.get`

Get one organization webhook integration. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `read`

```ts theme={null}
await corsair.heypocket.api.organization.webhooks.get({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6', webhookId: 'wh_abc123' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `webhookId` | `string` | Yes | — |

**Output:** `JsonValue`

***

### webhooks.list

`organization.webhooks.list`

List the organization's webhook integrations. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `read`

```ts theme={null}
await corsair.heypocket.api.organization.webhooks.list({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |

**Output:** `JsonValue`

***

### webhooks.test

`organization.webhooks.test`

Send a sample event to an organization webhook's URL. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `write`

```ts theme={null}
await corsair.heypocket.api.organization.webhooks.test({ orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6', webhookId: 'wh_abc123' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `webhookId` | `string` | Yes | — |

**Output:** `JsonValue`

***

### webhooks.update

`organization.webhooks.update`

Change an organization webhook integration. Needs an organization API key (Pocket Enterprise); a personal key is refused.

**Risk:** `write`

```ts theme={null}
await corsair.heypocket.api.organization.webhooks.update({
	orgId: 'd8a4dd6f-6457-41a9-9c12-cfe27f35b8e6',
	webhookId: 'wh_abc123',
	webhook: {
		events: ['summary.completed', 'recording.created'],
	},
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `orgId` | `string` | Yes | Organization (workspace) ID: Settings > Developers > Workspace ID in the Pocket app. |
| `webhookId` | `string` | Yes | — |
| `webhook` | `object` | Yes | — |

> [accordion] webhook full type
>
> ```ts theme={null}
> {
>   url?: string,
>   events?: string[]
> }
> ```

**Output:** `JsonValue`

***

## Recordings

### createUploadUrl

`recordings.createUploadUrl`

Create a recording and a pre-signed URL to PUT its audio file to (valid for expires\_in seconds). Pocket transcribes and summarizes it after the upload. Needs a personal key with recordings:write; organization keys are refused.

**Risk:** `write`

```ts theme={null}
await corsair.heypocket.api.recordings.createUploadUrl({
	file_name: 'standup.mp3',
	content_type: 'audio/mpeg',
	title: 'Team standup',
	duration: 900,
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `file_name` | `string` | No | File name, such as standup.mp3. |
| `content_type` | `string` | No | MIME type of the audio, such as audio/mpeg. |
| `title` | `string` | No | Recording title. |
| `duration` | `number` | No | Length in seconds. |
| `recording_at` | `string` | No | When it was recorded (ISO 8601). |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |
| `data` | `object` | Yes | — |
| `pagination` | `object \| null` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   recording_id: string,
>   upload_url: string,
>   s3_key?: string | null,
>   expires_in?: number | null
> }
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   page?: number | null,
>   limit?: number | null,
>   total?: number | null,
>   total_pages?: number | null,
>   has_more?: boolean | null,
>   next_cursor?: string | null
> } | null
> ```

***

### get

`recordings.get`

Get one recording with its transcript segments (speaker, text, start, end) and summarizations (summary, action items, mind maps), keyed by summarization ID.

**Risk:** `read`

```ts theme={null}
await corsair.heypocket.api.recordings.get({ id: '31096f39-ab79-4ffa-b746-d96aaff39122', include_summarizations: false });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | Recording ID. |
| `include_transcript` | `boolean` | No | Default true. |
| `include_summarizations` | `boolean` | No | Default true. |
| `summarization_id` | `string` | No | Return only this summarization. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |
| `data` | `object` | Yes | — |
| `pagination` | `object \| null` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id: string,
>   title?: string | null,
>   folder_id?: string | null,
>   duration?: number | null,
>   state?: string | null,
>   language?: string | null,
>   recording_at?: string | null,
>   created_at?: string | null,
>   updated_at?: string | null,
>   recorded_by?: {
>     user_id?: string | null,
>     email?: string | null,
>     display_name?: string | null
>   } | null,
>   tags?: {
>     id: string,
>     name?: string | null,
>     color?: string | null,
>     usage_count?: number | null
>   }[] | null,
>   speakers?: Record<string, {
>     name?: string | null,
>     speakerId?: string | null
>   }> | null,
>   transcript?: {
>     metadata?: Record<string, JsonValue> | null,
>     segments?: {
>       start?: number | null,
>       end?: number | null,
>       speaker?: string | null,
>       speakerName?: string | null,
>       text?: string | null,
>       originalText?: string | null
>     }[] | null
>   } | null,
>   transcript_error?: string | null,
>   summarizations?: Record<string, JsonValue> | null,
>   summarizations_errors?: string[] | null,
>   translation?: Record<string, JsonValue> | null,
>   translation_error?: string | null
> }
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   page?: number | null,
>   limit?: number | null,
>   total?: number | null,
>   total_pages?: number | null,
>   has_more?: boolean | null,
>   next_cursor?: string | null
> } | null
> ```

***

### getAudioUrl

`recordings.getAudioUrl`

Get a pre-signed download URL for a recording's audio (60 s to 24 h). The URL carries its own access: keep it out of logs.

**Risk:** `read`

```ts theme={null}
await corsair.heypocket.api.recordings.getAudioUrl({ id: '31096f39-ab79-4ffa-b746-d96aaff39122', expires_in: 300 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | Recording ID. |
| `expires_in` | `number` | No | Link lifetime in seconds (default 3600). |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |
| `data` | `object` | Yes | — |
| `pagination` | `object \| null` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   signed_url: string,
>   expires_in?: number | null,
>   expires_at?: string | null
> }
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   page?: number | null,
>   limit?: number | null,
>   total?: number | null,
>   total_pages?: number | null,
>   has_more?: boolean | null,
>   next_cursor?: string | null
> } | null
> ```

***

### list

`recordings.list`

List your recordings, newest first, by UTC date range or tags (page and limit, up to 100). Transcripts and summaries come with recordings.get.

**Risk:** `read`

```ts theme={null}
await corsair.heypocket.api.recordings.list({ start_date: '2026-11-01', end_date: '2026-11-30', limit: 10 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `start_date` | `string` | No | From this date (UTC midnight). |
| `end_date` | `string` | No | Until this date (UTC 23:59:59). |
| `tag_ids` | `string[]` | No | Only recordings with these tags (sent comma-separated). |
| `page` | `number` | No | Page number (default 1). |
| `limit` | `number` | No | Items per page (default 20, up to 100). |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |
| `data` | `object[]` | Yes | — |
| `pagination` | `object \| null` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id: string,
>   title?: string | null,
>   folder_id?: string | null,
>   duration?: number | null,
>   state?: string | null,
>   language?: string | null,
>   recording_at?: string | null,
>   created_at?: string | null,
>   updated_at?: string | null,
>   recorded_by?: {
>     user_id?: string | null,
>     email?: string | null,
>     display_name?: string | null
>   } | null,
>   tags?: {
>     id: string,
>     name?: string | null,
>     color?: string | null,
>     usage_count?: number | null
>   }[] | null,
>   speakers?: Record<string, {
>     name?: string | null,
>     speakerId?: string | null
>   }> | null,
>   transcript?: {
>     metadata?: Record<string, JsonValue> | null,
>     segments?: {
>       start?: number | null,
>       end?: number | null,
>       speaker?: string | null,
>       speakerName?: string | null,
>       text?: string | null,
>       originalText?: string | null
>     }[] | null
>   } | null,
>   transcript_error?: string | null,
>   summarizations?: Record<string, JsonValue> | null,
>   summarizations_errors?: string[] | null,
>   translation?: Record<string, JsonValue> | null,
>   translation_error?: string | null
> }[]
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   page?: number | null,
>   limit?: number | null,
>   total?: number | null,
>   total_pages?: number | null,
>   has_more?: boolean | null,
>   next_cursor?: string | null
> } | null
> ```

***

### search

`recordings.search`

Semantic search across your transcripts, summaries and action items; returns the relevant passages (relevantMemories).

**Risk:** `read`

```ts theme={null}
await corsair.heypocket.api.recordings.search({ query: 'launch date decisions', limit: 5 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `query` | `string` | Yes | What to look for in transcripts, summaries and action items. |
| `limit` | `number` | No | Results (1-20, default 8). |
| `filters` | `Record<string, JsonValue>` | No | Optional filters to narrow the results. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |
| `data` | `object` | Yes | — |
| `pagination` | `object \| null` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   relevantMemories?: JsonValue[] | null,
>   total?: number | null,
>   timing?: number | null
> }
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   page?: number | null,
>   limit?: number | null,
>   total?: number | null,
>   total_pages?: number | null,
>   has_more?: boolean | null,
>   next_cursor?: string | null
> } | null
> ```

***

## Tags

### list

`tags.list`

List your tags with their usage counts.

**Risk:** `read`

```ts theme={null}
await corsair.heypocket.api.tags.list({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |
| `data` | `object[]` | Yes | — |
| `pagination` | `object \| null` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   id: string,
>   name?: string | null,
>   color?: string | null,
>   usage_count?: number | null
> }[]
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   page?: number | null,
>   limit?: number | null,
>   total?: number | null,
>   total_pages?: number | null,
>   has_more?: boolean | null,
>   next_cursor?: string | null
> } | null
> ```

***

## Users

### getSettings

`users.getSettings`

Get a member's settings and notifications, and on request their profile, learned preferences and tags. Needs an organization API key with the users scope; a personal key is refused.

**Risk:** `read`

```ts theme={null}
await corsair.heypocket.api.users.getSettings({
	user_id: 'usr_001',
	include: ['profile', 'preferences'],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `user_id` | `string` | Yes | Member user ID. |
| `include` | `(profile \| preferences \| tags \| none)[]` | No | Optional sections; `none` leaves out notifications. |
| `preferences_page` | `number` | No | — |
| `preferences_limit` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |
| `data` | `object` | Yes | — |
| `pagination` | `object \| null` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   user?: {
>     user_id?: string,
>     email?: string | null,
>     display_name?: string | null,
>     role?: string | null,
>     status?: string | null,
>     is_active?: boolean | null,
>     created_at?: string | null,
>     updated_at?: string | null,
>     member_since?: string | null,
>     recording_count?: number | null,
>     latest_recording_at?: string | null
>   } | null,
>   settings?: Record<string, JsonValue> | null,
>   notifications?: Record<string, JsonValue> | null,
>   profile?: Record<string, JsonValue> | null,
>   preferences?: JsonValue,
>   tags?: JsonValue[] | null
> }
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   page?: number | null,
>   limit?: number | null,
>   total?: number | null,
>   total_pages?: number | null,
>   has_more?: boolean | null,
>   next_cursor?: string | null
> } | null
> ```

***

### list

`users.list`

List active members of the organization the key belongs to, sorted by email; q matches email or name. Needs an organization API key with the users scope; a personal key is refused.

**Risk:** `read`

```ts theme={null}
await corsair.heypocket.api.users.list({ q: 'ada', limit: 25 });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `q` | `string` | No | Match on email or display name. |
| `page` | `number` | No | — |
| `limit` | `number` | No | Default 25. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |
| `data` | `object[]` | Yes | — |
| `pagination` | `object \| null` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   user_id: string,
>   email?: string | null,
>   display_name?: string | null,
>   role?: string | null,
>   status?: string | null,
>   is_active?: boolean | null,
>   created_at?: string | null,
>   updated_at?: string | null,
>   member_since?: string | null,
>   recording_count?: number | null,
>   latest_recording_at?: string | null
> }[]
> ```

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   page?: number | null,
>   limit?: number | null,
>   total?: number | null,
>   total_pages?: number | null,
>   has_more?: boolean | null,
>   next_cursor?: string | null
> } | null
> ```

***

### updateSettings

`users.updateSettings`

Change a member's settings, notifications, profile or learned preferences; a preference with delete: true is removed for good. Needs an organization API key with the users scope; a personal key is refused.

**Risk:** `destructive`

```ts theme={null}
await corsair.heypocket.api.users.updateSettings({
	user_id: 'usr_001',
	settings: { conversation_language: 'English (US)' },
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `user_id` | `string` | Yes | Member user ID. |
| `settings` | `Record<string, JsonValue>` | No | Allow-listed settings: selected\_theme, selected\_model, conversation\_language, auto\_transcription... |
| `notifications` | `Record<string, JsonValue>` | No | Notification settings: highlight\_time, reminder\_notifications\_enabled... |
| `profile` | `object` | No | Markdown profile, stored encrypted under the member (a new version). |
| `preferences` | `object[]` | No | Create (no id), update (id + fields) or delete (id + delete: true) learned preferences. |

> [accordion] profile full type
>
> ```ts theme={null}
> {
>   profile: string
> }
> ```

> [accordion] preferences full type
>
> ```ts theme={null}
> {
>   id?: string,
>   command?: string,
>   command_type?: string,
>   preference_content?: string,
>   delete?: true
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `boolean` | Yes | — |
| `applied` | `Record<string, JsonValue> \| null` | No | — |
| `profile_version` | `number \| null` | No | — |

***


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