# Tasks

> Tasks (conversations of kind task) and Needs you: 75 endpoints of the Teemli API.

Source: https://docs.teemli.com/developers/reference/tasks/

Generated from [`api/openapi.yaml`](/developers/api/) (OpenAPI 3.1). Base URL: `https://api.teemli.com`. Auth: `Authorization: Bearer <token or tml_ API key>`. Errors are `application/problem+json`; writes accept an `Idempotency-Key` header.

Tasks (conversations of kind task) and Needs you

## My tasks

```http
GET /v1/orgs/{org}/tasks
```

Conversations of kind `task`, most recently active first. Segments map to `state`.

**API keys:** needs the `agents:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `agent_id` | query | string (uuid) |  |
| `state` | query | `active`, `needs_you`, `done`, `failed`, `stopped`, `all` | Task segment: active (working or waiting), needs_you (an open card for me), done, failed (couldn't finish), stopped, all |
| `limit` | query | integer | Page size. |
| `cursor` | query | string | Opaque cursor from a previous page's `next_cursor`. |

**Responses**

- `200` A page of tasks — ConversationPage
- `400` Malformed request (e.g. invalid cursor or filter) — Problem
- `401` Missing, invalid or expired token — Problem

## Start a task

```http
POST /v1/orgs/{org}/tasks
```

Creates a task conversation and posts `text` as its first message; a turn starts.

**API keys:** needs the `agents:run` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Request body** (JSON)

| Field | Type | Description |
|---|---|---|
| `agent_id` (required) | string (uuid) |  |
| `title` | string |  |
| `text` (required) | string |  |

**Responses**

- `201` Task created — ConversationCreated
- `401` Missing, invalid or expired token — Problem
- `404` Not found (also returned for rows the caller may not see, and for disabled features) — Problem
- `422` Invalid input — Problem

## Everything waiting on me

```http
GET /v1/orgs/{org}/needs-you
```

Open cards routed to me, oldest first (my agents' cards, and the approvals/hand-offs of
AI employees I manage, which arrive without `conversation_id`). Group by agent on the
client. Includes non-blocking `setup_change` cards. `laptop` lists turns waiting on my
laptop: it's offline (they continue when it reconnects) or its Ask prompt is open
(answer it on the laptop). `count` = cards + laptop.

**API keys:** needs the `agents:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Responses**

- `200` Open cards and laptop waits — object
- `401` Missing, invalid or expired token — Problem

## Projects (favourites and recent first), teams, and my counts (open, overdue, today, inbox unread)

```http
GET /v1/orgs/{org}/tasks/home
```

**API keys:** needs the `tasks:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Responses**

- `200` {projects: TaskProject[], teams: {id,name,is_member}[], counts} — object
- `404` Not found (also returned for rows the caller may not see, and for disabled features) — Problem

## People I can see, AI employees shared with me (assignable), and my own agents ("Let X do it")

```http
GET /v1/orgs/{org}/tasks/directory
```

**API keys:** needs the `tasks:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Responses**

- `200` {people: TaskActor[], agents: TaskActor[], my_agents: TaskActor[]} — object

## Full-text search (Postgres tsvector, prefix matching) over items and projects you can see

```http
GET /v1/orgs/{org}/tasks/search
```

**API keys:** needs the `tasks:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `q` (required) | query | string |  |
| `project_id` | query | string (uuid) |  |
| `include_completed` | query | boolean |  |

**Responses**

- `200` {items: TaskItem[], projects: TaskProject[]} — object

## Tags (org-wide names)

```http
GET /v1/orgs/{org}/tasks/tags
```

**API keys:** needs the `tasks:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Responses**

- `200` {items: Tag[]}

## Create a tag (returns the existing one with the same name)

```http
POST /v1/orgs/{org}/tasks/tags
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Request body** (JSON)

| Field | Type | Description |
|---|---|---|
| `name` (required) | string |  |
| `color` | string |  |

**Responses**

- `201` Tag

## Built-in templates and the organisation's saved templates

```http
GET /v1/orgs/{org}/tasks/templates
```

**API keys:** needs the `tasks:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Responses**

- `200` {builtin: [{key,name,description,icon,color,sections,fields}], org: TaskProject[]}

## Projects I can see

```http
GET /v1/orgs/{org}/tasks/projects
```

**API keys:** needs the `tasks:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `archived` | query | boolean |  |
| `templates` | query | boolean |  |
| `team_id` | query | string (uuid) |  |

**Responses**

- `200` {items: TaskProject[]}

## Create a project (optionally from a built-in template key or a template project id). Guests and AI employees can't

```http
POST /v1/orgs/{org}/tasks/projects
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Request body** (JSON)

| Field | Type | Description |
|---|---|---|
| `name` (required) | string |  |
| `description` | string |  |
| `team_id` | string (uuid) |  |
| `visibility` | `org`, `team`, `private` |  |
| `public_role` | `viewer`, `commenter`, `editor` |  |
| `color` | string |  |
| `icon` | string |  |
| `template` | string |  |
| `default_view` | `list`, `board`, `timeline`, `calendar` |  |

**Responses**

- `201` The project with sections, fields and members — TaskProject
- `403` Authenticated but not allowed (e.g. unverified email, not the agent's controller, card routed to someone else) — Problem
- `422` Invalid input — Problem

## A project with sections, custom fields and members

```http
GET /v1/orgs/{org}/tasks/projects/{id}
```

**API keys:** needs the `tasks:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` TaskProject
- `404` Not found (also returned for rows the caller may not see, and for disabled features) — Problem

## Rename, describe, recolour, change visibility/public role/team, archive, default view (project admins)

```http
PATCH /v1/orgs/{org}/tasks/projects/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` TaskProject
- `403` Authenticated but not allowed (e.g. unverified email, not the agent's controller, card routed to someone else) — Problem

## Delete a project and the items only it holds (project admins)

```http
DELETE /v1/orgs/{org}/tasks/projects/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` {deleted}

## Star / unstar ({favorite})

```http
PUT /v1/orgs/{org}/tasks/projects/{id}/favorite
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` TaskProject

## Copy sections, fields, rules and tasks (no dates or assignees) into a template ({name})

```http
POST /v1/orgs/{org}/tasks/projects/{id}/save-as-template
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `201` TaskProject

## Duplicate a project with its tasks, dates and assignees ({name})

```http
POST /v1/orgs/{org}/tasks/projects/{id}/duplicate
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `201` TaskProject

## Add a person, an AI employee shared with you, or a guest by email (guests switch on; they get an email) — project admins

```http
POST /v1/orgs/{org}/tasks/projects/{id}/members
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Request body** (JSON)

| Field | Type | Description |
|---|---|---|
| `person_id` | string (uuid) |  |
| `agent_id` | string (uuid) |  |
| `email` | string |  |
| `role` | `viewer`, `commenter`, `editor`, `admin` |  |

**Responses**

- `201` {member, project}
- `403` Authenticated but not allowed (e.g. unverified email, not the agent's controller, card routed to someone else) — Problem

## Change a member's role ({role}); a private project keeps one admin

```http
PATCH /v1/orgs/{org}/tasks/projects/{id}/members/{member}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |
| `member` (required) | path | string (uuid) |  |

**Responses**

- `200` TaskProject

## Remove a member (admins) or leave (yourself)

```http
DELETE /v1/orgs/{org}/tasks/projects/{id}/members/{member}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |
| `member` (required) | path | string (uuid) |  |

**Responses**

- `200` {removed}

## Add a section ({name, after_id?}) — editors

```http
POST /v1/orgs/{org}/tasks/projects/{id}/sections
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `201` Section

## Rename or reorder ({name?, after_id?: uuid|null})

```http
PATCH /v1/orgs/{org}/tasks/sections/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` Section

## Delete a section; its items move to the first remaining section

```http
DELETE /v1/orgs/{org}/tasks/sections/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` TaskProject

## Custom field ({name, kind: text|number|select|multi_select|date|person, options?})

```http
POST /v1/orgs/{org}/tasks/projects/{id}/fields
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `201` Field

## Rename, change options (full list; keep ids), reorder

```http
PATCH /v1/orgs/{org}/tasks/fields/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` Field

## Delete a field and its values

```http
DELETE /v1/orgs/{org}/tasks/fields/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` {deleted}

## Top-level items of a project (by section, then position)

```http
GET /v1/orgs/{org}/tasks/projects/{id}/items
```

**API keys:** needs the `tasks:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |
| `completed` | query | `open`, `done`, `all` |  |

**Responses**

- `200` {items: TaskItem[]}

## Rules of a project

```http
GET /v1/orgs/{org}/tasks/projects/{id}/rules
```

**API keys:** needs the `tasks:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` {items: TaskRule[]}

## A rule: one trigger → 1-10 actions. Runs in the worker as its creator; rules triggered by rules stop after 3 hops

```http
POST /v1/orgs/{org}/tasks/projects/{id}/rules
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Request body** (JSON)

| Field | Type | Description |
|---|---|---|
| `id` | string (uuid) |  |
| `name` | string |  |
| `enabled` | boolean |  |
| `trigger` | object |  |
| `actions` | array of object |  |
| `run_count` | integer |  |
| `last_run_at` | string \\| null (date-time) |  |

**Responses**

- `201` TaskRule
- `422` Invalid input — Problem

## Change a rule (name, enabled, trigger, actions)

```http
PATCH /v1/orgs/{org}/tasks/rules/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` TaskRule

## Delete a rule

```http
DELETE /v1/orgs/{org}/tasks/rules/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` {deleted}

## Forms of a project

```http
GET /v1/orgs/{org}/tasks/projects/{id}/forms
```

**API keys:** needs the `tasks:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` {items: TaskForm[]}

## A form (public link or organisation-only) whose entries become items

```http
POST /v1/orgs/{org}/tasks/projects/{id}/forms
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `201` TaskForm

## Change a form

```http
PATCH /v1/orgs/{org}/tasks/forms/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` TaskForm

## Delete a form

```http
DELETE /v1/orgs/{org}/tasks/forms/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` {deleted}

## My saved views (filters, sorts, grouping) of a project

```http
GET /v1/orgs/{org}/tasks/projects/{id}/views
```

**API keys:** needs the `tasks:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` {items}

## Save a view ({name, kind, config})

```http
POST /v1/orgs/{org}/tasks/projects/{id}/views
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `201` SavedView

## Change a saved view

```http
PATCH /v1/orgs/{org}/tasks/views/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` SavedView

## Delete a saved view

```http
DELETE /v1/orgs/{org}/tasks/views/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` {deleted}

## Items assigned to me (done: the last 30 days)

```http
GET /v1/orgs/{org}/tasks/my-tasks
```

**API keys:** needs the `tasks:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `completed` | query | `open`, `done`, `all` |  |

**Responses**

- `200` {items: TaskItem[]}

## Create an item, a subtask (parent_id) or a private item (no project). Assigning an AI employee starts its work

```http
POST /v1/orgs/{org}/tasks/items
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Request body** (JSON)

| Field | Type | Description |
|---|---|---|
| `title` | string |  |
| `description` | string |  |
| `project_id` | string (uuid) |  |
| `section_id` | string (uuid) |  |
| `parent_id` | string \\| null (uuid) |  |
| `after_id` | string (uuid) |  |
| `completed` | boolean |  |
| `assignee` | object \\| null |  |
| `start_on` | string \\| null (date) |  |
| `due_on` | string \\| null (date) |  |
| `priority` | `low`, `medium`, `high`, `urgent`, `null` |  |
| `custom_fields` | object |  |
| `tag_ids` | array of string (uuid) |  |
| `recurrence` | object \\| null |  |

**Responses**

- `201` TaskItem — TaskItem
- `422` Invalid input — Problem

## Bulk edit ({ids, patch?, section_id?, delete?}) — all or nothing

```http
POST /v1/orgs/{org}/tasks/items/bulk
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Responses**

- `200` {updated}

## An item with my role, parents, subtasks, dependencies, followers and attachments

```http
GET /v1/orgs/{org}/tasks/items/{id}
```

**API keys:** needs the `tasks:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` TaskItemDetail
- `404` Not found (also returned for rows the caller may not see, and for disabled features) — Problem

## Change an item (JSON null clears a field; custom_fields merge)

```http
PATCH /v1/orgs/{org}/tasks/items/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Request body** (JSON)

| Field | Type | Description |
|---|---|---|
| `title` | string |  |
| `description` | string |  |
| `project_id` | string (uuid) |  |
| `section_id` | string (uuid) |  |
| `parent_id` | string \\| null (uuid) |  |
| `after_id` | string (uuid) |  |
| `completed` | boolean |  |
| `assignee` | object \\| null |  |
| `start_on` | string \\| null (date) |  |
| `due_on` | string \\| null (date) |  |
| `priority` | `low`, `medium`, `high`, `urgent`, `null` |  |
| `custom_fields` | object |  |
| `tag_ids` | array of string (uuid) |  |
| `recurrence` | object \\| null |  |

**Responses**

- `200` TaskItem
- `403` Authenticated but not allowed (e.g. unverified email, not the agent's controller, card routed to someone else) — Problem

## Delete an item and its subtasks

```http
DELETE /v1/orgs/{org}/tasks/items/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` {deleted}

## Reorder or move to a section ({project_id, section_id?, after_id?}; no after_id = top)

```http
POST /v1/orgs/{org}/tasks/items/{id}/move
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` TaskItem

## Also add to another project ({project_id, section_id?})

```http
POST /v1/orgs/{org}/tasks/items/{id}/projects
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` TaskItem

## Remove from a project

```http
DELETE /v1/orgs/{org}/tasks/items/{id}/projects/{project}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |
| `project` (required) | path | string (uuid) |  |

**Responses**

- `200` TaskItem

## Follow (no body) or add a follower ({person_id|agent_id}, editors)

```http
POST /v1/orgs/{org}/tasks/items/{id}/followers
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` TaskItemDetail

## Unfollow

```http
DELETE /v1/orgs/{org}/tasks/items/{id}/followers/{principal}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |
| `principal` (required) | path | string (uuid) |  |

**Responses**

- `200` TaskItemDetail

## Blocked by ({blocked_by_id}); cycles are refused

```http
POST /v1/orgs/{org}/tasks/items/{id}/dependencies
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` TaskItemDetail
- `422` Invalid input — Problem

## Remove a dependency

```http
DELETE /v1/orgs/{org}/tasks/items/{id}/dependencies/{other}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |
| `other` (required) | path | string (uuid) |  |

**Responses**

- `200` TaskItemDetail

## Comments and history, oldest first (Story: kind comment|activity)

```http
GET /v1/orgs/{org}/tasks/items/{id}/stories
```

**API keys:** needs the `tasks:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` {items: Story[]}

## Comment ({text, attachment_ids?}); mentions @[Name](person:ID) notify and share; @[Riya](agent:ID) asks an AI employee; replies reach an AI employee working on the item

```http
POST /v1/orgs/{org}/tasks/items/{id}/comments
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `201` Story

## Edit your comment

```http
PATCH /v1/orgs/{org}/tasks/comments/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` Story

## Delete your comment

```http
DELETE /v1/orgs/{org}/tasks/comments/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` {deleted}

## Toggle a reaction ({emoji})

```http
POST /v1/orgs/{org}/tasks/comments/{id}/reactions
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` Story

## Attach a file (raw body ≤ 25 MB, the file's Content-Type) — commenters; stored under the organisation's prefix

```http
POST /v1/orgs/{org}/tasks/items/{id}/attachments
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |
| `name` | query | string |  |

**Request body:** `application/octet-stream`.

**Responses**

- `201` Attachment
- `422` Invalid input — Problem

## Remove a file (uploader or editors)

```http
DELETE /v1/orgs/{org}/tasks/attachments/{id}
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` {deleted}

## Download (checked against the item's access on every request)

```http
GET /v1/orgs/{org}/tasks/attachments/{id}/content
```

**API keys:** needs the `tasks:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` The bytes

## “Let Scout do it” ({agent_id}: your own agent, on an item you own) → {conversation_id, item}

```http
POST /v1/orgs/{org}/tasks/items/{id}/agent
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `201` {conversation_id, item}
- `422` Invalid input — Problem

## Stop the agent working on the item

```http
DELETE /v1/orgs/{org}/tasks/items/{id}/agent
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` TaskItem

## My notifications (assigned, mentioned, commented, completed, due soon, followers, forms, agent updates)

```http
GET /v1/orgs/{org}/tasks/inbox
```

**API keys:** needs the `tasks:read` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `filter` | query | `unread`, `all`, `archived` |  |

**Responses**

- `200` {items: Notification[], unread}

## Mark everything read

```http
POST /v1/orgs/{org}/tasks/inbox/read-all
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Responses**

- `200` {unread}

## Mark read / unread ({read})

```http
POST /v1/orgs/{org}/tasks/inbox/{id}/read
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` {unread}

## Archive / unarchive ({archived})

```http
POST /v1/orgs/{org}/tasks/inbox/{id}/archive
```

**API keys:** needs the `tasks:write` scope.

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` {unread}

## Asana workspaces ({token} = personal access token, never stored; or {connection_id} = your Asana connection via Composio)

```http
POST /v1/orgs/{org}/tasks/import/asana/workspaces
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Responses**

- `200` {workspaces}

## Projects of a workspace ({token|connection_id, workspace_gid})

```http
POST /v1/orgs/{org}/tasks/import/asana/projects
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Responses**

- `200` {projects}

## Dry run: counts per project and which assignees match people here by email

```http
POST /v1/orgs/{org}/tasks/import/asana/preview
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Responses**

- `200` {projects, people: {matched, unmatched}, totals}

## Import (runs in the background as you; progress via GET /tasks/imports/{id} and live task.import.updated)

```http
POST /v1/orgs/{org}/tasks/import/asana
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Responses**

- `202` {import}

## An import's state and counts

```http
GET /v1/orgs/{org}/tasks/imports/{id}
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |
| `id` (required) | path | string (uuid) | A Tasks object (project, section, field, item, comment, rule, form, view, attachment, notification or import). |

**Responses**

- `200` Import

## CSV columns, row count, sample and a guessed mapping ({csv})

```http
POST /v1/orgs/{org}/tasks/import/csv/preview
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Responses**

- `200` {columns, rows, sample, mapping}

## Import CSV rows ({csv, mapping?, project_id? | new_project_name?})

```http
POST /v1/orgs/{org}/tasks/import/csv
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `org` (required) | path | string (uuid) | The caller's organisation id. |

**Responses**

- `201` {project_id, created}

## A form's questions. Public forms need no sign-in; organisation-only forms need a bearer token from that organisation

```http
GET /v1/forms/{token}
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `token` (required) | path | string |  |

**Responses**

- `200` {title, description, org_name, project_name, access, questions, ask_description, ask_due}
- `404` Not found (also returned for rows the caller may not see, and for disabled features) — Problem

## Submit ({title, description?, due_on?, answers, name?, email?}) → a new item in the project, created as the form's owner (20 a minute per form)

```http
POST /v1/forms/{token}
```

**API keys:** not available (needs a person signed in to the app).

| Parameter | In | Type | Description |
|---|---|---|---|
| `token` (required) | path | string |  |

**Responses**

- `201` {ok}
- `409` Conflicting state (card already answered, duplicate in flight, name taken) — Problem
