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

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

## Projects

### getList

`projects.getList`

List TimeCamp projects (root-level tasks), returning task id, name, archived status, colour, budget information and assigned users

**Risk:** `read`

```ts theme={null}
await corsair.timecamp.api.projects.getList({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `include_archived` | `boolean` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `projects` | `object[]` | Yes | — |
| `count` | `number` | Yes | — |

> [accordion] projects full type
>
> ```ts theme={null}
> {
>   task_id: string,
>   name: string,
>   archived: boolean,
>   color: string | null,
>   billable: boolean | null,
>   budgeted: number | null,
>   budget_unit: string | null,
>   note: string | null,
>   add_date: string | null,
>   edit_date: string | null,
>   root_group_id: string | null,
>   assigned_users: string[]
> }[]
> ```

***


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