---
title: "Tasks"
summary: "The tasks on a project’s board: a key such as `TL-012` (unique within its project), a status column, a priority, an assignee, a due date and a checklist. Endpoints, parameters, examples and errors."
url: "https://taskloader.com/docs/api/reference/tasks"
---

> Documentation index: https://taskloader.com/llms.txt

# Tasks

The tasks on a project’s board: a key such as `TL-012` (unique within its project), a status column, a priority, an assignee, a due date and a checklist. Endpoints, parameters, examples and errors.

The tasks on a project’s board: a key such as `TL-012` (unique within its project), a status column, a priority, an assignee, a due date and a checklist. Changing a task’s fields, moving it and deleting it need the `version` you read (as `If-Match`); a stale one gets `412 version_conflict` with the task as it is now. `edit_checklist` checks a version only when you send one, since its item edits merge with other people’s. Send an `Idempotency-Key` when you create.

More in [Conflicts and retries](https://taskloader.com/docs/guides/conflicts-and-retries.md).

## Search a project’s tasks {#search_tasks}

Lists a project’s tasks that match the filters, sorted and paged, with the total.

```http
GET /api/v1/projects/{projectId}/tasks
```

- **Scopes:** `tasks:read`
- **Who:** Viewer or above in the project
- **[Project-limited credentials](https://taskloader.com/docs/authentication.md#project-limited-credentials):** allowed inside the credential’s projects; anything else is `not_found`
- **Retries:** a read; safe to repeat
- **Rate limit:** the `read` bucket, or `search` when `q` has words
- **MCP tool:** `search_tasks`

Lists the tasks of one project that match every filter given: words in the title or description, statuses, priorities, assignees, due dates, overdue or due soon, keys, change and completion times, creator and bookmarks. Sorted by board order unless `sort` says otherwise; pages of up to 100 with `nextCursor` and a `total` counted up to 10,000. Pass `today` (or `timeZone`) for overdue and due-soon to count from your date; the answer’s `today` says which date they counted from.

#### Parameters

| Name               | In    | Type                                                                                                                                                                                                                                                                 | Required | Description                                                                                                                                                                                                                                                                                                                                                                                                         |
| ------------------ | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectId`        | path  | id (`prj_…`)                                                                                                                                                                                                                                                         | Yes      | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                                                                                                                                                                                             |
| `q`                | query | string                                                                                                                                                                                                                                                               | No       | Words to find, for example "invoice reminder": every word must appear in the title or the description, in any case. Up to 10 words over HTTP; over MCP and in the assistant a sentence of up to 40 words, of which the first 10 other than common ones (the, my, tasks…) are searched. A key such as TL-12 here finds only tasks whose text mentions it; to find the task itself, use keys. Up to 1,010 characters. |
| `status`           | query | array of `"backlog"` or `"progress"` or `"review"` or `"done"`                                                                                                                                                                                                       | No       | Only these statuses (backlog, progress, review, done), for example ["backlog","progress"] (status=backlog,progress in a query string). Up to 4 items.                                                                                                                                                                                                                                                               |
| `priority`         | query | array of `"low"` or `"normal"` or `"high"` or `"urgent"`                                                                                                                                                                                                             | No       | Only these priorities (low, normal, high, urgent), for example ["high","urgent"] (priority=high,urgent in a query string). Up to 4 items.                                                                                                                                                                                                                                                                           |
| `assigneeMemberId` | query | array of id (`mem_…`) or `"me"` or `"unassigned"`                                                                                                                                                                                                                    | No       | Only tasks assigned to any of these: members (mem_…), me, or unassigned, for example ["me","unassigned"] (me,unassigned in a query string). Member ids are per project (a person has a different one in each), and one that is not a member of the project searched is a 400. Up to 50 items.                                                                                                                       |
| `dueBefore`        | query | date (YYYY-MM-DD)                                                                                                                                                                                                                                                    | No       | Due on or before this date (YYYY-MM-DD); leaves out tasks without one.                                                                                                                                                                                                                                                                                                                                              |
| `dueAfter`         | query | date (YYYY-MM-DD)                                                                                                                                                                                                                                                    | No       | Due on or after this date (YYYY-MM-DD); leaves out tasks without one.                                                                                                                                                                                                                                                                                                                                               |
| `overdue`          | query | boolean                                                                                                                                                                                                                                                              | No       | true: only open tasks due before today. false or absent: no such condition.                                                                                                                                                                                                                                                                                                                                         |
| `dueSoon`          | query | boolean                                                                                                                                                                                                                                                              | No       | true: only open tasks due from today to a week from today. false or absent: no such condition.                                                                                                                                                                                                                                                                                                                      |
| `keys`             | query | array of string                                                                                                                                                                                                                                                      | No       | Only these tasks, by key, for example ["TL-1","TL-5"] (keys=TL-1,TL-5 in a query string). Up to 50 items.                                                                                                                                                                                                                                                                                                           |
| `updatedSince`     | query | string (date-time)                                                                                                                                                                                                                                                   | No       | Changed at or after this time (RFC 3339), for example 2026-11-18T09:00:00Z.                                                                                                                                                                                                                                                                                                                                         |
| `completedSince`   | query | string (date-time)                                                                                                                                                                                                                                                   | No       | Entered Done at or after this time (RFC 3339), for example 2026-11-18T09:00:00Z; leaves out tasks not done.                                                                                                                                                                                                                                                                                                         |
| `createdBy`        | query | id (`usr_…`) or `"me"`                                                                                                                                                                                                                                               | No       | Only tasks this person created (usr_…), or me.                                                                                                                                                                                                                                                                                                                                                                      |
| `bookmark`         | query | boolean                                                                                                                                                                                                                                                              | No       | true: only tasks that bookmark a page; false: only tasks that do not.                                                                                                                                                                                                                                                                                                                                               |
| `sort`             | query | `"position"` or `"dueDate"` or `"priority"` or `"updatedAt"` or `"createdAt"` or `"number"` or `"status"` or `"completedAt"` or `"-position"` or `"-dueDate"` or `"-priority"` or `"-updatedAt"` or `"-createdAt"` or `"-number"` or `"-status"` or `"-completedAt"` | No       | Order: position (board order), dueDate (soonest first, no date last, then priority), priority (urgent first, then due date), updatedAt, createdAt, number, status (backlog to done, then due date) or completedAt; prefix - to reverse, for example -updatedAt for the latest change first. position (board order) when left out.                                                                                   |
| `limit`            | query | integer, 1–100                                                                                                                                                                                                                                                       | No       | How many to return, 1–100, for example 50. Defaults to 50 (25 over MCP).                                                                                                                                                                                                                                                                                                                                            |
| `cursor`           | query | string                                                                                                                                                                                                                                                               | No       | The nextCursor from the previous page, to read the next one. Leave it out for the first page; start again without it when you change filters. Up to 2,048 characters.                                                                                                                                                                                                                                               |
| `today`            | query | date (YYYY-MM-DD)                                                                                                                                                                                                                                                    | No       | Your current date (YYYY-MM-DD), for overdue and due-soon; within a day of the UTC date. Defaults to the date in timeZone, else UTC.                                                                                                                                                                                                                                                                                 |
| `timeZone`         | query | string                                                                                                                                                                                                                                                               | No       | Your IANA time zone, for example Europe/Berlin, when today is not given. Up to 64 characters.                                                                                                                                                                                                                                                                                                                       |

#### Response

`200` with a list of `Task` objects; while `hasMore` is true, pass `nextCursor` back as `cursor` (with the same filters) for the next page.

| Field               | Type                | Description                                                                                                                                                                                                                                                                                                |
| ------------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `object`            | `"list"`            |                                                                                                                                                                                                                                                                                                            |
| `hasMore`           | boolean             | True when there is a next page.                                                                                                                                                                                                                                                                            |
| `nextCursor`        | string or null      | Pass it as cursor to read the next page; null on the last page.                                                                                                                                                                                                                                            |
| `data`              | array of Task       |                                                                                                                                                                                                                                                                                                            |
| `total`             | integer, at least 0 | How many match in all (every page), counted up to 10,000; see totalIsLowerBound past that.                                                                                                                                                                                                                 |
| `totalIsLowerBound` | boolean             | True when there are more than total (the count stops at 10,000).                                                                                                                                                                                                                                           |
| `today`             | string              | The date overdue and dueSoon count from (YYYY-MM-DD): your today, else the date in your timeZone, else the UTC date.                                                                                                                                                                                       |
| `searchedWords`     | array of string     | Present only when words of `q` were left out (over MCP and in the in-app assistant, punctuation around a word, a possessive ’s, and common words beside other words are): the words every task found contains, empty when none was left. The API searches for every word as it was sent and never adds it. |

Headers it sends: `Link`.

#### Errors

| Status | Code                                                        | Meaning                                    |
| ------ | ----------------------------------------------------------- | ------------------------------------------ |
| 400    | [`invalid_id`](https://taskloader.com/docs/api/errors.md#invalid_id)                 | The id is for a different kind of resource |
| 400    | [`invalid_cursor`](https://taskloader.com/docs/api/errors.md#invalid_cursor)         | The cursor is not valid                    |
| 403    | [`insufficient_scope`](https://taskloader.com/docs/api/errors.md#insufficient_scope) | The credential lacks the required access   |
| 404    | [`not_found`](https://taskloader.com/docs/api/errors.md#not_found)                   | Not found                                  |
| 422    | [`search_too_broad`](https://taskloader.com/docs/api/errors.md#search_too_broad)     | The search reads too many tasks            |

And the errors every operation can return: [`invalid_request`](https://taskloader.com/docs/api/errors.md#invalid_request), [`validation_failed`](https://taskloader.com/docs/api/errors.md#validation_failed), [`token_in_url`](https://taskloader.com/docs/api/errors.md#token_in_url), [`unauthenticated`](https://taskloader.com/docs/api/errors.md#unauthenticated), [`invalid_token`](https://taskloader.com/docs/api/errors.md#invalid_token), [`rate_limited`](https://taskloader.com/docs/api/errors.md#rate_limited), [`internal_error`](https://taskloader.com/docs/api/errors.md#internal_error), [`service_unavailable`](https://taskloader.com/docs/api/errors.md#service_unavailable).

#### Example

```curl
curl 'https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/tasks?status=backlog,progress,review&assigneeMemberId=me&sort=priority&limit=20' \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
```

```js
const response = await fetch('https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/tasks?status=backlog,progress,review&assigneeMemberId=me&sort=priority&limit=20', {
  headers: {
    Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
  },
});
if (!response.ok) {
  const problem = await response.json();
  throw new Error(`${problem.code}: ${problem.detail}`);
}
const tasks = await response.json();
```

```python
import os

import requests

response = requests.get(
    "https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/tasks",
    params={
        "status": "backlog,progress,review",
        "assigneeMemberId": "me",
        "sort": "priority",
        "limit": "20",
    },
    headers={
        "Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
    },
    timeout=30,
)
if not response.ok:
    problem = response.json()
    raise RuntimeError(f"{problem['code']}: {problem['detail']}")
tasks = response.json()
```

```http
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "list",
  "data": [
    {
      "object": "task",
      "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "number": 12,
      "key": "TL-012",
      "ref": "northwind/website-launch/TL-012",
      "url": "https://taskloader.com/northwind/website-launch/TL-012",
      "title": "Write the launch announcement",
      "description": "Draft the blog post and the newsletter. The press kit is in the shared folder.",
      "status": "progress",
      "priority": "high",
      "assignee": {
        "memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
        "userId": "usr_kq3Xb1W9pZ0aLm7c",
        "name": "Maya Chen"
      },
      "dueDate": "2026-11-27",
      "checklist": [
        {
          "id": "chk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
          "text": "Outline",
          "done": true
        },
        {
          "id": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
          "text": "First draft",
          "done": false
        }
      ],
      "checklistProgress": {
        "done": 1,
        "total": 2
      },
      "bookmark": null,
      "position": 3072,
      "version": 4,
      "attachmentCount": 1,
      "createdBy": {
        "userId": "usr_kq3Xb1W9pZ0aLm7c",
        "name": "Maya Chen"
      },
      "createdAt": "2026-11-16T09:30:00.000Z",
      "updatedAt": "2026-11-18T10:00:00.123Z",
      "completedAt": null
    }
  ],
  "hasMore": false,
  "nextCursor": null,
  "total": 1,
  "totalIsLowerBound": false,
  "today": "2026-11-18"
}
```

## Search tasks across projects {#search_tasks_everywhere}

Lists matching tasks from every project you are in, newest change first.

```http
GET /api/v1/tasks
```

- **Scopes:** `tasks:read`
- **Who:** Viewer or above in the project
- **[Project-limited credentials](https://taskloader.com/docs/authentication.md#project-limited-credentials):** allowed; results include only the credential’s projects
- **Retries:** a read; safe to repeat
- **Rate limit:** the `search` bucket
- **MCP tool:** `search_tasks`

Lists tasks from every project you are a member of (and your credential may reach) that match every filter given; the same filters as search_tasks, plus `projectId` (several) and `organizationId`. Each task names its project. Sorted by `-updatedAt` unless `sort` says otherwise; pages of up to 100 with a `total` counted up to 10,000. Pass `today` (or `timeZone`) for overdue and due-soon to count from your date; the answer’s `today` says which date they counted from.

#### Parameters

| Name               | In    | Type                                                                                                                                                                                                                                                                 | Required | Description                                                                                                                                                                                                                                                                                                                                                                                                         |
| ------------------ | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectId`        | query | array of id (`prj_…`)                                                                                                                                                                                                                                                | No       | Only these projects (prj_…); projects you are not in match nothing. Up to 50 items.                                                                                                                                                                                                                                                                                                                                 |
| `organizationId`   | query | id (`org_…`)                                                                                                                                                                                                                                                         | No       | Only projects of this organization (org_…).                                                                                                                                                                                                                                                                                                                                                                         |
| `q`                | query | string                                                                                                                                                                                                                                                               | No       | Words to find, for example "invoice reminder": every word must appear in the title or the description, in any case. Up to 10 words over HTTP; over MCP and in the assistant a sentence of up to 40 words, of which the first 10 other than common ones (the, my, tasks…) are searched. A key such as TL-12 here finds only tasks whose text mentions it; to find the task itself, use keys. Up to 1,010 characters. |
| `status`           | query | array of `"backlog"` or `"progress"` or `"review"` or `"done"`                                                                                                                                                                                                       | No       | Only these statuses (backlog, progress, review, done), for example ["backlog","progress"] (status=backlog,progress in a query string). Up to 4 items.                                                                                                                                                                                                                                                               |
| `priority`         | query | array of `"low"` or `"normal"` or `"high"` or `"urgent"`                                                                                                                                                                                                             | No       | Only these priorities (low, normal, high, urgent), for example ["high","urgent"] (priority=high,urgent in a query string). Up to 4 items.                                                                                                                                                                                                                                                                           |
| `assigneeMemberId` | query | array of id (`mem_…`) or `"me"` or `"unassigned"`                                                                                                                                                                                                                    | No       | Only tasks assigned to any of these: members (mem_…), me, or unassigned, for example ["me","unassigned"] (me,unassigned in a query string). Member ids are per project (a person has a different one in each), and one that is not a member of the project searched is a 400. Up to 50 items.                                                                                                                       |
| `dueBefore`        | query | date (YYYY-MM-DD)                                                                                                                                                                                                                                                    | No       | Due on or before this date (YYYY-MM-DD); leaves out tasks without one.                                                                                                                                                                                                                                                                                                                                              |
| `dueAfter`         | query | date (YYYY-MM-DD)                                                                                                                                                                                                                                                    | No       | Due on or after this date (YYYY-MM-DD); leaves out tasks without one.                                                                                                                                                                                                                                                                                                                                               |
| `overdue`          | query | boolean                                                                                                                                                                                                                                                              | No       | true: only open tasks due before today. false or absent: no such condition.                                                                                                                                                                                                                                                                                                                                         |
| `dueSoon`          | query | boolean                                                                                                                                                                                                                                                              | No       | true: only open tasks due from today to a week from today. false or absent: no such condition.                                                                                                                                                                                                                                                                                                                      |
| `keys`             | query | array of string                                                                                                                                                                                                                                                      | No       | Only these tasks, by key, for example ["TL-1","TL-5"] (keys=TL-1,TL-5 in a query string). Up to 50 items.                                                                                                                                                                                                                                                                                                           |
| `updatedSince`     | query | string (date-time)                                                                                                                                                                                                                                                   | No       | Changed at or after this time (RFC 3339), for example 2026-11-18T09:00:00Z.                                                                                                                                                                                                                                                                                                                                         |
| `completedSince`   | query | string (date-time)                                                                                                                                                                                                                                                   | No       | Entered Done at or after this time (RFC 3339), for example 2026-11-18T09:00:00Z; leaves out tasks not done.                                                                                                                                                                                                                                                                                                         |
| `createdBy`        | query | id (`usr_…`) or `"me"`                                                                                                                                                                                                                                               | No       | Only tasks this person created (usr_…), or me.                                                                                                                                                                                                                                                                                                                                                                      |
| `bookmark`         | query | boolean                                                                                                                                                                                                                                                              | No       | true: only tasks that bookmark a page; false: only tasks that do not.                                                                                                                                                                                                                                                                                                                                               |
| `sort`             | query | `"position"` or `"dueDate"` or `"priority"` or `"updatedAt"` or `"createdAt"` or `"number"` or `"status"` or `"completedAt"` or `"-position"` or `"-dueDate"` or `"-priority"` or `"-updatedAt"` or `"-createdAt"` or `"-number"` or `"-status"` or `"-completedAt"` | No       | Order: position (board order), dueDate (soonest first, no date last, then priority), priority (urgent first, then due date), updatedAt, createdAt, number, status (backlog to done, then due date) or completedAt; prefix - to reverse, for example -updatedAt for the latest change first. -updatedAt (latest change first) when left out.                                                                         |
| `limit`            | query | integer, 1–100                                                                                                                                                                                                                                                       | No       | How many to return, 1–100, for example 50. Defaults to 50 (25 over MCP).                                                                                                                                                                                                                                                                                                                                            |
| `cursor`           | query | string                                                                                                                                                                                                                                                               | No       | The nextCursor from the previous page, to read the next one. Leave it out for the first page; start again without it when you change filters. Up to 2,048 characters.                                                                                                                                                                                                                                               |
| `today`            | query | date (YYYY-MM-DD)                                                                                                                                                                                                                                                    | No       | Your current date (YYYY-MM-DD), for overdue and due-soon; within a day of the UTC date. Defaults to the date in timeZone, else UTC.                                                                                                                                                                                                                                                                                 |
| `timeZone`         | query | string                                                                                                                                                                                                                                                               | No       | Your IANA time zone, for example Europe/Berlin, when today is not given. Up to 64 characters.                                                                                                                                                                                                                                                                                                                       |

#### Response

`200` with a list of `TaskWithProject` objects; while `hasMore` is true, pass `nextCursor` back as `cursor` (with the same filters) for the next page.

| Field               | Type                     | Description                                                                                                                                                                                                                                                                                                |
| ------------------- | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `object`            | `"list"`                 |                                                                                                                                                                                                                                                                                                            |
| `hasMore`           | boolean                  | True when there is a next page.                                                                                                                                                                                                                                                                            |
| `nextCursor`        | string or null           | Pass it as cursor to read the next page; null on the last page.                                                                                                                                                                                                                                            |
| `data`              | array of TaskWithProject |                                                                                                                                                                                                                                                                                                            |
| `total`             | integer, at least 0      | How many match in all (every page), counted up to 10,000; see totalIsLowerBound past that.                                                                                                                                                                                                                 |
| `totalIsLowerBound` | boolean                  | True when there are more than total (the count stops at 10,000).                                                                                                                                                                                                                                           |
| `today`             | string                   | The date overdue and dueSoon count from (YYYY-MM-DD): your today, else the date in your timeZone, else the UTC date.                                                                                                                                                                                       |
| `searchedWords`     | array of string          | Present only when words of `q` were left out (over MCP and in the in-app assistant, punctuation around a word, a possessive ’s, and common words beside other words are): the words every task found contains, empty when none was left. The API searches for every word as it was sent and never adds it. |

Headers it sends: `Link`.

#### Errors

| Status | Code                                                        | Meaning                                    |
| ------ | ----------------------------------------------------------- | ------------------------------------------ |
| 400    | [`invalid_id`](https://taskloader.com/docs/api/errors.md#invalid_id)                 | The id is for a different kind of resource |
| 400    | [`invalid_cursor`](https://taskloader.com/docs/api/errors.md#invalid_cursor)         | The cursor is not valid                    |
| 403    | [`insufficient_scope`](https://taskloader.com/docs/api/errors.md#insufficient_scope) | The credential lacks the required access   |
| 404    | [`not_found`](https://taskloader.com/docs/api/errors.md#not_found)                   | Not found                                  |
| 422    | [`search_too_broad`](https://taskloader.com/docs/api/errors.md#search_too_broad)     | The search reads too many tasks            |

And the errors every operation can return: [`invalid_request`](https://taskloader.com/docs/api/errors.md#invalid_request), [`validation_failed`](https://taskloader.com/docs/api/errors.md#validation_failed), [`token_in_url`](https://taskloader.com/docs/api/errors.md#token_in_url), [`unauthenticated`](https://taskloader.com/docs/api/errors.md#unauthenticated), [`invalid_token`](https://taskloader.com/docs/api/errors.md#invalid_token), [`rate_limited`](https://taskloader.com/docs/api/errors.md#rate_limited), [`internal_error`](https://taskloader.com/docs/api/errors.md#internal_error), [`service_unavailable`](https://taskloader.com/docs/api/errors.md#service_unavailable).

#### Example

```curl
curl 'https://taskloader.com/api/v1/tasks?overdue=true' \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
```

```js
const response = await fetch('https://taskloader.com/api/v1/tasks?overdue=true', {
  headers: {
    Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
  },
});
if (!response.ok) {
  const problem = await response.json();
  throw new Error(`${problem.code}: ${problem.detail}`);
}
const tasksEverywhere = await response.json();
```

```python
import os

import requests

response = requests.get(
    "https://taskloader.com/api/v1/tasks",
    params={"overdue": "true"},
    headers={
        "Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
    },
    timeout=30,
)
if not response.ok:
    problem = response.json()
    raise RuntimeError(f"{problem['code']}: {problem['detail']}")
tasks_everywhere = response.json()
```

```http
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "list",
  "data": [
    {
      "object": "task",
      "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "number": 12,
      "key": "TL-012",
      "ref": "northwind/website-launch/TL-012",
      "url": "https://taskloader.com/northwind/website-launch/TL-012",
      "title": "Write the launch announcement",
      "description": "Draft the blog post and the newsletter. The press kit is in the shared folder.",
      "status": "progress",
      "priority": "high",
      "assignee": {
        "memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
        "userId": "usr_kq3Xb1W9pZ0aLm7c",
        "name": "Maya Chen"
      },
      "dueDate": "2026-11-27",
      "checklist": [
        {
          "id": "chk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
          "text": "Outline",
          "done": true
        },
        {
          "id": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
          "text": "First draft",
          "done": false
        }
      ],
      "checklistProgress": {
        "done": 1,
        "total": 2
      },
      "bookmark": null,
      "position": 3072,
      "version": 4,
      "attachmentCount": 1,
      "createdBy": {
        "userId": "usr_kq3Xb1W9pZ0aLm7c",
        "name": "Maya Chen"
      },
      "createdAt": "2026-11-16T09:30:00.000Z",
      "updatedAt": "2026-11-18T10:00:00.123Z",
      "completedAt": null,
      "project": {
        "id": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
        "ref": "northwind/website-launch",
        "name": "Website launch"
      }
    }
  ],
  "hasMore": false,
  "nextCursor": null,
  "total": 1,
  "totalIsLowerBound": false,
  "today": "2026-11-18"
}
```

## Get a task {#get_task}

Returns one task, optionally with its comments, history, files and links.

```http
GET /api/v1/tasks/{taskId}
```

- **Scopes:** `tasks:read`
- **Who:** Viewer or above in the project
- **[Project-limited credentials](https://taskloader.com/docs/authentication.md#project-limited-credentials):** allowed inside the credential’s projects; anything else is `not_found`
- **Retries:** a read; safe to repeat
- **Rate limit:** the `read` bucket
- **MCP tool:** `get_task`

Returns one task: its fields, checklist, assignee, bookmark and `version`. Its ETag (W/"\<version>-\<digest>") changes with anything the answer shows: send it back as If-None-Match to get 304 while nothing changed. `include` adds the newest 20 comments, the newest 20 history entries and the first 20 files (needs files:read), each a list whose nextCursor continues it (in list_comments with order newest, list_task_activity and list_task_attachments), and the task’s links with their previews (`moreLinksInDescription` says when the description holds more than the ten listed). A read with `include` has no ETag and is never answered 304, because comments and files change without changing the task’s version.

#### Parameters

| Name            | In     | Type                                                                  | Required | Description                                                                                                                                                                                                                                                                                                                                                                                    |
| --------------- | ------ | --------------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `taskId`        | path   | id (`task_…`)                                                         | Yes      | Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                                                                                                                                                                         |
| `include`       | query  | array of `"comments"` or `"activity"` or `"attachments"` or `"links"` | No       | What to add: comments, activity (the task’s history; `history` in MCP results, without comments), attachments (`files` in MCP results; needs files:read) and links, for example ["comments","activity"] (include=comments,activity in a query string). Nothing by default over HTTP; over MCP and in the assistant all of them (attachments when allowed) unless you list some. Up to 4 items. |
| `If-None-Match` | header | string                                                                | No       | The `ETag` of your last read of this resource. The answer is 304 with no body while everything that read showed is unchanged, including what changes without a new version (a renamed project’s `ref`, your role).                                                                                                                                                                             |

#### Response

`200` with a `TaskWithIncluded` object.

| Field               | Type                                                  | Description                                                                                                                                                                                                                             |
| ------------------- | ----------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `object`            | `"task"`                                              |                                                                                                                                                                                                                                         |
| `id`                | id (`task_…`)                                         | Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                  |
| `projectId`         | id (`prj_…`)                                          | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                 |
| `number`            | integer                                               | The task’s number in its project.                                                                                                                                                                                                       |
| `key`               | string                                                | The task’s key, for example TL-012. Unique only within its project.                                                                                                                                                                     |
| `ref`               | string                                                | A human reference, "org/project/TL-012" (for example northwind/website-launch/TL-012). Pass it back wherever a task is asked for.                                                                                                       |
| `url`               | string                                                | Where the task opens in Taskloader.                                                                                                                                                                                                     |
| `title`             | string                                                | One line, up to 180 characters; a title that is only a link may be up to 2,048 characters once encoded.                                                                                                                                 |
| `description`       | string                                                | Plain text with line breaks, up to 20,000 characters.                                                                                                                                                                                   |
| `status`            | `"backlog"` or `"progress"` or `"review"` or `"done"` | backlog (Backlog), progress (In progress), review (In review) or done (Done).                                                                                                                                                           |
| `priority`          | `"low"` or `"normal"` or `"high"` or `"urgent"`       | low, normal, high or urgent.                                                                                                                                                                                                            |
| `assignee`          | object or null                                        | Who it is assigned to, or null.                                                                                                                                                                                                         |
| `dueDate`           | string or null                                        | YYYY-MM-DD, or null.                                                                                                                                                                                                                    |
| `checklist`         | array of ChecklistItem                                | In order; at most 100 items.                                                                                                                                                                                                            |
| `checklistProgress` | object                                                | How many checklist items are done, of how many.                                                                                                                                                                                         |
| `bookmark`          | object or null                                        | The page this task bookmarks, or null. A new bookmark is renamed after its page is read, which raises version: after the words of its link when the page cannot be read, and once more after the page’s title if a later read succeeds. |
| `position`          | number                                                | Board order: lower comes first within a status column (and a person’s row).                                                                                                                                                             |
| `version`           | integer                                               | Raised by every change. Send it back (If-Match or version) to update, move or delete the task.                                                                                                                                          |
| `attachmentCount`   | integer, at least 0                                   | How many files are attached.                                                                                                                                                                                                            |
| `createdBy`         | object                                                |                                                                                                                                                                                                                                         |
| `createdAt`         | string (date-time)                                    | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.                                                                                                                                                                   |
| `updatedAt`         | string (date-time)                                    | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.                                                                                                                                                                   |
| `completedAt`       | string (date-time) or null                            | When it last entered Done; null while it is not done.                                                                                                                                                                                   |
| `included`          | object                                                | What include asked for.                                                                                                                                                                                                                 |

Headers it sends: `ETag`.

`304`: Not modified: the ETag you sent in If-None-Match is still current. No body.

#### Errors

| Status | Code                                                        | Meaning                                    |
| ------ | ----------------------------------------------------------- | ------------------------------------------ |
| 400    | [`invalid_id`](https://taskloader.com/docs/api/errors.md#invalid_id)                 | The id is for a different kind of resource |
| 403    | [`insufficient_scope`](https://taskloader.com/docs/api/errors.md#insufficient_scope) | The credential lacks the required access   |
| 404    | [`not_found`](https://taskloader.com/docs/api/errors.md#not_found)                   | Not found                                  |

And the errors every operation can return: [`invalid_request`](https://taskloader.com/docs/api/errors.md#invalid_request), [`validation_failed`](https://taskloader.com/docs/api/errors.md#validation_failed), [`token_in_url`](https://taskloader.com/docs/api/errors.md#token_in_url), [`unauthenticated`](https://taskloader.com/docs/api/errors.md#unauthenticated), [`invalid_token`](https://taskloader.com/docs/api/errors.md#invalid_token), [`rate_limited`](https://taskloader.com/docs/api/errors.md#rate_limited), [`internal_error`](https://taskloader.com/docs/api/errors.md#internal_error), [`service_unavailable`](https://taskloader.com/docs/api/errors.md#service_unavailable).

#### Example

```curl
curl https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
```

```js
const response = await fetch('https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718', {
  headers: {
    Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
  },
});
if (!response.ok) {
  const problem = await response.json();
  throw new Error(`${problem.code}: ${problem.detail}`);
}
const task = await response.json();
```

```python
import os

import requests

response = requests.get(
    "https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    headers={
        "Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
    },
    timeout=30,
)
if not response.ok:
    problem = response.json()
    raise RuntimeError(f"{problem['code']}: {problem['detail']}")
task = response.json()
```

```http
HTTP/1.1 200 OK
Content-Type: application/json
ETag: W/"4-404547e6c018"

{
  "object": "task",
  "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "number": 12,
  "key": "TL-012",
  "ref": "northwind/website-launch/TL-012",
  "url": "https://taskloader.com/northwind/website-launch/TL-012",
  "title": "Write the launch announcement",
  "description": "Draft the blog post and the newsletter. The press kit is in the shared folder.",
  "status": "progress",
  "priority": "high",
  "assignee": {
    "memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Maya Chen"
  },
  "dueDate": "2026-11-27",
  "checklist": [
    {
      "id": "chk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "text": "Outline",
      "done": true
    },
    {
      "id": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "text": "First draft",
      "done": false
    }
  ],
  "checklistProgress": {
    "done": 1,
    "total": 2
  },
  "bookmark": null,
  "position": 3072,
  "version": 4,
  "attachmentCount": 1,
  "createdBy": {
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Maya Chen"
  },
  "createdAt": "2026-11-16T09:30:00.000Z",
  "updatedAt": "2026-11-18T10:00:00.123Z",
  "completedAt": null
}
```

## Get a task by its key {#get_task_by_key}

Returns one task of a project by its key (TL-012), like get_task.

```http
GET /api/v1/projects/{projectId}/tasks/{taskKey}
```

- **Scopes:** `tasks:read`
- **Who:** Viewer or above in the project
- **[Project-limited credentials](https://taskloader.com/docs/authentication.md#project-limited-credentials):** allowed inside the credential’s projects; anything else is `not_found`
- **Retries:** a read; safe to repeat
- **Rate limit:** the `read` bucket

Returns one task: its fields, checklist, assignee, bookmark and `version`. Its ETag (W/"\<version>-\<digest>") changes with anything the answer shows: send it back as If-None-Match to get 304 while nothing changed. `include` adds the newest 20 comments, the newest 20 history entries and the first 20 files (needs files:read), each a list whose nextCursor continues it (in list_comments with order newest, list_task_activity and list_task_attachments), and the task’s links with their previews (`moreLinksInDescription` says when the description holds more than the ten listed). A read with `include` has no ETag and is never answered 304, because comments and files change without changing the task’s version. Keys are unique only within a project, so the project is part of the path. The answer's Content-Location names the task's own address.

#### Parameters

| Name            | In     | Type                                                                  | Required | Description                                                                                                                                                                                                                                                                                                                                                                                    |
| --------------- | ------ | --------------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectId`     | path   | id (`prj_…`)                                                          | Yes      | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                                                                                                                                                                        |
| `taskKey`       | path   | string                                                                | Yes      | The task’s key, for example TL-012 (any case, any zeros).                                                                                                                                                                                                                                                                                                                                      |
| `include`       | query  | array of `"comments"` or `"activity"` or `"attachments"` or `"links"` | No       | What to add: comments, activity (the task’s history; `history` in MCP results, without comments), attachments (`files` in MCP results; needs files:read) and links, for example ["comments","activity"] (include=comments,activity in a query string). Nothing by default over HTTP; over MCP and in the assistant all of them (attachments when allowed) unless you list some. Up to 4 items. |
| `If-None-Match` | header | string                                                                | No       | The `ETag` of your last read of this resource. The answer is 304 with no body while everything that read showed is unchanged, including what changes without a new version (a renamed project’s `ref`, your role).                                                                                                                                                                             |

#### Response

`200` with a `TaskWithIncluded` object.

| Field               | Type                                                  | Description                                                                                                                                                                                                                             |
| ------------------- | ----------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `object`            | `"task"`                                              |                                                                                                                                                                                                                                         |
| `id`                | id (`task_…`)                                         | Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                  |
| `projectId`         | id (`prj_…`)                                          | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                 |
| `number`            | integer                                               | The task’s number in its project.                                                                                                                                                                                                       |
| `key`               | string                                                | The task’s key, for example TL-012. Unique only within its project.                                                                                                                                                                     |
| `ref`               | string                                                | A human reference, "org/project/TL-012" (for example northwind/website-launch/TL-012). Pass it back wherever a task is asked for.                                                                                                       |
| `url`               | string                                                | Where the task opens in Taskloader.                                                                                                                                                                                                     |
| `title`             | string                                                | One line, up to 180 characters; a title that is only a link may be up to 2,048 characters once encoded.                                                                                                                                 |
| `description`       | string                                                | Plain text with line breaks, up to 20,000 characters.                                                                                                                                                                                   |
| `status`            | `"backlog"` or `"progress"` or `"review"` or `"done"` | backlog (Backlog), progress (In progress), review (In review) or done (Done).                                                                                                                                                           |
| `priority`          | `"low"` or `"normal"` or `"high"` or `"urgent"`       | low, normal, high or urgent.                                                                                                                                                                                                            |
| `assignee`          | object or null                                        | Who it is assigned to, or null.                                                                                                                                                                                                         |
| `dueDate`           | string or null                                        | YYYY-MM-DD, or null.                                                                                                                                                                                                                    |
| `checklist`         | array of ChecklistItem                                | In order; at most 100 items.                                                                                                                                                                                                            |
| `checklistProgress` | object                                                | How many checklist items are done, of how many.                                                                                                                                                                                         |
| `bookmark`          | object or null                                        | The page this task bookmarks, or null. A new bookmark is renamed after its page is read, which raises version: after the words of its link when the page cannot be read, and once more after the page’s title if a later read succeeds. |
| `position`          | number                                                | Board order: lower comes first within a status column (and a person’s row).                                                                                                                                                             |
| `version`           | integer                                               | Raised by every change. Send it back (If-Match or version) to update, move or delete the task.                                                                                                                                          |
| `attachmentCount`   | integer, at least 0                                   | How many files are attached.                                                                                                                                                                                                            |
| `createdBy`         | object                                                |                                                                                                                                                                                                                                         |
| `createdAt`         | string (date-time)                                    | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.                                                                                                                                                                   |
| `updatedAt`         | string (date-time)                                    | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.                                                                                                                                                                   |
| `completedAt`       | string (date-time) or null                            | When it last entered Done; null while it is not done.                                                                                                                                                                                   |
| `included`          | object                                                | What include asked for.                                                                                                                                                                                                                 |

Headers it sends: `ETag`, `Content-Location`.

`304`: Not modified: the ETag you sent in If-None-Match is still current. No body.

#### Errors

| Status | Code                                                        | Meaning                                    |
| ------ | ----------------------------------------------------------- | ------------------------------------------ |
| 400    | [`invalid_id`](https://taskloader.com/docs/api/errors.md#invalid_id)                 | The id is for a different kind of resource |
| 403    | [`insufficient_scope`](https://taskloader.com/docs/api/errors.md#insufficient_scope) | The credential lacks the required access   |
| 404    | [`not_found`](https://taskloader.com/docs/api/errors.md#not_found)                   | Not found                                  |

And the errors every operation can return: [`invalid_request`](https://taskloader.com/docs/api/errors.md#invalid_request), [`validation_failed`](https://taskloader.com/docs/api/errors.md#validation_failed), [`token_in_url`](https://taskloader.com/docs/api/errors.md#token_in_url), [`unauthenticated`](https://taskloader.com/docs/api/errors.md#unauthenticated), [`invalid_token`](https://taskloader.com/docs/api/errors.md#invalid_token), [`rate_limited`](https://taskloader.com/docs/api/errors.md#rate_limited), [`internal_error`](https://taskloader.com/docs/api/errors.md#internal_error), [`service_unavailable`](https://taskloader.com/docs/api/errors.md#service_unavailable).

#### Example

```curl
curl https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/tasks/TL-12 \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
```

```js
const response = await fetch('https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/tasks/TL-12', {
  headers: {
    Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
  },
});
if (!response.ok) {
  const problem = await response.json();
  throw new Error(`${problem.code}: ${problem.detail}`);
}
const taskByKey = await response.json();
```

```python
import os

import requests

response = requests.get(
    "https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/tasks/TL-12",
    headers={
        "Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
    },
    timeout=30,
)
if not response.ok:
    problem = response.json()
    raise RuntimeError(f"{problem['code']}: {problem['detail']}")
task_by_key = response.json()
```

```http
HTTP/1.1 200 OK
Content-Type: application/json
ETag: W/"4-404547e6c018"
Content-Location: /api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718

{
  "object": "task",
  "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "number": 12,
  "key": "TL-012",
  "ref": "northwind/website-launch/TL-012",
  "url": "https://taskloader.com/northwind/website-launch/TL-012",
  "title": "Write the launch announcement",
  "description": "Draft the blog post and the newsletter. The press kit is in the shared folder.",
  "status": "progress",
  "priority": "high",
  "assignee": {
    "memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Maya Chen"
  },
  "dueDate": "2026-11-27",
  "checklist": [
    {
      "id": "chk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "text": "Outline",
      "done": true
    },
    {
      "id": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "text": "First draft",
      "done": false
    }
  ],
  "checklistProgress": {
    "done": 1,
    "total": 2
  },
  "bookmark": null,
  "position": 3072,
  "version": 4,
  "attachmentCount": 1,
  "createdBy": {
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Maya Chen"
  },
  "createdAt": "2026-11-16T09:30:00.000Z",
  "updatedAt": "2026-11-18T10:00:00.123Z",
  "completedAt": null
}
```

## Create a task {#create_task}

Creates a task in a project and returns it.

```http
POST /api/v1/projects/{projectId}/tasks
```

- **Scopes:** `tasks:write`
- **Who:** Editor or above in the project
- **[Project-limited credentials](https://taskloader.com/docs/authentication.md#project-limited-credentials):** allowed inside the credential’s projects; anything else is `not_found`
- **Retries:** send `Idempotency-Key` to make retries safe
- **Rate limit:** the `write` bucket
- **MCP tool:** `create_task`

Creates a task with a title and, optionally, a description, status, priority, assignee, due date, checklist and placement (top or bottom of its column; bottom by default). A title that is only a link makes the task a bookmark of that page, by the rules of add_bookmark: a link it refuses, such as one to a private address, stays text. Returns 201 with the task, its Location and ETag. Send an Idempotency-Key so a retry never creates it twice.

#### Parameters

| Name              | In     | Type         | Required | Description                                                                                                                                                                                                                                                       |
| ----------------- | ------ | ------------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectId`       | path   | id (`prj_…`) | Yes      | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                                           |
| `Idempotency-Key` | header | string       | No       | Makes a retry safe: the same key with the same request within 24 hours returns the first answer (with `Idempotent-Replayed: true`) instead of acting twice. 1 to 255 printable ASCII characters; a UUID works well. Keys belong to the credential that sent them. |

#### Request body

A JSON object. Fields not listed are refused.

| Field              | Type                                                  | Required | Description                                                                                                                                                                                                                                                                                |
| ------------------ | ----------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `title`            | string                                                | Yes      | One line, up to 180 characters, for example "Book the venue". A title that is only a link bookmarks the page when add_bookmark would, and may be up to 2,048 characters once encoded (each character outside ASCII counts as its percent escapes: ж is %D0%B6); any other link stays text. |
| `description`      | string                                                | No       | Plain text with line breaks, up to 20,000 characters.                                                                                                                                                                                                                                      |
| `status`           | `"backlog"` or `"progress"` or `"review"` or `"done"` | No       | Its column; backlog when left out.                                                                                                                                                                                                                                                         |
| `priority`         | `"low"` or `"normal"` or `"high"` or `"urgent"`       | No       | normal when left out.                                                                                                                                                                                                                                                                      |
| `assigneeMemberId` | id (`mem_…`) or `"me"` or null                        | No       | A member of the task’s project (mem_…), or me for yourself; null for nobody. The project overview lists the members and their ids (get_project_overview over MCP).                                                                                                                         |
| `dueDate`          | date (YYYY-MM-DD) or null                             | No       | YYYY-MM-DD, for example 2026-11-27; null for no date.                                                                                                                                                                                                                                      |
| `checklist`        | array of string or object                             | No       | Checklist items, in order: each a text, or { text, done }. Up to 100, for example ["Outline", "First draft"].                                                                                                                                                                              |
| `placement`        | `"top"` or `"bottom"`                                 | No       | top or bottom of its column (and its assignee’s row in People); bottom when left out.                                                                                                                                                                                                      |

#### Response

`201` with the new `Task` object. `Location` is its address.

| Field               | Type                                                  | Description                                                                                                                                                                                                                             |
| ------------------- | ----------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `object`            | `"task"`                                              |                                                                                                                                                                                                                                         |
| `id`                | id (`task_…`)                                         | Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                  |
| `projectId`         | id (`prj_…`)                                          | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                 |
| `number`            | integer                                               | The task’s number in its project.                                                                                                                                                                                                       |
| `key`               | string                                                | The task’s key, for example TL-012. Unique only within its project.                                                                                                                                                                     |
| `ref`               | string                                                | A human reference, "org/project/TL-012" (for example northwind/website-launch/TL-012). Pass it back wherever a task is asked for.                                                                                                       |
| `url`               | string                                                | Where the task opens in Taskloader.                                                                                                                                                                                                     |
| `title`             | string                                                | One line, up to 180 characters; a title that is only a link may be up to 2,048 characters once encoded.                                                                                                                                 |
| `description`       | string                                                | Plain text with line breaks, up to 20,000 characters.                                                                                                                                                                                   |
| `status`            | `"backlog"` or `"progress"` or `"review"` or `"done"` | backlog (Backlog), progress (In progress), review (In review) or done (Done).                                                                                                                                                           |
| `priority`          | `"low"` or `"normal"` or `"high"` or `"urgent"`       | low, normal, high or urgent.                                                                                                                                                                                                            |
| `assignee`          | object or null                                        | Who it is assigned to, or null.                                                                                                                                                                                                         |
| `dueDate`           | string or null                                        | YYYY-MM-DD, or null.                                                                                                                                                                                                                    |
| `checklist`         | array of ChecklistItem                                | In order; at most 100 items.                                                                                                                                                                                                            |
| `checklistProgress` | object                                                | How many checklist items are done, of how many.                                                                                                                                                                                         |
| `bookmark`          | object or null                                        | The page this task bookmarks, or null. A new bookmark is renamed after its page is read, which raises version: after the words of its link when the page cannot be read, and once more after the page’s title if a later read succeeds. |
| `position`          | number                                                | Board order: lower comes first within a status column (and a person’s row).                                                                                                                                                             |
| `version`           | integer                                               | Raised by every change. Send it back (If-Match or version) to update, move or delete the task.                                                                                                                                          |
| `attachmentCount`   | integer, at least 0                                   | How many files are attached.                                                                                                                                                                                                            |
| `createdBy`         | object                                                |                                                                                                                                                                                                                                         |
| `createdAt`         | string (date-time)                                    | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.                                                                                                                                                                   |
| `updatedAt`         | string (date-time)                                    | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.                                                                                                                                                                   |
| `completedAt`       | string (date-time) or null                            | When it last entered Done; null while it is not done.                                                                                                                                                                                   |

Headers it sends: `ETag`, `Location`, `Idempotent-Replayed`.

#### Errors

| Status | Code                                                                          | Meaning                                          |
| ------ | ----------------------------------------------------------------------------- | ------------------------------------------------ |
| 400    | [`invalid_id`](https://taskloader.com/docs/api/errors.md#invalid_id)                                   | The id is for a different kind of resource       |
| 400    | [`invalid_idempotency_key`](https://taskloader.com/docs/api/errors.md#invalid_idempotency_key)         | The Idempotency-Key header is not valid          |
| 403    | [`insufficient_scope`](https://taskloader.com/docs/api/errors.md#insufficient_scope)                   | The credential lacks the required access         |
| 403    | [`forbidden_role`](https://taskloader.com/docs/api/errors.md#forbidden_role)                           | Your role does not allow this                    |
| 404    | [`not_found`](https://taskloader.com/docs/api/errors.md#not_found)                                     | Not found                                        |
| 409    | [`idempotency_key_in_progress`](https://taskloader.com/docs/api/errors.md#idempotency_key_in_progress) | The original request is still running            |
| 413    | [`payload_too_large`](https://taskloader.com/docs/api/errors.md#payload_too_large)                     | The request body is too large                    |
| 415    | [`unsupported_media_type`](https://taskloader.com/docs/api/errors.md#unsupported_media_type)           | Unsupported media type                           |
| 422    | [`assignee_not_member`](https://taskloader.com/docs/api/errors.md#assignee_not_member)                 | The assignee is not a member                     |
| 422    | [`idempotency_key_reused`](https://taskloader.com/docs/api/errors.md#idempotency_key_reused)           | The Idempotency-Key was used for another request |

And the errors every operation can return: [`invalid_request`](https://taskloader.com/docs/api/errors.md#invalid_request), [`validation_failed`](https://taskloader.com/docs/api/errors.md#validation_failed), [`token_in_url`](https://taskloader.com/docs/api/errors.md#token_in_url), [`unauthenticated`](https://taskloader.com/docs/api/errors.md#unauthenticated), [`invalid_token`](https://taskloader.com/docs/api/errors.md#invalid_token), [`rate_limited`](https://taskloader.com/docs/api/errors.md#rate_limited), [`internal_error`](https://taskloader.com/docs/api/errors.md#internal_error), [`service_unavailable`](https://taskloader.com/docs/api/errors.md#service_unavailable).

#### Example

```curl
curl https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/tasks \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"title":"Book the launch-day photographer","placement":"top"}'
```

```js
const response = await fetch('https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/tasks', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
    'Content-Type': 'application/json',
    'Idempotency-Key': crypto.randomUUID(),
  },
  body: JSON.stringify({ title: 'Book the launch-day photographer', placement: 'top' }),
});
if (!response.ok) {
  const problem = await response.json();
  throw new Error(`${problem.code}: ${problem.detail}`);
}
const task = await response.json();
```

```python
import os
import uuid

import requests

response = requests.post(
    "https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/tasks",
    headers={
        "Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
        "Content-Type": "application/json",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={"title": "Book the launch-day photographer", "placement": "top"},
    timeout=30,
)
if not response.ok:
    problem = response.json()
    raise RuntimeError(f"{problem['code']}: {problem['detail']}")
task = response.json()
```

```http
HTTP/1.1 201 Created
Content-Type: application/json
ETag: "1"
Location: /api/v1/tasks/task_1b6f1d2a8c9e4f00a1b2c3d4e5f60718

{
  "object": "task",
  "id": "task_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "number": 13,
  "key": "TL-013",
  "ref": "northwind/website-launch/TL-013",
  "url": "https://taskloader.com/northwind/website-launch/TL-013",
  "title": "Book the launch-day photographer",
  "description": "",
  "status": "backlog",
  "priority": "normal",
  "assignee": null,
  "dueDate": null,
  "checklist": [],
  "checklistProgress": {
    "done": 0,
    "total": 0
  },
  "bookmark": null,
  "position": 4096,
  "version": 1,
  "attachmentCount": 0,
  "createdBy": {
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Maya Chen"
  },
  "createdAt": "2026-11-18T10:00:00.123Z",
  "updatedAt": "2026-11-18T10:00:00.123Z",
  "completedAt": null
}
```

## Create several tasks {#create_tasks}

Creates 1 to 25 tasks in a project at once, all or nothing.

```http
POST /api/v1/projects/{projectId}/tasks/batch
```

- **Scopes:** `tasks:write`
- **Who:** Editor or above in the project
- **[Project-limited credentials](https://taskloader.com/docs/authentication.md#project-limited-credentials):** allowed inside the credential’s projects; anything else is `not_found`
- **Retries:** send `Idempotency-Key` to make retries safe
- **Rate limit:** the `write` bucket
- **MCP tool:** `create_tasks`

Creates 1 to 25 tasks in one project in one transaction: either every task is created or none is. Each takes the fields of create_task. The tasks get consecutive keys in the order sent, and those placed at the top read top-down in that order. A failure names the task it came from with a pointer, for example /tasks/3/assigneeMemberId. The whole request is one JSON body of at most 1 MiB, which 25 long tasks can pass (413 payload_too_large): then send fewer tasks per request. Send an Idempotency-Key so a retry never creates them twice: it returns the first answer exactly, even after one of the tasks was edited or deleted.

#### Parameters

| Name              | In     | Type         | Required | Description                                                                                                                                                                                                                                                       |
| ----------------- | ------ | ------------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectId`       | path   | id (`prj_…`) | Yes      | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                                           |
| `Idempotency-Key` | header | string       | No       | Makes a retry safe: the same key with the same request within 24 hours returns the first answer (with `Idempotent-Replayed: true`) instead of acting twice. 1 to 255 printable ASCII characters; a UUID works well. Keys belong to the credential that sent them. |

#### Request body

A JSON object. Fields not listed are refused.

| Field   | Type            | Required | Description                                                                                                                                                                                               |
| ------- | --------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `tasks` | array of object | Yes      | The tasks, 1–25, in order. Each takes the fields of create_task in the same forms: a title and, if wanted, a description, status, priority, assignee, due date, checklist and placement. At least 1 item. |

#### Response

`201` with a list of `Task` objects.

| Field    | Type          | Description                           |
| -------- | ------------- | ------------------------------------- |
| `object` | `"list"`      |                                       |
| `data`   | array of Task | The tasks created, in the order sent. |

Headers it sends: `Idempotent-Replayed`.

#### Errors

| Status | Code                                                                          | Meaning                                          |
| ------ | ----------------------------------------------------------------------------- | ------------------------------------------------ |
| 400    | [`invalid_id`](https://taskloader.com/docs/api/errors.md#invalid_id)                                   | The id is for a different kind of resource       |
| 400    | [`invalid_idempotency_key`](https://taskloader.com/docs/api/errors.md#invalid_idempotency_key)         | The Idempotency-Key header is not valid          |
| 403    | [`insufficient_scope`](https://taskloader.com/docs/api/errors.md#insufficient_scope)                   | The credential lacks the required access         |
| 403    | [`forbidden_role`](https://taskloader.com/docs/api/errors.md#forbidden_role)                           | Your role does not allow this                    |
| 404    | [`not_found`](https://taskloader.com/docs/api/errors.md#not_found)                                     | Not found                                        |
| 409    | [`idempotency_key_in_progress`](https://taskloader.com/docs/api/errors.md#idempotency_key_in_progress) | The original request is still running            |
| 413    | [`payload_too_large`](https://taskloader.com/docs/api/errors.md#payload_too_large)                     | The request body is too large                    |
| 415    | [`unsupported_media_type`](https://taskloader.com/docs/api/errors.md#unsupported_media_type)           | Unsupported media type                           |
| 422    | [`assignee_not_member`](https://taskloader.com/docs/api/errors.md#assignee_not_member)                 | The assignee is not a member                     |
| 422    | [`idempotency_key_reused`](https://taskloader.com/docs/api/errors.md#idempotency_key_reused)           | The Idempotency-Key was used for another request |

And the errors every operation can return: [`invalid_request`](https://taskloader.com/docs/api/errors.md#invalid_request), [`validation_failed`](https://taskloader.com/docs/api/errors.md#validation_failed), [`token_in_url`](https://taskloader.com/docs/api/errors.md#token_in_url), [`unauthenticated`](https://taskloader.com/docs/api/errors.md#unauthenticated), [`invalid_token`](https://taskloader.com/docs/api/errors.md#invalid_token), [`rate_limited`](https://taskloader.com/docs/api/errors.md#rate_limited), [`internal_error`](https://taskloader.com/docs/api/errors.md#internal_error), [`service_unavailable`](https://taskloader.com/docs/api/errors.md#service_unavailable).

#### Example

```curl
curl https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/tasks/batch \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "tasks": [
    {
      "title": "Book the launch-day photographer"
    },
    {
      "title": "Send the press kit",
      "dueDate": "2026-11-25"
    }
  ]
}'
```

```js
const response = await fetch('https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/tasks/batch', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
    'Content-Type': 'application/json',
    'Idempotency-Key': crypto.randomUUID(),
  },
  body: JSON.stringify({
    tasks: [
      { title: 'Book the launch-day photographer' },
      { title: 'Send the press kit', dueDate: '2026-11-25' },
    ],
  }),
});
if (!response.ok) {
  const problem = await response.json();
  throw new Error(`${problem.code}: ${problem.detail}`);
}
const tasks = await response.json();
```

```python
import os
import uuid

import requests

response = requests.post(
    "https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/tasks/batch",
    headers={
        "Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
        "Content-Type": "application/json",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "tasks": [
            {"title": "Book the launch-day photographer"},
            {"title": "Send the press kit", "dueDate": "2026-11-25"},
        ],
    },
    timeout=30,
)
if not response.ok:
    problem = response.json()
    raise RuntimeError(f"{problem['code']}: {problem['detail']}")
tasks = response.json()
```

```http
HTTP/1.1 201 Created
Content-Type: application/json

{
  "object": "list",
  "data": [
    {
      "object": "task",
      "id": "task_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "number": 13,
      "key": "TL-013",
      "ref": "northwind/website-launch/TL-013",
      "url": "https://taskloader.com/northwind/website-launch/TL-013",
      "title": "Book the launch-day photographer",
      "description": "",
      "status": "backlog",
      "priority": "normal",
      "assignee": null,
      "dueDate": null,
      "checklist": [],
      "checklistProgress": {
        "done": 0,
        "total": 0
      },
      "bookmark": null,
      "position": 4096,
      "version": 1,
      "attachmentCount": 0,
      "createdBy": {
        "userId": "usr_kq3Xb1W9pZ0aLm7c",
        "name": "Maya Chen"
      },
      "createdAt": "2026-11-18T10:00:00.123Z",
      "updatedAt": "2026-11-18T10:00:00.123Z",
      "completedAt": null
    },
    {
      "object": "task",
      "id": "task_2b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "number": 14,
      "key": "TL-014",
      "ref": "northwind/website-launch/TL-014",
      "url": "https://taskloader.com/northwind/website-launch/TL-014",
      "title": "Send the press kit",
      "description": "",
      "status": "backlog",
      "priority": "normal",
      "assignee": null,
      "dueDate": "2026-11-25",
      "checklist": [],
      "checklistProgress": {
        "done": 0,
        "total": 0
      },
      "bookmark": null,
      "position": 5120,
      "version": 1,
      "attachmentCount": 0,
      "createdBy": {
        "userId": "usr_kq3Xb1W9pZ0aLm7c",
        "name": "Maya Chen"
      },
      "createdAt": "2026-11-18T10:00:00.123Z",
      "updatedAt": "2026-11-18T10:00:00.123Z",
      "completedAt": null
    }
  ]
}
```

## Update a task {#update_task}

Changes a task’s fields at the version you read.

```http
PATCH /api/v1/tasks/{taskId}
```

- **Scopes:** `tasks:write`
- **Who:** Editor or above in the project
- **[Project-limited credentials](https://taskloader.com/docs/authentication.md#project-limited-credentials):** allowed inside the credential’s projects; anything else is `not_found`
- **Retries:** versioned: a retry with the same version gets `version_conflict`, never a second change
- **Version:** required: send `If-Match: "<version>"` or `version` in the body
- **Rate limit:** the `write` bucket
- **MCP tool:** `update_task`

Changes any of a task’s title, description, status, priority, assignee, due date, checklist (the whole list; items keep their chk_ ids) or bookmark. Send only the fields to change, with the version you read (If-Match or `version`): if the task changed since, nothing is saved and the 412 carries the current task. `null` clears what can be empty: the description (it becomes `""`), the assignee, the due date and the bookmark (the task stops bookmarking its page and keeps its title). `[]` empties the checklist; the title, status and priority refuse `null`. A change that leaves every field as it is saves nothing and keeps the version. Changing status here keeps the task’s place; move_task places it in a column.

#### Parameters

| Name       | In     | Type          | Required | Description                                                                                                                                                                                                                                                                                                                                                                     |
| ---------- | ------ | ------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `taskId`   | path   | id (`task_…`) | Yes      | Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                                                                                                                                                          |
| `If-Match` | header | string        | No       | The version you last read: the `ETag` you got with it, as it came (`W/"8-3f2a9c1d0b7e"` from a read, `"8"` from a change), or `"<version>"`. Only the version is compared: the change is refused with 412 `version_conflict` if the resource changed since. Instead of this header you can send `version` in the body; when both are sent they must agree. `*` is not accepted. |

#### Request body

A JSON object. Fields not listed are refused.

| Field              | Type                                                  | Required | Description                                                                                                                                                                                                                                                                                                                                                                                 |
| ------------------ | ----------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `version`          | integer                                               | No       | The version you read, for example 4 (from get_task or search_tasks); the change needs it. Over HTTP you may send If-Match: "4" instead. A task that changed since is not changed, and the error gives its current version.                                                                                                                                                                  |
| `title`            | string                                                | No       | One line, up to 180 characters, for example "Book the venue". A title that is only a link bookmarks the page when add_bookmark would, and may be up to 2,048 characters once encoded (each character outside ASCII counts as its percent escapes: ж is %D0%B6); any other link stays text.                                                                                                  |
| `description`      | string or null                                        | No       | Plain text with line breaks, up to 20,000 characters; null or "" clears it.                                                                                                                                                                                                                                                                                                                 |
| `status`           | `"backlog"` or `"progress"` or `"review"` or `"done"` | No       | backlog (Backlog), progress (In progress), review (In review) or done (Done).                                                                                                                                                                                                                                                                                                               |
| `priority`         | `"low"` or `"normal"` or `"high"` or `"urgent"`       | No       | low, normal, high or urgent.                                                                                                                                                                                                                                                                                                                                                                |
| `assigneeMemberId` | id (`mem_…`) or `"me"` or null                        | No       | A member of the task’s project (mem_…), or me for yourself; null for nobody. The project overview lists the members and their ids (get_project_overview over MCP).                                                                                                                                                                                                                          |
| `dueDate`          | date (YYYY-MM-DD) or null                             | No       | YYYY-MM-DD, for example 2026-11-27; null for no date.                                                                                                                                                                                                                                                                                                                                       |
| `checklist`        | array of object                                       | No       | The whole checklist, in order: keep each item’s id, leave it out for new items, and leave out items to remove. Send it only as get_task showed it in full: when a result’s hint says checklist text was shortened, use edit_checklist instead, since this list would save the shortened text. To change one item, edit_checklist is simpler and merges with others’ edits. Up to 100 items. |
| `bookmark`         | null                                                  | No       | null stops the task bookmarking its page; its title stays.                                                                                                                                                                                                                                                                                                                                  |

#### Response

`200` with a `Task` object.

| Field               | Type                                                  | Description                                                                                                                                                                                                                             |
| ------------------- | ----------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `object`            | `"task"`                                              |                                                                                                                                                                                                                                         |
| `id`                | id (`task_…`)                                         | Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                  |
| `projectId`         | id (`prj_…`)                                          | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                 |
| `number`            | integer                                               | The task’s number in its project.                                                                                                                                                                                                       |
| `key`               | string                                                | The task’s key, for example TL-012. Unique only within its project.                                                                                                                                                                     |
| `ref`               | string                                                | A human reference, "org/project/TL-012" (for example northwind/website-launch/TL-012). Pass it back wherever a task is asked for.                                                                                                       |
| `url`               | string                                                | Where the task opens in Taskloader.                                                                                                                                                                                                     |
| `title`             | string                                                | One line, up to 180 characters; a title that is only a link may be up to 2,048 characters once encoded.                                                                                                                                 |
| `description`       | string                                                | Plain text with line breaks, up to 20,000 characters.                                                                                                                                                                                   |
| `status`            | `"backlog"` or `"progress"` or `"review"` or `"done"` | backlog (Backlog), progress (In progress), review (In review) or done (Done).                                                                                                                                                           |
| `priority`          | `"low"` or `"normal"` or `"high"` or `"urgent"`       | low, normal, high or urgent.                                                                                                                                                                                                            |
| `assignee`          | object or null                                        | Who it is assigned to, or null.                                                                                                                                                                                                         |
| `dueDate`           | string or null                                        | YYYY-MM-DD, or null.                                                                                                                                                                                                                    |
| `checklist`         | array of ChecklistItem                                | In order; at most 100 items.                                                                                                                                                                                                            |
| `checklistProgress` | object                                                | How many checklist items are done, of how many.                                                                                                                                                                                         |
| `bookmark`          | object or null                                        | The page this task bookmarks, or null. A new bookmark is renamed after its page is read, which raises version: after the words of its link when the page cannot be read, and once more after the page’s title if a later read succeeds. |
| `position`          | number                                                | Board order: lower comes first within a status column (and a person’s row).                                                                                                                                                             |
| `version`           | integer                                               | Raised by every change. Send it back (If-Match or version) to update, move or delete the task.                                                                                                                                          |
| `attachmentCount`   | integer, at least 0                                   | How many files are attached.                                                                                                                                                                                                            |
| `createdBy`         | object                                                |                                                                                                                                                                                                                                         |
| `createdAt`         | string (date-time)                                    | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.                                                                                                                                                                   |
| `updatedAt`         | string (date-time)                                    | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.                                                                                                                                                                   |
| `completedAt`       | string (date-time) or null                            | When it last entered Done; null while it is not done.                                                                                                                                                                                   |

Headers it sends: `ETag`.

#### Errors

| Status | Code                                                                    | Meaning                                    |
| ------ | ----------------------------------------------------------------------- | ------------------------------------------ |
| 400    | [`invalid_id`](https://taskloader.com/docs/api/errors.md#invalid_id)                             | The id is for a different kind of resource |
| 400    | [`invalid_idempotency_key`](https://taskloader.com/docs/api/errors.md#invalid_idempotency_key)   | The Idempotency-Key header is not valid    |
| 403    | [`insufficient_scope`](https://taskloader.com/docs/api/errors.md#insufficient_scope)             | The credential lacks the required access   |
| 403    | [`forbidden_role`](https://taskloader.com/docs/api/errors.md#forbidden_role)                     | Your role does not allow this              |
| 404    | [`not_found`](https://taskloader.com/docs/api/errors.md#not_found)                               | Not found                                  |
| 412    | [`version_conflict`](https://taskloader.com/docs/api/errors.md#version_conflict)                 | The resource changed since you read it     |
| 413    | [`payload_too_large`](https://taskloader.com/docs/api/errors.md#payload_too_large)               | The request body is too large              |
| 415    | [`unsupported_media_type`](https://taskloader.com/docs/api/errors.md#unsupported_media_type)     | Unsupported media type                     |
| 422    | [`assignee_not_member`](https://taskloader.com/docs/api/errors.md#assignee_not_member)           | The assignee is not a member               |
| 422    | [`checklist_item_not_found`](https://taskloader.com/docs/api/errors.md#checklist_item_not_found) | Checklist item not found                   |
| 428    | [`precondition_required`](https://taskloader.com/docs/api/errors.md#precondition_required)       | A version is required                      |

And the errors every operation can return: [`invalid_request`](https://taskloader.com/docs/api/errors.md#invalid_request), [`validation_failed`](https://taskloader.com/docs/api/errors.md#validation_failed), [`token_in_url`](https://taskloader.com/docs/api/errors.md#token_in_url), [`unauthenticated`](https://taskloader.com/docs/api/errors.md#unauthenticated), [`invalid_token`](https://taskloader.com/docs/api/errors.md#invalid_token), [`rate_limited`](https://taskloader.com/docs/api/errors.md#rate_limited), [`internal_error`](https://taskloader.com/docs/api/errors.md#internal_error), [`service_unavailable`](https://taskloader.com/docs/api/errors.md#service_unavailable).

#### Example

```curl
curl -X PATCH https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/json" \
  -H 'If-Match: "3"' \
  -d '{"priority":"high","dueDate":"2026-11-27"}'
```

```js
const response = await fetch('https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718', {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
    'Content-Type': 'application/json',
    'If-Match': '"3"',
  },
  body: JSON.stringify({ priority: 'high', dueDate: '2026-11-27' }),
});
if (!response.ok) {
  const problem = await response.json();
  throw new Error(`${problem.code}: ${problem.detail}`);
}
const task = await response.json();
```

```python
import os

import requests

response = requests.patch(
    "https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    headers={
        "Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
        "Content-Type": "application/json",
        "If-Match": '"3"',
    },
    json={"priority": "high", "dueDate": "2026-11-27"},
    timeout=30,
)
if not response.ok:
    problem = response.json()
    raise RuntimeError(f"{problem['code']}: {problem['detail']}")
task = response.json()
```

```http
HTTP/1.1 200 OK
Content-Type: application/json
ETag: "4"

{
  "object": "task",
  "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "number": 12,
  "key": "TL-012",
  "ref": "northwind/website-launch/TL-012",
  "url": "https://taskloader.com/northwind/website-launch/TL-012",
  "title": "Write the launch announcement",
  "description": "Draft the blog post and the newsletter. The press kit is in the shared folder.",
  "status": "progress",
  "priority": "high",
  "assignee": {
    "memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Maya Chen"
  },
  "dueDate": "2026-11-27",
  "checklist": [
    {
      "id": "chk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "text": "Outline",
      "done": true
    },
    {
      "id": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "text": "First draft",
      "done": false
    }
  ],
  "checklistProgress": {
    "done": 1,
    "total": 2
  },
  "bookmark": null,
  "position": 3072,
  "version": 4,
  "attachmentCount": 1,
  "createdBy": {
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Maya Chen"
  },
  "createdAt": "2026-11-16T09:30:00.000Z",
  "updatedAt": "2026-11-18T10:00:00.123Z",
  "completedAt": null
}
```

When the version is stale:

```http
HTTP/1.1 412 Precondition Failed
Content-Type: application/problem+json
ETag: "5"

{
  "type": "https://taskloader.com/docs/api/errors#version_conflict",
  "title": "The resource changed since you read it",
  "status": 412,
  "code": "version_conflict",
  "detail": "TL-012 is at version 5. You sent version 3. Nothing was changed. Read the task, check the change still makes sense, and retry with version 5 (over HTTP, If-Match: \"5\" works too).",
  "instance": "/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "requestId": "req_0K7ZQ4M9TN2V6B8C1D3E5F7G9H",
  "currentVersion": 5,
  "current": {
    "object": "task",
    "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "number": 12,
    "key": "TL-012",
    "ref": "northwind/website-launch/TL-012",
    "url": "https://taskloader.com/northwind/website-launch/TL-012",
    "title": "Write the launch announcement",
    "description": "Draft the blog post and the newsletter. The press kit is in the shared folder.",
    "status": "progress",
    "priority": "high",
    "assignee": {
      "memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "userId": "usr_kq3Xb1W9pZ0aLm7c",
      "name": "Maya Chen"
    },
    "dueDate": "2026-11-27",
    "checklist": [
      {
        "id": "chk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
        "text": "Outline",
        "done": true
      },
      {
        "id": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
        "text": "First draft",
        "done": false
      }
    ],
    "checklistProgress": {
      "done": 1,
      "total": 2
    },
    "bookmark": null,
    "position": 3072,
    "version": 5,
    "attachmentCount": 1,
    "createdBy": {
      "userId": "usr_kq3Xb1W9pZ0aLm7c",
      "name": "Maya Chen"
    },
    "createdAt": "2026-11-16T09:30:00.000Z",
    "updatedAt": "2026-11-18T10:00:00.123Z",
    "completedAt": null
  }
}
```

## Move a task {#move_task}

Puts a task in a status column (and assignee), between neighbours or at an edge.

```http
POST /api/v1/tasks/{taskId}/move
```

- **Scopes:** `tasks:write`
- **Who:** Editor or above in the project
- **[Project-limited credentials](https://taskloader.com/docs/authentication.md#project-limited-credentials):** allowed inside the credential’s projects; anything else is `not_found`
- **Retries:** versioned: a retry with the same version gets `version_conflict`, never a second change
- **Version:** required: send `If-Match: "<version>"` or `version` in the body
- **Rate limit:** the `write` bucket
- **MCP tool:** `move_task`

Moves a task to a status and, optionally, an assignee (the People view’s cell), and places it: right after `after`, right before `before` (both must already be in that cell), between them when both are given, or at the top or bottom of the cell (`placement`, bottom by default). Needs the version you read (If-Match or `version`). Neighbours that moved away or are gone, or that are now the wrong way round (`before` above `after`), answer 409 neighbors_changed: read the column again and retry.

#### Parameters

| Name       | In     | Type          | Required | Description                                                                                                                                                                                                                                                                                                                                                                     |
| ---------- | ------ | ------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `taskId`   | path   | id (`task_…`) | Yes      | Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                                                                                                                                                          |
| `If-Match` | header | string        | No       | The version you last read: the `ETag` you got with it, as it came (`W/"8-3f2a9c1d0b7e"` from a read, `"8"` from a change), or `"<version>"`. Only the version is compared: the change is refused with 412 `version_conflict` if the resource changed since. Instead of this header you can send `version` in the body; when both are sent they must agree. `*` is not accepted. |

#### Request body

A JSON object. Fields not listed are refused.

| Field              | Type                                                  | Required | Description                                                                                                                                                                                                                |
| ------------------ | ----------------------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `version`          | integer                                               | No       | The version you read, for example 4 (from get_task or search_tasks); the change needs it. Over HTTP you may send If-Match: "4" instead. A task that changed since is not changed, and the error gives its current version. |
| `status`           | `"backlog"` or `"progress"` or `"review"` or `"done"` | Yes      | backlog (Backlog), progress (In progress), review (In review) or done (Done).                                                                                                                                              |
| `assigneeMemberId` | id (`mem_…`) or `"me"` or null                        | No       | Also move it to this person’s row (mem_…, me) or to Unassigned (null); left out, the assignee stays.                                                                                                                       |
| `before`           | id (`task_…`)                                         | No       | Place it right before (above) this task, which must be in the target cell.                                                                                                                                                 |
| `after`            | id (`task_…`)                                         | No       | Place it right after (below) this task, which must be in the target cell.                                                                                                                                                  |
| `placement`        | `"top"` or `"bottom"`                                 | No       | top or bottom of its column (and its assignee’s row in People); bottom when left out.                                                                                                                                      |

#### Response

`200` with a `Task` object.

| Field               | Type                                                  | Description                                                                                                                                                                                                                             |
| ------------------- | ----------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `object`            | `"task"`                                              |                                                                                                                                                                                                                                         |
| `id`                | id (`task_…`)                                         | Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                  |
| `projectId`         | id (`prj_…`)                                          | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                 |
| `number`            | integer                                               | The task’s number in its project.                                                                                                                                                                                                       |
| `key`               | string                                                | The task’s key, for example TL-012. Unique only within its project.                                                                                                                                                                     |
| `ref`               | string                                                | A human reference, "org/project/TL-012" (for example northwind/website-launch/TL-012). Pass it back wherever a task is asked for.                                                                                                       |
| `url`               | string                                                | Where the task opens in Taskloader.                                                                                                                                                                                                     |
| `title`             | string                                                | One line, up to 180 characters; a title that is only a link may be up to 2,048 characters once encoded.                                                                                                                                 |
| `description`       | string                                                | Plain text with line breaks, up to 20,000 characters.                                                                                                                                                                                   |
| `status`            | `"backlog"` or `"progress"` or `"review"` or `"done"` | backlog (Backlog), progress (In progress), review (In review) or done (Done).                                                                                                                                                           |
| `priority`          | `"low"` or `"normal"` or `"high"` or `"urgent"`       | low, normal, high or urgent.                                                                                                                                                                                                            |
| `assignee`          | object or null                                        | Who it is assigned to, or null.                                                                                                                                                                                                         |
| `dueDate`           | string or null                                        | YYYY-MM-DD, or null.                                                                                                                                                                                                                    |
| `checklist`         | array of ChecklistItem                                | In order; at most 100 items.                                                                                                                                                                                                            |
| `checklistProgress` | object                                                | How many checklist items are done, of how many.                                                                                                                                                                                         |
| `bookmark`          | object or null                                        | The page this task bookmarks, or null. A new bookmark is renamed after its page is read, which raises version: after the words of its link when the page cannot be read, and once more after the page’s title if a later read succeeds. |
| `position`          | number                                                | Board order: lower comes first within a status column (and a person’s row).                                                                                                                                                             |
| `version`           | integer                                               | Raised by every change. Send it back (If-Match or version) to update, move or delete the task.                                                                                                                                          |
| `attachmentCount`   | integer, at least 0                                   | How many files are attached.                                                                                                                                                                                                            |
| `createdBy`         | object                                                |                                                                                                                                                                                                                                         |
| `createdAt`         | string (date-time)                                    | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.                                                                                                                                                                   |
| `updatedAt`         | string (date-time)                                    | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.                                                                                                                                                                   |
| `completedAt`       | string (date-time) or null                            | When it last entered Done; null while it is not done.                                                                                                                                                                                   |

Headers it sends: `ETag`.

#### Errors

| Status | Code                                                                  | Meaning                                    |
| ------ | --------------------------------------------------------------------- | ------------------------------------------ |
| 400    | [`invalid_id`](https://taskloader.com/docs/api/errors.md#invalid_id)                           | The id is for a different kind of resource |
| 400    | [`invalid_idempotency_key`](https://taskloader.com/docs/api/errors.md#invalid_idempotency_key) | The Idempotency-Key header is not valid    |
| 403    | [`insufficient_scope`](https://taskloader.com/docs/api/errors.md#insufficient_scope)           | The credential lacks the required access   |
| 403    | [`forbidden_role`](https://taskloader.com/docs/api/errors.md#forbidden_role)                   | Your role does not allow this              |
| 404    | [`not_found`](https://taskloader.com/docs/api/errors.md#not_found)                             | Not found                                  |
| 409    | [`neighbors_changed`](https://taskloader.com/docs/api/errors.md#neighbors_changed)             | The neighbouring tasks changed             |
| 412    | [`version_conflict`](https://taskloader.com/docs/api/errors.md#version_conflict)               | The resource changed since you read it     |
| 413    | [`payload_too_large`](https://taskloader.com/docs/api/errors.md#payload_too_large)             | The request body is too large              |
| 415    | [`unsupported_media_type`](https://taskloader.com/docs/api/errors.md#unsupported_media_type)   | Unsupported media type                     |
| 422    | [`assignee_not_member`](https://taskloader.com/docs/api/errors.md#assignee_not_member)         | The assignee is not a member               |
| 428    | [`precondition_required`](https://taskloader.com/docs/api/errors.md#precondition_required)     | A version is required                      |

And the errors every operation can return: [`invalid_request`](https://taskloader.com/docs/api/errors.md#invalid_request), [`validation_failed`](https://taskloader.com/docs/api/errors.md#validation_failed), [`token_in_url`](https://taskloader.com/docs/api/errors.md#token_in_url), [`unauthenticated`](https://taskloader.com/docs/api/errors.md#unauthenticated), [`invalid_token`](https://taskloader.com/docs/api/errors.md#invalid_token), [`rate_limited`](https://taskloader.com/docs/api/errors.md#rate_limited), [`internal_error`](https://taskloader.com/docs/api/errors.md#internal_error), [`service_unavailable`](https://taskloader.com/docs/api/errors.md#service_unavailable).

#### Example

```curl
curl https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/move \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/json" \
  -H 'If-Match: "3"' \
  -d '{"status":"review","after":"task_1b6f1d2a8c9e4f00a1b2c3d4e5f60718"}'
```

```js
const response = await fetch('https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/move', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
    'Content-Type': 'application/json',
    'If-Match': '"3"',
  },
  body: JSON.stringify({ status: 'review', after: 'task_1b6f1d2a8c9e4f00a1b2c3d4e5f60718' }),
});
if (!response.ok) {
  const problem = await response.json();
  throw new Error(`${problem.code}: ${problem.detail}`);
}
const task = await response.json();
```

```python
import os

import requests

response = requests.post(
    "https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/move",
    headers={
        "Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
        "Content-Type": "application/json",
        "If-Match": '"3"',
    },
    json={
        "status": "review",
        "after": "task_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    },
    timeout=30,
)
if not response.ok:
    problem = response.json()
    raise RuntimeError(f"{problem['code']}: {problem['detail']}")
task = response.json()
```

```http
HTTP/1.1 200 OK
Content-Type: application/json
ETag: "4"

{
  "object": "task",
  "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "number": 12,
  "key": "TL-012",
  "ref": "northwind/website-launch/TL-012",
  "url": "https://taskloader.com/northwind/website-launch/TL-012",
  "title": "Write the launch announcement",
  "description": "Draft the blog post and the newsletter. The press kit is in the shared folder.",
  "status": "review",
  "priority": "high",
  "assignee": {
    "memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Maya Chen"
  },
  "dueDate": "2026-11-27",
  "checklist": [
    {
      "id": "chk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "text": "Outline",
      "done": true
    },
    {
      "id": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "text": "First draft",
      "done": false
    }
  ],
  "checklistProgress": {
    "done": 1,
    "total": 2
  },
  "bookmark": null,
  "position": 3072,
  "version": 4,
  "attachmentCount": 1,
  "createdBy": {
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Maya Chen"
  },
  "createdAt": "2026-11-16T09:30:00.000Z",
  "updatedAt": "2026-11-18T10:00:00.123Z",
  "completedAt": null
}
```

When the version is stale:

```http
HTTP/1.1 412 Precondition Failed
Content-Type: application/problem+json
ETag: "5"

{
  "type": "https://taskloader.com/docs/api/errors#version_conflict",
  "title": "The resource changed since you read it",
  "status": 412,
  "code": "version_conflict",
  "detail": "TL-012 is at version 5. You sent version 3. Nothing was changed. Read the task, check the change still makes sense, and retry with version 5 (over HTTP, If-Match: \"5\" works too).",
  "instance": "/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/move",
  "requestId": "req_0K7ZQ4M9TN2V6B8C1D3E5F7G9H",
  "currentVersion": 5,
  "current": {
    "object": "task",
    "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "number": 12,
    "key": "TL-012",
    "ref": "northwind/website-launch/TL-012",
    "url": "https://taskloader.com/northwind/website-launch/TL-012",
    "title": "Write the launch announcement",
    "description": "Draft the blog post and the newsletter. The press kit is in the shared folder.",
    "status": "review",
    "priority": "high",
    "assignee": {
      "memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "userId": "usr_kq3Xb1W9pZ0aLm7c",
      "name": "Maya Chen"
    },
    "dueDate": "2026-11-27",
    "checklist": [
      {
        "id": "chk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
        "text": "Outline",
        "done": true
      },
      {
        "id": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
        "text": "First draft",
        "done": false
      }
    ],
    "checklistProgress": {
      "done": 1,
      "total": 2
    },
    "bookmark": null,
    "position": 3072,
    "version": 5,
    "attachmentCount": 1,
    "createdBy": {
      "userId": "usr_kq3Xb1W9pZ0aLm7c",
      "name": "Maya Chen"
    },
    "createdAt": "2026-11-16T09:30:00.000Z",
    "updatedAt": "2026-11-18T10:00:00.123Z",
    "completedAt": null
  }
}
```

## Delete a task {#delete_task}

Deletes a task with its files, at the version you read.

```http
DELETE /api/v1/tasks/{taskId}
```

- **Scopes:** `tasks:write`
- **Who:** Editor or above in the project
- **[Project-limited credentials](https://taskloader.com/docs/authentication.md#project-limited-credentials):** allowed inside the credential’s projects; anything else is `not_found`
- **Retries:** versioned: a retry with the same version gets `version_conflict`, never a second change
- **Version:** required: send `If-Match: "<version>"` or `?version=<version>`
- **Rate limit:** the `write` bucket
- **MCP tool:** `delete_task`

Deletes a task, its history and its files, at the version you read (If-Match or `version` in the query): if the task changed since, nothing is deleted and the 412 carries the current task. The project’s history keeps a line saying which task was deleted, and the changes feed records task.deleted. This cannot be undone.

#### Parameters

| Name       | In     | Type          | Required | Description                                                                                                                                                                                                                                                                                                                                                                                                  |
| ---------- | ------ | ------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `taskId`   | path   | id (`task_…`) | Yes      | Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                                                                                                                                                                                       |
| `version`  | query  | integer       | No       | The version you read, for example 4 (from get_task or search_tasks); the change needs it. Over HTTP you may send If-Match: "4" instead. A task that changed since is not changed, and the error gives its current version.                                                                                                                                                                                   |
| `If-Match` | header | string        | No       | The version you last read: the `ETag` you got with it, as it came (`W/"8-3f2a9c1d0b7e"` from a read, `"8"` from a change), or `"<version>"`. Only the version is compared: the change is refused with 412 `version_conflict` if the resource changed since. Instead of this header you can send `?version=<version>` (this endpoint takes no body); when both are sent they must agree. `*` is not accepted. |

#### Response

`200` with a `DeletedTask` object.

| Field     | Type          | Description                                                                                            |
| --------- | ------------- | ------------------------------------------------------------------------------------------------------ |
| `object`  | `"task"`      |                                                                                                        |
| `id`      | id (`task_…`) | Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
| `key`     | string        |                                                                                                        |
| `ref`     | string        | The ref the task had, for your records.                                                                |
| `title`   | string        |                                                                                                        |
| `deleted` | `true`        |                                                                                                        |

#### Errors

| Status | Code                                                                  | Meaning                                    |
| ------ | --------------------------------------------------------------------- | ------------------------------------------ |
| 400    | [`invalid_id`](https://taskloader.com/docs/api/errors.md#invalid_id)                           | The id is for a different kind of resource |
| 400    | [`invalid_idempotency_key`](https://taskloader.com/docs/api/errors.md#invalid_idempotency_key) | The Idempotency-Key header is not valid    |
| 403    | [`insufficient_scope`](https://taskloader.com/docs/api/errors.md#insufficient_scope)           | The credential lacks the required access   |
| 403    | [`forbidden_role`](https://taskloader.com/docs/api/errors.md#forbidden_role)                   | Your role does not allow this              |
| 404    | [`not_found`](https://taskloader.com/docs/api/errors.md#not_found)                             | Not found                                  |
| 412    | [`version_conflict`](https://taskloader.com/docs/api/errors.md#version_conflict)               | The resource changed since you read it     |
| 413    | [`payload_too_large`](https://taskloader.com/docs/api/errors.md#payload_too_large)             | The request body is too large              |
| 415    | [`unsupported_media_type`](https://taskloader.com/docs/api/errors.md#unsupported_media_type)   | Unsupported media type                     |
| 428    | [`precondition_required`](https://taskloader.com/docs/api/errors.md#precondition_required)     | A version is required                      |

And the errors every operation can return: [`invalid_request`](https://taskloader.com/docs/api/errors.md#invalid_request), [`validation_failed`](https://taskloader.com/docs/api/errors.md#validation_failed), [`token_in_url`](https://taskloader.com/docs/api/errors.md#token_in_url), [`unauthenticated`](https://taskloader.com/docs/api/errors.md#unauthenticated), [`invalid_token`](https://taskloader.com/docs/api/errors.md#invalid_token), [`rate_limited`](https://taskloader.com/docs/api/errors.md#rate_limited), [`internal_error`](https://taskloader.com/docs/api/errors.md#internal_error), [`service_unavailable`](https://taskloader.com/docs/api/errors.md#service_unavailable).

#### Example

```curl
curl -X DELETE https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H 'If-Match: "4"'
```

```js
const response = await fetch('https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718', {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
    'If-Match': '"4"',
  },
});
if (!response.ok) {
  const problem = await response.json();
  throw new Error(`${problem.code}: ${problem.detail}`);
}
const task = await response.json();
```

```python
import os

import requests

response = requests.delete(
    "https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    headers={
        "Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
        "If-Match": '"4"',
    },
    timeout=30,
)
if not response.ok:
    problem = response.json()
    raise RuntimeError(f"{problem['code']}: {problem['detail']}")
task = response.json()
```

```http
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "task",
  "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "key": "TL-012",
  "ref": "northwind/website-launch/TL-012",
  "title": "Write the launch announcement",
  "deleted": true
}
```

When the version is stale:

```http
HTTP/1.1 412 Precondition Failed
Content-Type: application/problem+json
ETag: "5"

{
  "type": "https://taskloader.com/docs/api/errors#version_conflict",
  "title": "The resource changed since you read it",
  "status": 412,
  "code": "version_conflict",
  "detail": "TL-012 is at version 5. You sent version 4. Nothing was changed. Read the task, check the change still makes sense, and retry with version 5 (over HTTP, If-Match: \"5\" works too).",
  "instance": "/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "requestId": "req_0K7ZQ4M9TN2V6B8C1D3E5F7G9H",
  "currentVersion": 5,
  "current": {
    "object": "task",
    "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "number": 12,
    "key": "TL-012",
    "ref": "northwind/website-launch/TL-012",
    "url": "https://taskloader.com/northwind/website-launch/TL-012",
    "title": "Write the launch announcement",
    "description": "Draft the blog post and the newsletter. The press kit is in the shared folder.",
    "status": "progress",
    "priority": "high",
    "assignee": {
      "memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "userId": "usr_kq3Xb1W9pZ0aLm7c",
      "name": "Maya Chen"
    },
    "dueDate": "2026-11-27",
    "checklist": [
      {
        "id": "chk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
        "text": "Outline",
        "done": true
      },
      {
        "id": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
        "text": "First draft",
        "done": false
      }
    ],
    "checklistProgress": {
      "done": 1,
      "total": 2
    },
    "bookmark": null,
    "position": 3072,
    "version": 5,
    "attachmentCount": 1,
    "createdBy": {
      "userId": "usr_kq3Xb1W9pZ0aLm7c",
      "name": "Maya Chen"
    },
    "createdAt": "2026-11-16T09:30:00.000Z",
    "updatedAt": "2026-11-18T10:00:00.123Z",
    "completedAt": null
  }
}
```

## Edit a task’s checklist {#edit_checklist}

Adds, checks, renames, moves or removes checklist items, by id, in one change.

```http
POST /api/v1/tasks/{taskId}/checklist
```

- **Scopes:** `tasks:write`
- **Who:** Editor or above in the project
- **[Project-limited credentials](https://taskloader.com/docs/authentication.md#project-limited-credentials):** allowed inside the credential’s projects; anything else is `not_found`
- **Retries:** send `Idempotency-Key` to make retries safe
- **Version:** optional: send `If-Match: "<version>"` or `version` in the body
- **Rate limit:** the `write` bucket
- **MCP tool:** `edit_checklist`

Applies 1 to 50 operations to a task’s checklist, in order, as one change (one new version): add (after an item, or at the end), check, uncheck, rename, move (after an item, or first with null) and remove, each naming items by their chk_ id. Item operations merge with what others change at the same time, so `version` is optional; when sent (If-Match or `version`) it is checked. An unknown item id is 422 checklist_item_not_found; more than 100 items is 422 checklist_full.

#### Parameters

| Name              | In     | Type          | Required | Description                                                                                                                                                                                                                                                                                                                                                                     |
| ----------------- | ------ | ------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `taskId`          | path   | id (`task_…`) | Yes      | Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                                                                                                                                                          |
| `Idempotency-Key` | header | string        | No       | Makes a retry safe: the same key with the same request within 24 hours returns the first answer (with `Idempotent-Replayed: true`) instead of acting twice. 1 to 255 printable ASCII characters; a UUID works well. Keys belong to the credential that sent them.                                                                                                               |
| `If-Match`        | header | string        | No       | The version you last read: the `ETag` you got with it, as it came (`W/"8-3f2a9c1d0b7e"` from a read, `"8"` from a change), or `"<version>"`. Only the version is compared: the change is refused with 412 `version_conflict` if the resource changed since. Instead of this header you can send `version` in the body; when both are sent they must agree. `*` is not accepted. |

#### Request body

A JSON object. Fields not listed are refused.

| Field        | Type            | Required | Description                                                                                                                     |
| ------------ | --------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `version`    | integer         | No       | Optional here: the version you read, for example 4; checked when sent (over HTTP, If-Match works too).                          |
| `operations` | array of object | Yes      | Applied in order, for example [{"op":"check","itemId":"chk_…"},{"op":"add","text":"Send it"}]. Up to 50 items. At least 1 item. |

#### Response

`200` with a `Task` object.

| Field               | Type                                                  | Description                                                                                                                                                                                                                             |
| ------------------- | ----------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `object`            | `"task"`                                              |                                                                                                                                                                                                                                         |
| `id`                | id (`task_…`)                                         | Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                  |
| `projectId`         | id (`prj_…`)                                          | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                                                                                 |
| `number`            | integer                                               | The task’s number in its project.                                                                                                                                                                                                       |
| `key`               | string                                                | The task’s key, for example TL-012. Unique only within its project.                                                                                                                                                                     |
| `ref`               | string                                                | A human reference, "org/project/TL-012" (for example northwind/website-launch/TL-012). Pass it back wherever a task is asked for.                                                                                                       |
| `url`               | string                                                | Where the task opens in Taskloader.                                                                                                                                                                                                     |
| `title`             | string                                                | One line, up to 180 characters; a title that is only a link may be up to 2,048 characters once encoded.                                                                                                                                 |
| `description`       | string                                                | Plain text with line breaks, up to 20,000 characters.                                                                                                                                                                                   |
| `status`            | `"backlog"` or `"progress"` or `"review"` or `"done"` | backlog (Backlog), progress (In progress), review (In review) or done (Done).                                                                                                                                                           |
| `priority`          | `"low"` or `"normal"` or `"high"` or `"urgent"`       | low, normal, high or urgent.                                                                                                                                                                                                            |
| `assignee`          | object or null                                        | Who it is assigned to, or null.                                                                                                                                                                                                         |
| `dueDate`           | string or null                                        | YYYY-MM-DD, or null.                                                                                                                                                                                                                    |
| `checklist`         | array of ChecklistItem                                | In order; at most 100 items.                                                                                                                                                                                                            |
| `checklistProgress` | object                                                | How many checklist items are done, of how many.                                                                                                                                                                                         |
| `bookmark`          | object or null                                        | The page this task bookmarks, or null. A new bookmark is renamed after its page is read, which raises version: after the words of its link when the page cannot be read, and once more after the page’s title if a later read succeeds. |
| `position`          | number                                                | Board order: lower comes first within a status column (and a person’s row).                                                                                                                                                             |
| `version`           | integer                                               | Raised by every change. Send it back (If-Match or version) to update, move or delete the task.                                                                                                                                          |
| `attachmentCount`   | integer, at least 0                                   | How many files are attached.                                                                                                                                                                                                            |
| `createdBy`         | object                                                |                                                                                                                                                                                                                                         |
| `createdAt`         | string (date-time)                                    | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.                                                                                                                                                                   |
| `updatedAt`         | string (date-time)                                    | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.                                                                                                                                                                   |
| `completedAt`       | string (date-time) or null                            | When it last entered Done; null while it is not done.                                                                                                                                                                                   |

Headers it sends: `ETag`, `Idempotent-Replayed`.

#### Errors

| Status | Code                                                                          | Meaning                                          |
| ------ | ----------------------------------------------------------------------------- | ------------------------------------------------ |
| 400    | [`invalid_id`](https://taskloader.com/docs/api/errors.md#invalid_id)                                   | The id is for a different kind of resource       |
| 400    | [`invalid_idempotency_key`](https://taskloader.com/docs/api/errors.md#invalid_idempotency_key)         | The Idempotency-Key header is not valid          |
| 403    | [`insufficient_scope`](https://taskloader.com/docs/api/errors.md#insufficient_scope)                   | The credential lacks the required access         |
| 403    | [`forbidden_role`](https://taskloader.com/docs/api/errors.md#forbidden_role)                           | Your role does not allow this                    |
| 404    | [`not_found`](https://taskloader.com/docs/api/errors.md#not_found)                                     | Not found                                        |
| 409    | [`idempotency_key_in_progress`](https://taskloader.com/docs/api/errors.md#idempotency_key_in_progress) | The original request is still running            |
| 412    | [`version_conflict`](https://taskloader.com/docs/api/errors.md#version_conflict)                       | The resource changed since you read it           |
| 413    | [`payload_too_large`](https://taskloader.com/docs/api/errors.md#payload_too_large)                     | The request body is too large                    |
| 415    | [`unsupported_media_type`](https://taskloader.com/docs/api/errors.md#unsupported_media_type)           | Unsupported media type                           |
| 422    | [`checklist_item_not_found`](https://taskloader.com/docs/api/errors.md#checklist_item_not_found)       | Checklist item not found                         |
| 422    | [`checklist_full`](https://taskloader.com/docs/api/errors.md#checklist_full)                           | The checklist is full                            |
| 422    | [`idempotency_key_reused`](https://taskloader.com/docs/api/errors.md#idempotency_key_reused)           | The Idempotency-Key was used for another request |
| 428    | [`precondition_required`](https://taskloader.com/docs/api/errors.md#precondition_required)             | A version is required                            |

And the errors every operation can return: [`invalid_request`](https://taskloader.com/docs/api/errors.md#invalid_request), [`validation_failed`](https://taskloader.com/docs/api/errors.md#validation_failed), [`token_in_url`](https://taskloader.com/docs/api/errors.md#token_in_url), [`unauthenticated`](https://taskloader.com/docs/api/errors.md#unauthenticated), [`invalid_token`](https://taskloader.com/docs/api/errors.md#invalid_token), [`rate_limited`](https://taskloader.com/docs/api/errors.md#rate_limited), [`internal_error`](https://taskloader.com/docs/api/errors.md#internal_error), [`service_unavailable`](https://taskloader.com/docs/api/errors.md#service_unavailable).

#### Example

```curl
curl https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/checklist \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/json" \
  -H 'If-Match: "4"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "operations": [
    {
      "op": "check",
      "itemId": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718"
    },
    {
      "op": "add",
      "text": "Send it to the team",
      "after": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718"
    }
  ]
}'
```

```js
const response = await fetch('https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/checklist', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
    'Content-Type': 'application/json',
    'If-Match': '"4"',
    'Idempotency-Key': crypto.randomUUID(),
  },
  body: JSON.stringify({
    operations: [
      { op: 'check', itemId: 'chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718' },
      {
        op: 'add',
        text: 'Send it to the team',
        after: 'chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718',
      },
    ],
  }),
});
if (!response.ok) {
  const problem = await response.json();
  throw new Error(`${problem.code}: ${problem.detail}`);
}
const checklist = await response.json();
```

```python
import os
import uuid

import requests

response = requests.post(
    "https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/checklist",
    headers={
        "Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
        "Content-Type": "application/json",
        "If-Match": '"4"',
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "operations": [
            {
                "op": "check",
                "itemId": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
            },
            {
                "op": "add",
                "text": "Send it to the team",
                "after": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
            },
        ],
    },
    timeout=30,
)
if not response.ok:
    problem = response.json()
    raise RuntimeError(f"{problem['code']}: {problem['detail']}")
checklist = response.json()
```

```http
HTTP/1.1 200 OK
Content-Type: application/json
ETag: "5"

{
  "object": "task",
  "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "number": 12,
  "key": "TL-012",
  "ref": "northwind/website-launch/TL-012",
  "url": "https://taskloader.com/northwind/website-launch/TL-012",
  "title": "Write the launch announcement",
  "description": "Draft the blog post and the newsletter. The press kit is in the shared folder.",
  "status": "progress",
  "priority": "high",
  "assignee": {
    "memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Maya Chen"
  },
  "dueDate": "2026-11-27",
  "checklist": [
    {
      "id": "chk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "text": "Outline",
      "done": true
    },
    {
      "id": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "text": "First draft",
      "done": true
    },
    {
      "id": "chk_2b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "text": "Send it to the team",
      "done": false
    }
  ],
  "checklistProgress": {
    "done": 2,
    "total": 3
  },
  "bookmark": null,
  "position": 3072,
  "version": 5,
  "attachmentCount": 1,
  "createdBy": {
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Maya Chen"
  },
  "createdAt": "2026-11-16T09:30:00.000Z",
  "updatedAt": "2026-11-18T10:00:00.123Z",
  "completedAt": null
}
```

When the version is stale:

```http
HTTP/1.1 412 Precondition Failed
Content-Type: application/problem+json
ETag: "6"

{
  "type": "https://taskloader.com/docs/api/errors#version_conflict",
  "title": "The resource changed since you read it",
  "status": 412,
  "code": "version_conflict",
  "detail": "TL-012 is at version 6. You sent version 4. Nothing was changed. Read the task, check the change still makes sense, and retry with version 6 (over HTTP, If-Match: \"6\" works too).",
  "instance": "/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/checklist",
  "requestId": "req_0K7ZQ4M9TN2V6B8C1D3E5F7G9H",
  "currentVersion": 6,
  "current": {
    "object": "task",
    "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "number": 12,
    "key": "TL-012",
    "ref": "northwind/website-launch/TL-012",
    "url": "https://taskloader.com/northwind/website-launch/TL-012",
    "title": "Write the launch announcement",
    "description": "Draft the blog post and the newsletter. The press kit is in the shared folder.",
    "status": "progress",
    "priority": "high",
    "assignee": {
      "memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "userId": "usr_kq3Xb1W9pZ0aLm7c",
      "name": "Maya Chen"
    },
    "dueDate": "2026-11-27",
    "checklist": [
      {
        "id": "chk_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
        "text": "Outline",
        "done": true
      },
      {
        "id": "chk_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
        "text": "First draft",
        "done": true
      },
      {
        "id": "chk_2b6f1d2a8c9e4f00a1b2c3d4e5f60718",
        "text": "Send it to the team",
        "done": false
      }
    ],
    "checklistProgress": {
      "done": 2,
      "total": 3
    },
    "bookmark": null,
    "position": 3072,
    "version": 6,
    "attachmentCount": 1,
    "createdBy": {
      "userId": "usr_kq3Xb1W9pZ0aLm7c",
      "name": "Maya Chen"
    },
    "createdAt": "2026-11-16T09:30:00.000Z",
    "updatedAt": "2026-11-18T10:00:00.123Z",
    "completedAt": null
  }
}
```
