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

# Tasks

# Tasks

Tasks are the primary unit of work. They belong to a team and can be nested under a parent task.

## Status values

`TODO` · `IN_PROGRESS` · `IN_REVIEW` · `BLOCKED` · `DONE` · `CANCELLED`

## Priority values

`LOW` · `MEDIUM` · `HIGH` · `URGENT`

***

## List tasks

```http theme={null}
GET /task
Authorization: Bearer <token>
```

Returns a paginated list of tasks visible to the authenticated user.

***

## Get task

```http theme={null}
GET /task/:id
Authorization: Bearer <token>
```

Also accepts the short reference form (e.g. `PLAT-42`).

***

## Create task

```http theme={null}
POST /task
Authorization: Bearer <token>
Content-Type: application/json
```

```json theme={null}
{
  "title": "Fix login bug",
  "teamId": "team_01jq...",
  "status": "TODO",
  "priority": "HIGH",
  "dueDate": "2026-05-01"
}
```

Required: `title`, `teamId`.

***

## Update task

```http theme={null}
PATCH /task/:id
Authorization: Bearer <token>
Content-Type: application/json
```

```json theme={null}
{ "status": "IN_PROGRESS", "assigneeId": "user_01jq..." }
```

All fields are optional; only provided fields are updated.

***

## Delete task

```http theme={null}
DELETE /task/:id
Authorization: Bearer <token>
```

***

## List sub-tasks

```http theme={null}
GET /task/:id/task
Authorization: Bearer <token>
```

Returns child tasks nested under the given task.
