> ## 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 Connecteam: every `connecteam.api.*` operation with input and output types.

Every `connecteam.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).

## Attachments

### generateUploadUrl

`attachments.generateUploadUrl`

Generate a time-limited pre-signed file upload URL

**Risk:** `write`

```ts theme={null}
await corsair.connecteam.api.attachments.generateUploadUrl({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `fileName` | `string` | Yes | — |
| `featureType` | `chat \| shiftscheduler \| users \| quicktasks` | Yes | — |
| `fileTypeHint` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `requestId` | `string` | No | — |
| `data` | `object` | Yes | — |
| `paging` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   fileId: string,
>   uploadFileUrl: string
> }
> ```

> [accordion] paging full type
>
> ```ts theme={null}
> {
>   offset?: number
> }
> ```

***

## Chat

### get

`chat.get`

List team chats and channels

**Risk:** `read`

```ts theme={null}
await corsair.connecteam.api.chat.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `requestId` | `string` | No | — |
| `data` | `object` | Yes | — |
| `paging` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   conversations?: {
>     id?: number | string,
>     conversationId?: number | string,
>     type?: string | null,
>     title?: string | null
>   }[]
> }
> ```

> [accordion] paging full type
>
> ```ts theme={null}
> {
>   offset?: number
> }
> ```

***

## Custom Field Categories

### get

`customFieldCategories.get`

List custom field categories

**Risk:** `read`

```ts theme={null}
await corsair.connecteam.api.customFieldCategories.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `ids` | `number[]` | No | — |
| `names` | `string[]` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `requestId` | `string` | No | — |
| `data` | `object` | Yes | — |
| `paging` | `object` | No | — |

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

> [accordion] paging full type
>
> ```ts theme={null}
> {
>   offset?: number
> }
> ```

***

## Custom Fields

### get

`customFields.get`

List custom fields with optional filters and pagination

**Risk:** `read`

```ts theme={null}
await corsair.connecteam.api.customFields.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `customFieldTypes` | `string[]` | No | — |
| `customFieldIds` | `number[]` | No | — |
| `names` | `string[]` | No | — |
| `categoryIds` | `number[]` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `requestId` | `string` | No | — |
| `data` | `object` | Yes | — |
| `paging` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   customFields: {
>     id: number,
>     name?: string | null,
>     type?: string | null,
>     categoryId?: number | null,
>     isRequired?: boolean | null,
>     isVisibleToAllAdmins?: boolean | null,
>     isEditableForAllAdmins?: boolean | null,
>     isVisibleToUsers?: boolean | null,
>     isEditableForUsers?: boolean | null,
>     isMultiSelect?: boolean | null,
>     dropdownOptions?: any[]
>   }[]
> }
> ```

> [accordion] paging full type
>
> ```ts theme={null}
> {
>   offset?: number
> }
> ```

***

## Forms

### get

`forms.get`

List form definitions

**Risk:** `read`

```ts theme={null}
await corsair.connecteam.api.forms.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `name` | `string` | No | — |
| `startDate` | `string` | No | — |
| `endDate` | `string` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `requestId` | `string` | No | — |
| `data` | `object` | Yes | — |
| `paging` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   forms: {
>     formId: number,
>     formName?: string | null,
>     createdAt?: number | null,
>     lastUpdatedAt?: number | null,
>     questions?: any[],
>     settings?: any
>   }[]
> }
> ```

> [accordion] paging full type
>
> ```ts theme={null}
> {
>   offset?: number
> }
> ```

***

## Jobs

### get

`jobs.get`

List jobs for a scheduler or time clock instance

**Risk:** `read`

```ts theme={null}
await corsair.connecteam.api.jobs.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `instanceIds` | `number[]` | No | — |
| `jobIds` | `string[]` | No | — |
| `jobNames` | `string[]` | No | — |
| `jobCodes` | `string[]` | No | — |
| `includeDeleted` | `boolean` | No | — |
| `sort` | `title` | No | — |
| `order` | `asc \| desc` | No | — |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `requestId` | `string` | No | — |
| `data` | `object` | Yes | — |
| `paging` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   jobs: {
>     jobId: string,
>     title?: string | null,
>     code?: string | null,
>     color?: string | null,
>     description?: string | null,
>     gps?: any,
>     isDeleted?: boolean | null,
>     assign?: any,
>     useParentData?: boolean | null,
>     parentId?: string | null,
>     subJobs?: any[],
>     instanceIds?: number[],
>     customFields?: any[]
>   }[],
>   paging?: {
>     offset?: number
>   }
> }
> ```

> [accordion] paging full type
>
> ```ts theme={null}
> {
>   offset?: number
> }
> ```

***

## Me

### list

`me.list`

Get Connecteam account company name and company ID

**Risk:** `read`

```ts theme={null}
await corsair.connecteam.api.me.list({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `requestId` | `string` | No | — |
| `data` | `object` | Yes | — |
| `paging` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   companyId: string,
>   companyName?: string | null
> }
> ```

> [accordion] paging full type
>
> ```ts theme={null}
> {
>   offset?: number
> }
> ```

***

## Performance Indicators

### get

`performanceIndicators.get`

List performance metric indicators

**Risk:** `read`

```ts theme={null}
await corsair.connecteam.api.performanceIndicators.get({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `requestId` | `string` | No | — |
| `data` | `object` | Yes | — |
| `paging` | `object` | No | — |

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

> [accordion] paging full type
>
> ```ts theme={null}
> {
>   offset?: number
> }
> ```

***

## Policy Types

### get

`policyTypes.get`

List time-off policy types

**Risk:** `read`

```ts theme={null}
await corsair.connecteam.api.policyTypes.get({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `requestId` | `string` | No | — |
| `data` | `object` | Yes | — |
| `paging` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   policyTypes?: {
>     id?: string | number,
>     policyTypeId?: string | number,
>     name?: string | null,
>     policies?: {
>       id?: string | number,
>       name?: string | null,
>       unit?: string | null,
>       accrualType?: string | null
>     }[]
>   }[],
>   policies?: {
>     id?: string | number,
>     policyTypeId?: string | number,
>     name?: string | null,
>     policies?: {
>       id?: string | number,
>       name?: string | null,
>       unit?: string | null,
>       accrualType?: string | null
>     }[]
>   }[]
> }
> ```

> [accordion] paging full type
>
> ```ts theme={null}
> {
>   offset?: number
> }
> ```

***

## Publishers

### get

`publishers.get`

List custom publishers

**Risk:** `read`

```ts theme={null}
await corsair.connecteam.api.publishers.get({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `requestId` | `string` | No | — |
| `data` | `object` | Yes | — |
| `paging` | `object` | No | — |

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

> [accordion] paging full type
>
> ```ts theme={null}
> {
>   offset?: number
> }
> ```

***

## Schedulers

### get

`schedulers.get`

List job schedulers

**Risk:** `read`

```ts theme={null}
await corsair.connecteam.api.schedulers.get({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `requestId` | `string` | No | — |
| `data` | `object` | Yes | — |
| `paging` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   schedulers: {
>     schedulerId: number,
>     name?: string | null,
>     isArchived?: boolean | null,
>     timezone?: string | null
>   }[]
> }
> ```

> [accordion] paging full type
>
> ```ts theme={null}
> {
>   offset?: number
> }
> ```

***

## Smart Groups

### get

`smartGroups.get`

List smart groups

**Risk:** `read`

```ts theme={null}
await corsair.connecteam.api.smartGroups.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `number` | No | — |
| `name` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `requestId` | `string` | No | — |
| `data` | `object` | Yes | — |
| `paging` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   groups?: {
>     id?: number,
>     smartGroupId?: number | null,
>     name?: string | null,
>     groupSegmentId?: number | null,
>     description?: string | null
>   }[],
>   smartGroups?: {
>     id?: number,
>     smartGroupId?: number | null,
>     name?: string | null,
>     groupSegmentId?: number | null,
>     description?: string | null
>   }[]
> }
> ```

> [accordion] paging full type
>
> ```ts theme={null}
> {
>   offset?: number
> }
> ```

***

## Task Boards

### get

`taskBoards.get`

List task boards

**Risk:** `read`

```ts theme={null}
await corsair.connecteam.api.taskBoards.get({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `requestId` | `string` | No | — |
| `data` | `object` | Yes | — |
| `paging` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   taskBoards?: {
>     id?: number | string,
>     taskBoardId?: number | null,
>     name?: string | null,
>     title?: string | null,
>     isArchived?: boolean | null
>   }[],
>   taskboards?: {
>     id?: number | string,
>     taskBoardId?: number | null,
>     name?: string | null,
>     title?: string | null,
>     isArchived?: boolean | null
>   }[]
> }
> ```

> [accordion] paging full type
>
> ```ts theme={null}
> {
>   offset?: number
> }
> ```

***

## Users

### archive

`users.archive`

Archive Connecteam users by ID without deleting records

**Risk:** `write`

```ts theme={null}
await corsair.connecteam.api.users.archive({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `userIds` | `number[]` | Yes | — |

**Output**

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

***

### create

`users.create`

Create users in Connecteam

**Risk:** `write`

```ts theme={null}
await corsair.connecteam.api.users.create({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `users` | `object[]` | Yes | — |
| `sendActivation` | `boolean` | No | — |

> [accordion] users full type
>
> ```ts theme={null}
> {
>   firstName: string,
>   lastName?: string,
>   phoneNumber: string,
>   email?: string,
>   userType?: user,
>   isArchived?: boolean,
>   customFields?: any[]
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `requestId` | `string` | No | — |
| `data` | `object` | No | — |
| `paging` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   results?: {
>     userId: number,
>     firstName?: string | null,
>     lastName?: string | null,
>     phoneNumber?: string | null,
>     userType?: string | null,
>     email?: string | null,
>     customFields?: any[],
>     isArchived?: boolean | null,
>     kioskCode?: string | null,
>     createdAt?: number | null,
>     modifiedAt?: number | null,
>     archivedAt?: number | null,
>     lastLogin?: number | null,
>     smartGroupsIds?: number[],
>     invitedToBeManager?: boolean | null,
>     profilePictureUrl?: string | null,
>     mobileDevice?: string | null,
>     osVersion?: string | null,
>     appVersion?: string | null,
>     mobileDeviceId?: string | null
>   }[]
> }
> ```

> [accordion] paging full type
>
> ```ts theme={null}
> {
>   offset?: number
> }
> ```

***

### get

`users.get`

List Connecteam users with optional filters and pagination

**Risk:** `read`

```ts theme={null}
await corsair.connecteam.api.users.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |
| `sort` | `created_at` | No | — |
| `order` | `asc \| desc` | No | — |
| `userIds` | `number[]` | No | — |
| `userStatus` | `active \| archived \| all` | No | — |
| `fullNames` | `string[]` | No | — |
| `phoneNumbers` | `string[]` | No | — |
| `emailAddresses` | `string[]` | No | — |
| `createdAt` | `number` | No | — |
| `modifiedAt` | `number` | No | — |
| `lastLogin` | `number` | No | — |
| `archivedAt` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `requestId` | `string` | No | — |
| `data` | `object` | Yes | — |
| `paging` | `object` | No | — |

> [accordion] data full type
>
> ```ts theme={null}
> {
>   users: {
>     userId: number,
>     firstName?: string | null,
>     lastName?: string | null,
>     phoneNumber?: string | null,
>     userType?: string | null,
>     email?: string | null,
>     customFields?: any[],
>     isArchived?: boolean | null,
>     kioskCode?: string | null,
>     createdAt?: number | null,
>     modifiedAt?: number | null,
>     archivedAt?: number | null,
>     lastLogin?: number | null,
>     smartGroupsIds?: number[],
>     invitedToBeManager?: boolean | null,
>     profilePictureUrl?: string | null,
>     mobileDevice?: string | null,
>     osVersion?: string | null,
>     appVersion?: string | null,
>     mobileDeviceId?: string | null
>   }[]
> }
> ```

> [accordion] paging full type
>
> ```ts theme={null}
> {
>   offset?: number
> }
> ```

***


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