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

# API

> API reference for Workiom: every `workiom.api.*` operation with input and output types.

Every `workiom.api.*` operation is listed below with parameter shapes and return types from the plugin 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).

## Apps

### getAll

`apps.getAll`

List Workiom apps via GET /api/services/app/Apps/GetAll

**Risk:** `read`

```ts theme={null}
await corsair.workiom.api.apps.getAll({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `items` | `object[]` | Yes | — |
| `totalCount` | `number` | No | — |

> [accordion] items full type
>
> ```ts theme={null}
> {
>   id: string,
>   name?: string,
>   description?: string
> }[]
> ```

***

## Lists

### get

`lists.get`

Get a list's fields, views, and filters via GET /api/services/app/Lists/Get

**Risk:** `read`

```ts theme={null}
await corsair.workiom.api.lists.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | — |
| `expand` | `(Fields \| Views \| Filters)[]` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | — |
| `appId` | `string` | No | — |
| `name` | `string` | Yes | — |
| `description` | `string` | No | — |
| `fields` | `object[]` | No | — |
| `views` | `object[]` | No | — |
| `filters` | `object[]` | No | — |

> [accordion] fields full type
>
> ```ts theme={null}
> {
>   id: number,
>   name: string,
>   description?: string,
>   dataType?: number
> }[]
> ```

> [accordion] views full type
>
> ```ts theme={null}
> {
>   id?: number,
>   name?: string,
>   listId?: string,
>   isDefault?: boolean,
>   viewType?: number,
>   filters?: {
>     fieldId: number,
>     operator: number,
>     value?: any
>   }[]
> }[]
> ```

> [accordion] filters full type
>
> ```ts theme={null}
> {
>   fieldId: number,
>   operator: number,
>   value?: any
> }[]
> ```

***

### getAll

`lists.getAll`

Get all lists in a Workiom app via GET /api/services/app/Lists/GetAll

**Risk:** `read`

```ts theme={null}
await corsair.workiom.api.lists.getAll({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `appId` | `string` | Yes | Workiom app UUID from the app URL or Apps/GetAll |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `items` | `object[]` | Yes | — |
| `totalCount` | `number` | No | — |

> [accordion] items full type
>
> ```ts theme={null}
> {
>   id: string,
>   appId?: string,
>   name: string,
>   description?: string,
>   fields?: {
>     id: number,
>     name: string,
>     description?: string,
>     dataType?: number
>   }[],
>   views?: {
>     id?: number,
>     name?: string,
>     listId?: string,
>     isDefault?: boolean,
>     viewType?: number,
>     filters?: {
>       fieldId: number,
>       operator: number,
>       value?: any
>     }[]
>   }[],
>   filters?: {
>     fieldId: number,
>     operator: number,
>     value?: any
>   }[]
> }[]
> ```

***

## Records

### create

`records.create`

Create a list record via POST /api/services/app/Data/Create?listId=

**Risk:** `write`

```ts theme={null}
await corsair.workiom.api.records.create({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `listId` | `string` | Yes | — |
| `record` | `Record<string, any>` | Yes | Field ID keys to values, per list metadata |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `_id` | `string` | No | — |

***

### getAll

`records.getAll`

Get list records with sort, pagination, and filters via POST /api/services/app/Data/All

**Risk:** `read`

```ts theme={null}
await corsair.workiom.api.records.getAll({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `listId` | `string` | Yes | — |
| `sorting` | `string` | No | Official sort string, e.g. '11284 ASC' or '11284 DESC' |
| `maxResultCount` | `number` | No | — |
| `skipCount` | `number` | No | — |
| `filters` | `object[]` | No | — |

> [accordion] filters full type
>
> ```ts theme={null}
> {
>   fieldId: number,
>   operator: number,
>   value?: any
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `items` | `object[]` | Yes | — |
| `totalCount` | `number` | Yes | — |
| `summary` | `Record<string, any>` | No | — |

> [accordion] items full type
>
> ```ts theme={null}
> {
>   _id?: string
> }[]
> ```

***

### update

`records.update`

Replace a list record via PUT /api/services/app/Data/Update?listId=\&id=

**Risk:** `write`

```ts theme={null}
await corsair.workiom.api.records.update({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `listId` | `string` | Yes | — |
| `id` | `string` | Yes | — |
| `record` | `Record<string, any>` | Yes | Full record body; PUT replaces the record |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `_id` | `string` | No | — |

***


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