# Taskloader for developers Source: https://taskloader.com/docs Build on Taskloader with the REST API, connect AI agents through the MCP server, or ask Taskloader's assistant from your own code. Taskloader is a collaborative project manager. Everything a project member can do in the app, your code and your AI agents can do too: read and plan work, create and move tasks, comment, attach files, manage people, and ask Taskloader's assistant. Every request acts as a real person, with their role in each project and only the access they granted, and every change shows in task history as made through your integration. ## Three ways in | | For | Start here | | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------- | | **REST API** | Scripts, integrations, sync jobs and apps. JSON over HTTPS at `https://taskloader.com/api/v1`, with an OpenAPI 3.1.1 document. | [Quickstart](https://taskloader.com/docs/quickstart.md) | | **MCP server** | AI agents in MCP clients such as Claude, ChatGPT, Cursor and VS Code, at `https://taskloader.com/mcp`. | [Connect an AI agent](https://taskloader.com/docs/mcp.md) | | **Assistant from code** | Asking Taskloader's own project assistant a question and applying the changes it suggests, from your program. | [Assistant from code](https://taskloader.com/docs/guides/assistant-from-code.md) | ## Your first request Create an API key in Taskloader → Account settings → API keys, then: ```bash export TASKLOADER_API_KEY="tlk_…" curl https://taskloader.com/api/v1/me -H "Authorization: Bearer $TASKLOADER_API_KEY" ``` The [quickstart](https://taskloader.com/docs/quickstart.md) goes on from there: find a project, create a task, change it, and handle a conflict, in curl, JavaScript and Python. ## What you can build - **Sync** a project into a warehouse, a search index or another tool, and keep it current with the [changes feed](https://taskloader.com/docs/api/changes-feed.md). - **Import** tasks from a spreadsheet or another tracker, safely enough to run twice: [Import tasks](https://taskloader.com/docs/guides/import-tasks.md). - **Automate** routine work: create tasks from alerts or forms, move cards when a deploy finishes, post comments from CI. - **Show** a project's board in your own app, in the same Tasks and People views as Taskloader: [Build a board](https://taskloader.com/docs/guides/build-a-board.md). - **Connect** your product to your users' Taskloader accounts with OAuth: [Build an OAuth app](https://taskloader.com/docs/guides/build-an-oauth-app.md). - **Work from an AI assistant**: connect an MCP client, then ask what is overdue, plan a week as tasks, or tidy a backlog, with the person confirming anything risky. ## Learn the essentials - [Authentication](https://taskloader.com/docs/authentication.md): API keys, OAuth, scopes and project limits. - [Concepts](https://taskloader.com/docs/concepts.md): organizations, projects, roles, tasks, and how the board works. - [Conventions](https://taskloader.com/docs/api.md): ids, pagination, filters, errors, idempotency, versions and limits. - [Errors](https://taskloader.com/docs/api/errors.md) and [Limits](https://taskloader.com/docs/api/limits.md): every code and every number. - [Security](https://taskloader.com/docs/security.md): how keys and tokens are stored and revoked, and what apps can see. ## For AI agents reading this Every page is available as Markdown: add `.md` to its address, or send `Accept: text/markdown`. [`/llms.txt`](https://taskloader.com/llms.txt) lists every page, and [`/llms-full.txt`](https://taskloader.com/llms-full.txt) has all of them in one file, with the API reference and the MCP catalogue linked rather than repeated. Agents connected over MCP should read the [agent guide](https://taskloader.com/docs/mcp/guide.md). ## Status REST API v1 is stable: it only grows, and anything removed is announced at least 6 months ahead. The MCP server is in beta while we check it with each client. See [Status](https://taskloader.com/docs/status.md) and the [changelog](https://taskloader.com/docs/changelog.md). # Quickstart Source: https://taskloader.com/docs/quickstart Your first five requests. Create an API key, see who you are, find a project, create a task safely, change it, and handle a conflict. In five minutes you will create a task through the API, change it, and handle the one error every integration meets: someone else changed the task first. You need a Taskloader account with a confirmed email address, and a project you can edit: a new account gets one on its first screen, where you name your organization and its first project. The examples use curl (with [jq](https://jqlang.org) to pick values out of answers), JavaScript (Node.js 20 or later, no packages) and Python 3 (with `requests`: `pip install requests`). ## 1. Create an API key 1. Open Taskloader and choose **Account settings** in your account menu. 2. Open **API keys** and choose **Create key**. 3. Name it `Quickstart`, choose the **Work with tasks** preset, keep **All my projects, including new ones**, and pick an expiry. 4. Copy the key. It starts with `tlk_`, and Taskloader shows it only once. Keep the key out of your code. Put it in an environment variable: ```bash export TASKLOADER_API_KEY="tlk_…" ``` > **Note:** Creating keys needs a recent sign-in. If Taskloader asks you to sign in again, that is why. [Authentication](https://taskloader.com/docs/authentication.md#api-keys) explains keys, presets and expiry. ## 2. See who you are `GET /me` returns the person and the credential behind a request. It is the quickest way to check that a key works. ```curl curl https://taskloader.com/api/v1/me \ -H "Authorization: Bearer $TASKLOADER_API_KEY" ``` ```js // quickstart.mjs: add each step to this file, then run: node quickstart.mjs import { randomUUID } from 'node:crypto'; const API = 'https://taskloader.com/api/v1'; const auth = { Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}` }; /** Throws the API's problem as an Error, so failures are never silent. */ async function read(response) { const body = await response.json(); if (!response.ok) throw new Error(`${response.status} ${body.code}: ${body.detail}`); return body; } const me = await read(await fetch(`${API}/me`, { headers: auth })); console.log(me.user.email, me.credential.scopes); ``` ```python # quickstart.py: add each step to this file, then run: python3 quickstart.py import os import uuid import requests API = "https://taskloader.com/api/v1" session = requests.Session() session.headers["Authorization"] = f"Bearer {os.environ['TASKLOADER_API_KEY']}" def read(response): """Returns the JSON body, or raises with the API's error code and detail.""" body = response.json() if not response.ok: raise RuntimeError(f"{response.status_code} {body['code']}: {body['detail']}") return body me = read(session.get(f"{API}/me", timeout=30)) print(me["user"]["email"], me["credential"]["scopes"]) ``` The answer has this shape; yours shows your own name, your key's name and its scopes: ```http HTTP/1.1 200 OK Content-Type: application/json { "object": "me", "user": { "id": "usr_kq3Xb1W9pZ0aLm7c", "name": "Ana Lima", "email": "ana@example.com", "emailVerified": true }, "credential": { "type": "api_key", "id": "key_0b6f1d2a8c9e4f00a1b2c3d4e5f60718", "name": "CI deploy notes", "app": null, "scopes": [ "projects:read", "tasks:read", "tasks:write" ], "projectIds": null, "expiresAt": "2027-02-16T10:00:00.000Z" }, "features": { "files": true, "assistant": true }, "limits": { "requestsPerMinute": 1500, "readsPerMinute": 600, "writesPerMinute": 120, "searchesPerMinute": 120, "mcpRequestsPerMinute": 1200, "uploadPartsPerHour": 300, "assistantQuestionsPerHour": 30, "organizationsPerDay": 10, "projectsPerDay": 50, "invitationsPerDay": 100, "pageSizeMax": 100 } } ``` A `401` means the key is missing, expired, or invalid (mistyped or revoked: those two look the same on purpose). The problem's `reason` and `detail` say which; see [When authentication fails](https://taskloader.com/docs/authentication.md#when-authentication-fails). ## 3. Find a project `GET /projects` lists the projects you belong to. Each has an `id` (`prj_…`), a human `ref` (`northwind/website-launch`) and your role in it, `currentMember.role`. The examples keep the first project you can edit, since a `viewer` cannot create tasks. ```curl curl https://taskloader.com/api/v1/projects \ -H "Authorization: Bearer $TASKLOADER_API_KEY" # Keep the first project you can edit for the next steps: PROJECT_ID=$(curl -s https://taskloader.com/api/v1/projects \ -H "Authorization: Bearer $TASKLOADER_API_KEY" \ | jq -r '[.data[] | select(.currentMember.role != "viewer")][0].id') ``` ```js const projects = await read(await fetch(`${API}/projects`, { headers: auth })); // Keep the first project you can edit: a viewer cannot create tasks. const project = projects.data.find((candidate) => candidate.currentMember.role !== 'viewer'); if (!project) throw new Error('You can only view your projects. Ask for the editor role in one.'); console.log(project.ref, project.currentMember.role); ``` ```python projects = read(session.get(f"{API}/projects", timeout=30)) # Keep the first project you can edit: a viewer cannot create tasks. project = next((c for c in projects["data"] if c["currentMember"]["role"] != "viewer"), None) if project is None: raise SystemExit("You can only view your projects. Ask for the editor role in one.") print(project["ref"], project["currentMember"]["role"]) ``` ```http HTTP/1.1 200 OK Content-Type: application/json { "object": "list", "data": [ { "object": "project", "id": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718", "organization": { "id": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718", "name": "Northwind", "slug": "northwind" }, "name": "Website launch", "slug": "website-launch", "ref": "northwind/website-launch", "url": "https://taskloader.com/northwind/website-launch", "description": "Everything for the new website, from copy to launch day.", "version": 3, "archived": false, "currentMember": { "memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718", "role": "admin" }, "createdAt": "2026-09-14T08:30:00.000Z" } ], "hasMore": false, "nextCursor": null, "total": 1, "totalIsLowerBound": false } ``` To create tasks you need the `editor`, `admin` or `owner` role in the project. A `viewer` gets `403 forbidden_role`. If the curl step leaves `PROJECT_ID` as `null`, you can only view your projects: ask a project admin for the editor role, or create a project of your own in the app. ## 4. Create a task, safely Send an `Idempotency-Key` with every request that creates something. If the connection drops before the answer arrives, send the same request with the **same** key: you get the task that was created, never a second one. ```curl IDEMPOTENCY_KEY=$(uuidgen) curl -s -w '\n' https://taskloader.com/api/v1/projects/$PROJECT_ID/tasks \ -H "Authorization: Bearer $TASKLOADER_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $IDEMPOTENCY_KEY" \ -d '{"title":"Write launch announcement","priority":"high","dueDate":"2026-11-20","checklist":["Outline","Draft","Review"]}' \ | tee task.json TASK_ID=$(jq -r .id task.json) VERSION=$(jq -r .version task.json) # Send it again with the same key: the same task comes back, marked as a replay. curl -s -i https://taskloader.com/api/v1/projects/$PROJECT_ID/tasks \ -H "Authorization: Bearer $TASKLOADER_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $IDEMPOTENCY_KEY" \ -d '{"title":"Write launch announcement","priority":"high","dueDate":"2026-11-20","checklist":["Outline","Draft","Review"]}' \ | grep -i '^idempotent-replayed' ``` ```js const idempotencyKey = randomUUID(); const createTask = () => fetch(`${API}/projects/${project.id}/tasks`, { method: 'POST', headers: { ...auth, 'Content-Type': 'application/json', 'Idempotency-Key': idempotencyKey }, body: JSON.stringify({ title: 'Write launch announcement', priority: 'high', dueDate: '2026-11-20', checklist: ['Outline', 'Draft', 'Review'], }), }); const task = await read(await createTask()); console.log(task.key, task.version); // e.g. TL-013 1 // A retry with the same key returns the same task instead of a second one. const retry = await createTask(); console.log(retry.headers.get('idempotent-replayed'), (await read(retry)).id === task.id); // true true ``` ```python idempotency_key = str(uuid.uuid4()) def create_task(): return session.post( f"{API}/projects/{project['id']}/tasks", headers={"Idempotency-Key": idempotency_key}, json={ "title": "Write launch announcement", "priority": "high", "dueDate": "2026-11-20", "checklist": ["Outline", "Draft", "Review"], }, timeout=30, ) task = read(create_task()) print(task["key"], task["version"]) # e.g. TL-013 1 # A retry with the same key returns the same task instead of a second one. retry = create_task() print(retry.headers.get("Idempotent-Replayed"), read(retry)["id"] == task["id"]) # true True ``` The answer is `201 Created` with the task, its `Location` and an `ETag` holding its version. Shortened, it looks like this; your task's `id` and `key` will differ: ```http HTTP/1.1 201 Created Content-Type: application/json ETag: "1" Location: /api/v1/tasks/task_1b6f1d2a8c9e4f00a1b2c3d4e5f60718 { "object": "task", "id": "task_1b6f1d2a8c9e4f00a1b2c3d4e5f60718", "key": "TL-013", "title": "Write launch announcement", "status": "backlog", "priority": "high", "dueDate": "2026-11-20", "checklistProgress": { "done": 0, "total": 3 }, "version": 1, "…": "…" } ``` Open the task's `url`: it is already on the board, for everyone in the project. Its history says it was made via your API key. ## 5. Change it Changes to a task must say which **version** you read, in `If-Match`. Taskloader applies the change only if the task is still at that version, so you never overwrite someone else's edit by accident. ```curl curl -s -X PATCH https://taskloader.com/api/v1/tasks/$TASK_ID \ -H "Authorization: Bearer $TASKLOADER_API_KEY" \ -H "Content-Type: application/json" \ -H "If-Match: \"$VERSION\"" \ -d '{"status":"progress"}' | jq '{key, status, version}' ``` ```js const updated = await read( await fetch(`${API}/tasks/${task.id}`, { method: 'PATCH', headers: { ...auth, 'Content-Type': 'application/json', 'If-Match': `"${task.version}"` }, body: JSON.stringify({ status: 'progress' }), }), ); console.log(updated.status, updated.version); // progress 2 ``` ```python updated = read( session.patch( f"{API}/tasks/{task['id']}", headers={"If-Match": f"\"{task['version']}\""}, json={"status": "progress"}, timeout=30, ) ) print(updated["status"], updated["version"]) # progress 2 ``` ```json { "key": "TL-013", "status": "progress", "version": 2 } ``` Leave out `If-Match` and you get `428 precondition_required`. ## 6. Handle a conflict Now pretend a teammate changed the task while you were looking at version 1: send another change with the old version. ```curl curl -s -X PATCH https://taskloader.com/api/v1/tasks/$TASK_ID \ -H "Authorization: Bearer $TASKLOADER_API_KEY" \ -H "Content-Type: application/json" \ -H "If-Match: \"$VERSION\"" \ -d '{"priority":"urgent"}' | tee conflict.json | jq '{status, code, currentVersion}' # Check that the change still makes sense for the task as it is now, then retry with its version: curl -s -X PATCH https://taskloader.com/api/v1/tasks/$TASK_ID \ -H "Authorization: Bearer $TASKLOADER_API_KEY" \ -H "Content-Type: application/json" \ -H "If-Match: \"$(jq -r .currentVersion conflict.json)\"" \ -d '{"priority":"urgent"}' | jq '{key, priority, version}' ``` ```js const stale = await fetch(`${API}/tasks/${task.id}`, { method: 'PATCH', headers: { ...auth, 'Content-Type': 'application/json', 'If-Match': `"${task.version}"` }, body: JSON.stringify({ priority: 'urgent' }), }); if (stale.status === 412) { const problem = await stale.json(); console.log(problem.code, problem.currentVersion); // version_conflict 2 // problem.current is the task as it is now: check the change still makes sense, then retry. const retried = await read( await fetch(`${API}/tasks/${task.id}`, { method: 'PATCH', headers: { ...auth, 'Content-Type': 'application/json', 'If-Match': `"${problem.current.version}"`, }, body: JSON.stringify({ priority: 'urgent' }), }), ); console.log(retried.priority, retried.version); // urgent 3 } ``` ```python stale = session.patch( f"{API}/tasks/{task['id']}", headers={"If-Match": f"\"{task['version']}\""}, json={"priority": "urgent"}, timeout=30, ) if stale.status_code == 412: problem = stale.json() print(problem["code"], problem["currentVersion"]) # version_conflict 2 # problem["current"] is the task as it is now: check the change still makes sense, then retry. retried = read( session.patch( f"{API}/tasks/{task['id']}", headers={"If-Match": f"\"{problem['current']['version']}\""}, json={"priority": "urgent"}, timeout=30, ) ) print(retried["priority"], retried["version"]) # urgent 3 ``` The first request changes nothing and answers `412 Precondition Failed`. The problem carries the task as it is now in `current`, so you can decide without another read. Shortened: ```http HTTP/1.1 412 Precondition Failed Content-Type: application/problem+json ETag: "2" { "type": "https://taskloader.com/docs/api/errors#version_conflict", "title": "The resource changed since you read it", "status": 412, "code": "version_conflict", "detail": "TL-013 is at version 2. You sent version 1. Nothing was changed. Read the task, check the change still makes sense, and retry with version 2 (over HTTP, If-Match: \"2\" works too).", "currentVersion": 2, "current": { "key": "TL-013", "title": "Write launch announcement", "status": "progress", "priority": "high", "version": 2, "…": "…" }, "…": "…" } ``` That is the whole loop: read, change with the version, and on a 412 decide again with `current`. ## Next steps - [Conventions](https://taskloader.com/docs/api.md): ids, pagination, filters, errors and limits in one page. - [Concepts](https://taskloader.com/docs/concepts.md): organizations, projects, members, tasks and how the board works. - [Conflicts and retries](https://taskloader.com/docs/guides/conflicts-and-retries.md): a retry policy for every status. - [Sync tasks](https://taskloader.com/docs/guides/sync-tasks.md): keep a copy of a project up to date with the changes feed. - [Authentication](https://taskloader.com/docs/authentication.md): scopes, project-limited keys, expiry, and OAuth for apps other people use. - Prefer working from an AI assistant? [Connect Taskloader over MCP](https://taskloader.com/docs/mcp.md). # Authentication Source: https://taskloader.com/docs/authentication Personal API keys and OAuth 2.1. How to send a credential, which one to choose, scopes, project-limited keys, expiry, revocation, and what each failure means. Every request to the API (except the [index and OpenAPI document](https://taskloader.com/docs/api.md#base-url)) and to the MCP server carries a credential: ```http Authorization: Bearer ``` There are two kinds: | Credential | Looks like | Made by | Best for | | ---------------------- | ----------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------------------- | | **Personal API key** | `tlk_` and 62 more characters | You, in Taskloader → Account settings → API keys | Your own scripts, cron jobs, CI, and MCP clients you configure yourself | | **OAuth access token** | `tlo_at_…` | An app, after you approve it on Taskloader's consent screen | Apps people connect to their account: Claude, ChatGPT, your own product | Both act **as you**, with your role in each project. A credential can do less than you can, never more. ## Which one to choose | You are building | Use | | ---------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | | A script, scheduled job or CI step that works with your own projects | An [API key](https://taskloader.com/docs/authentication.md#api-keys) | | An MCP setup for yourself in Claude Code, Cursor or VS Code | Either: an API key in a header, or the client's own OAuth sign-in. See [MCP](https://taskloader.com/docs/mcp.md). | | An app or integration other people connect to their Taskloader account | [OAuth](https://taskloader.com/docs/authentication/oauth.md) | | Anything that runs in a browser or on a phone | OAuth with PKCE. Never ship an API key in client code: anyone can read it there. | ## Sending a credential - Send it **only** in the `Authorization` header, with the `Bearer` scheme. - **Never put a token in a URL.** A request that carries a token in its URL (as `access_token`, or a Taskloader token under any name or in the path, such as `?api_key=tlk_…`), or `access_token` in a form body, is refused with `400 token_in_url` and the token is not used. URLs end up in logs, browser history and `Referer` headers, so revoke a token that was sent this way. - Send one `Authorization` header with one token. - The API and the MCP server **never read cookies**. Being signed in to Taskloader in a browser does not authorize an API request. Check that a credential works with `GET /me`. It returns the person, the credential's type, scopes, project limit and expiry: ```bash curl https://taskloader.com/api/v1/me \ -H "Authorization: Bearer $TASKLOADER_API_KEY" ``` ## API keys A personal API key is a long random secret that acts as you. You make keys in the app only: no API or MCP operation can create, list or revoke keys, so a leaked credential cannot make itself another one. ### Creating a key 1. In Taskloader, choose **Account settings** in your account menu, then **API keys**. 2. Choose **Create key**, give it a name you will recognize later (`CI deploy notes`, `Laptop`), and choose: - **What it can do:** a preset or your own selection of [scopes](https://taskloader.com/docs/authentication.md#scopes). - **Projects:** **All my projects, including new ones**, or **Only these projects** (see [Project-limited credentials](https://taskloader.com/docs/authentication.md#project-limited-credentials)). - **Expires:** 7 days, 30 days, 90 days or 1 year (90 days by default). 3. Copy the key. **Taskloader shows it once**, and stores only a one-way hash of it. Creating a key needs a confirmed email address and a recent sign-in (within the last 24 hours). If Taskloader asks you to sign in again first, that is why. You can have up to 25 active keys, and create at most 50 keys in any 24 hours. | Preset | Scopes | | --------------- | -------------------------------------------------------------- | | Read only | `projects:read`, `tasks:read`, `files:read` | | Work with tasks | Read only, plus `tasks:write`, `comments:write`, `files:write` | | Everything | All eleven scopes | | Custom | The scopes you tick | ### The key format ```text tlk_Ab3dE6gH9jK2_<49 more letters and digits> ``` A key is 66 characters: `tlk_`, a 12-character lookup id, `_`, then a 43-character secret and a 6-character checksum. The checksum lets Taskloader (and secret scanners) reject a mistyped or made-up key without looking it up. The key list shows each key as `tlk__…`, with its scopes, projects, creation date, expiry and when it was last used. To find which row a key in your configuration belongs to, compare the first 17 characters. ### Expiry, extending and revoking - **Expiry is required.** An expired key gets `401` with a `detail` saying it expired. - **Reminders:** Taskloader emails you 7 days and 1 day before a key expires (a key made or extended for 7 days gets only the one-day reminder). - **Extend** sets a new expiry: 7 days, 30 days, 90 days or 1 year from today. The key itself does not change, so nothing needs redeploying. Extending also needs a sign-in from the last 24 hours, and you can extend keys at most 100 times in any 24 hours. - **Revoke** works at once: the next request with that key gets `401`. - **Resetting your password revokes every API key**, signs out every session and ends every OAuth app's access. Each app asks for your approval again, on the consent screen, when it reconnects. Taskloader emails you that it did. Revoked and expired keys stay under **Inactive keys** for 90 days, then disappear. ### Keeping keys safe - Keep keys in environment variables or your platform's secret store, never in source code or a repository. - Make one key per integration, so you can revoke one without breaking the others, and so task history says which integration made a change. - Give each key only the scopes and projects it needs, and the shortest expiry that works. - To rotate a key: create the new one, deploy it, check it works, then revoke the old one. - If a key leaks, revoke it straight away in Account settings → API keys. Taskloader emails you whenever a key is created on your account. The email names the key, its access and its expiry, never the key itself. ## Scopes Scopes say what kind of access a credential has. Each one is a line on the consent screen and a checkbox on the key form. | Scope | Lets the app or key | Includes | Pre-ticked on consent | |---|---|---|---| | `projects:read` | See your organizations and projects, and the people in them (names, email addresses and roles) | — | Yes | | `projects:write` | Create organizations and projects, change project details, and leave projects or organizations | `projects:read` | Yes | | `tasks:read` | See tasks, checklists, comments, activity, bookmarks and charts | — | Yes | | `tasks:write` | Create, change, move and delete tasks, checklists and bookmarks | `tasks:read` | Yes | | `comments:write` | Comment on tasks as you | — | Yes | | `files:read` | See and download files attached to tasks | — | Yes | | `files:write` | Attach files to tasks and delete them | `files:read` | Yes | | `people:manage` | Add and remove people in projects you manage, change their roles and create invitation links | `projects:read` | No | | `organizations:manage` | Manage organizations you administer: rename them, change people’s roles, remove people, create invitation links, and join any of their projects as an admin | `projects:read` | No | | `assistant` | Ask Taskloader’s assistant and read your conversations with it (both with See projects and See tasks; answers that name files need See files too), apply or dismiss its suggestions, and delete conversations (uses your hourly question allowance) | — | Yes | | `invitations:accept` | Accept invitations to join projects and organizations for you | — | No | - `comments:write` is separate from `tasks:write`: commenting as you is its own permission. A credential with `comments:write` but not `tasks:read` learns nothing about the task from its comment: the answer's `task` is `null` (only `taskId` names it), over MCP too. - `files:read` and `files:write` do not include `tasks:read` either: a credential without it gets a file's `taskId` but never its task's ref, so `read_attachment`'s `file.taskRef` and `attach_file`'s `taskRef` are `null`. - The changes feed ([`list_events`](https://taskloader.com/docs/api/reference/events.md#list_events)) needs `tasks:read`; its member events carry `userId` and `role` only with `projects:read`. - Ask for the scopes that are not pre-ticked only when an integration needs them. - Asking Taskloader's assistant ([`ask_assistant`](https://taskloader.com/docs/api/reference/assistant.md#ask_assistant)), and reading its answers and conversations, need `projects:read` and `tasks:read` besides `assistant`, because answers quote the project. Without `files:read`, an answer is written without file names, and answers that read them (every answer to a question asked in the app) cannot be read: [`get_assistant_message`](https://taskloader.com/docs/api/reference/assistant.md#get_assistant_message) answers `insufficient_scope`, and conversation lists leave them out. Dismissing suggestions and deleting conversations need only `assistant`; deleting answers the conversation’s `title` (its first question) only to a credential with `projects:read` and `tasks:read`, and `null` to any other. Applying suggestions needs `assistant` and each chosen change’s own scopes; without `tasks:read` (`comments:write` alone applies only comments) no result names its task: no `ref`, and “the task” in `detail`. - History names files only for a credential with `files:read`: without it, an entry about a file (in task and project history, [`get_task`](https://taskloader.com/docs/api/reference/tasks.md#get_task) with `include=activity`, the project overview and the MCP tools) reads “attached a file” or “removed a file”. - `GET /me` needs no scope. It returns the person, the credential (type, scopes with the included ones, projects, expiry), which features this Taskloader has, and the request limits. - `offline_access` exists only for OAuth: it lets an app get refresh tokens. It is not an API scope. The [scope reference](https://taskloader.com/docs/scopes.md) lists every operation and MCP tool under its scope, with the roles each needs. ## What a credential can do Taskloader checks every request in this order: | Check | Question | When it fails | | -------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | 1. Scope | Did you grant this credential this kind of access? | `403 insufficient_scope`, before anything is looked up | | 2. Account-level operation | Is a project-limited credential asking for something outside any one project? | `403 credential_restricted` | | 3. Project limit | Is the project one the credential may use? | `404 not_found`, exactly as if it did not exist | | 4. Your role | Does your current role in the project allow it? | `404 not_found` if you are not a member; `403 forbidden_role` if your role is too low | Your role is read live on every request. If someone makes you a viewer, every credential you hold becomes viewer-level at once. If you leave a project, your credentials lose it too. ### Project-limited credentials A key made with **Only these projects**, or an OAuth app you connected with **Only these projects**, reaches only those projects: - Everything inside a chosen project works as usual, within the credential's scopes and your role. - Other projects look like they do not exist (`404`), and lists include only the chosen projects and the organizations that hold them. - Account-level operations are refused with `403 credential_restricted`: creating organizations or projects, changing organizations, organization invitations, joining a project as an organization admin, leaving an organization, and previewing or accepting invitations. Over MCP, the tools for them are not listed at all. - A project-limited key cannot have `organizations:manage` or `invitations:accept`. - If you leave every chosen project, the credential reaches nothing. It never widens to your other projects. You can change an app's projects later in Account settings → Connected apps; giving it more projects needs a sign-in from the last 24 hours, as approving it does. A key's projects are fixed: make a new key to change them. ## OAuth Use OAuth when other people connect your app to their Taskloader account. They click your app's **Connect** button, sign in to Taskloader, and see a consent screen that names your app, lists the access it asks for and offers a choice of projects. An app that publishes a client metadata document is named by its verified web address; any other app is marked **Unverified app**. When they choose **Allow**, your app receives an access token that lasts 1 hour and, if it asked for `offline_access`, a refresh token. People see and manage every app in Account settings → Connected apps: what it can do, which projects, when it was last used. **Disconnect** stops it at once. Taskloader is a standard OAuth 2.1 authorization server: authorization code with PKCE, refresh token rotation, client ID metadata documents and dynamic client registration, no client secrets. The details are in [OAuth for apps](https://taskloader.com/docs/authentication/oauth.md), and [Build an OAuth app](https://taskloader.com/docs/guides/build-an-oauth-app.md) walks through a working example. MCP clients that support OAuth, such as Claude and ChatGPT, sign in through this same flow when you connect them to Taskloader's MCP server. See [MCP](https://taskloader.com/docs/mcp.md). ## When authentication fails Authentication failures are `401` problems with a `WWW-Authenticate` challenge. A request without any credential gets a challenge without an `error`, which tells MCP clients and other OAuth clients where to sign in: ```http HTTP/1.1 401 Unauthorized Content-Type: application/problem+json WWW-Authenticate: Bearer realm="taskloader", resource_metadata="https://taskloader.com/.well-known/oauth-protected-resource/api/v1", scope="projects:read projects:write tasks:read tasks:write comments:write files:read files:write people:manage organizations:manage assistant invitations:accept" ``` A token that was sent but does not work adds `error="invalid_token"` and an `error_description`. The problem's `reason` member says why: | Status and code | `reason` | What happened | What to do | | --------------------- | ---------------- | ----------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | | `401 unauthenticated` | | No `Authorization` header, or more than one | Send exactly one `Authorization: Bearer ` header. | | `401 invalid_token` | `invalid` | The token is malformed, unknown or revoked. Unknown and revoked look the same on purpose. | For a key: check you copied all 66 characters, or create a new key. For OAuth: refresh, or sign in again. | | `401 invalid_token` | `expired` | An API key or access token has expired | Extend the key, or create a new one. Use your refresh token to get a new access token. | | `401 invalid_token` | `wrong_audience` | An OAuth token issued for the MCP server was sent to the REST API, or the other way round | Request a token with `resource=https://taskloader.com/api/v1` for the REST API. See [Resources](https://taskloader.com/docs/authentication/oauth.md#resources). | | `401 invalid_token` | `invalid` | A refresh token (`tlo_rt_…`) was sent as a bearer token | Exchange it at the token endpoint for an access token. | | `400 token_in_url` | | A token was in the URL (any parameter or the path), or `access_token` in a form body | Revoke that token. Send tokens only in the `Authorization` header. | | `429 rate_limited` | | Many invalid tokens came from your address | Wait `Retry-After` seconds and fix the credential. Valid credentials from the same address keep working. | Requests that authenticate but lack access fail with `403`: ```http HTTP/1.1 403 Forbidden Content-Type: application/problem+json WWW-Authenticate: Bearer realm="taskloader", resource_metadata="https://taskloader.com/.well-known/oauth-protected-resource/api/v1", scope="files:write", error="insufficient_scope" ``` ```json { "type": "https://taskloader.com/docs/api/errors#insufficient_scope", "title": "The credential lacks the required access", "status": 403, "code": "insufficient_scope", "detail": "This API key does not include files:write. Create a key with that access in Taskloader → Account settings → API keys.", "requiredScopes": ["files:write"], "grantedScopes": ["projects:read", "tasks:read", "files:read"], "…": "…" } ``` | Code | Meaning | What to do | | ----------------------- | -------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `insufficient_scope` | The credential lacks a scope. `requiredScopes` lists what the operation needs. | API keys cannot gain scopes: create a key with that access. Your own OAuth app: send the person through authorization again, asking for that scope (see [OAuth for apps](https://taskloader.com/docs/authentication/oauth.md#scopes-and-offline_access)). MCP clients such as Claude: the person disconnects the app in Connected apps and connects it again, allowing that access. | | `credential_restricted` | A project-limited credential asked for an account-level operation. | Use a credential with access to all your projects. | | `forbidden_role` | Your role in that project or organization does not allow it. `requiredRole` says which role would. | Ask a project admin. Retrying will not help. | # OAuth for apps Source: https://taskloader.com/docs/authentication/oauth Taskloader's OAuth 2.1 server for app builders: discovery, client metadata documents and registration, PKCE, resources, scopes, refresh and revocation. Use OAuth when people connect **your** app to **their** Taskloader account. This page is the reference for building such an app. For a working example, see [Build an OAuth app](https://taskloader.com/docs/guides/build-an-oauth-app.md). To connect an existing MCP client such as Claude or ChatGPT, see [MCP](https://taskloader.com/docs/mcp.md) instead: those clients do all of this for you. ## At a glance | | | | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | | Issuer | `https://taskloader.com/api/auth` | | Grant types | `authorization_code` (with PKCE `S256`, required for every client) and `refresh_token` | | Client registration | [Client ID metadata documents](https://taskloader.com/docs/authentication/oauth.md#client-id-metadata-documents) (recommended), or [dynamic registration](https://taskloader.com/docs/authentication/oauth.md#dynamic-client-registration) of public clients | | Client authentication | `none` (public clients) or `private_key_jwt`. No client secrets. | | Resources | `https://taskloader.com/api/v1` (REST API) and `https://taskloader.com/mcp` (MCP server) | | Access tokens | Opaque, `tlo_at_…`, 1 hour | | Refresh tokens | Opaque, `tlo_rt_…`, rotated on every use, 30 days from each refresh; only with `offline_access` | | Scopes | The eleven [Taskloader scopes](https://taskloader.com/docs/scopes.md), plus `offline_access` | ## Discovery Start from the resource you want to call. Its protected resource metadata (RFC 9728) names the authorization server: | Resource | Protected resource metadata | | ---------------------------------------- | -------------------------------------------------------------------- | | REST API `https://taskloader.com/api/v1` | `https://taskloader.com/.well-known/oauth-protected-resource/api/v1` | | MCP server `https://taskloader.com/mcp` | `https://taskloader.com/.well-known/oauth-protected-resource/mcp` | ```json { "resource": "https://taskloader.com/api/v1", "authorization_servers": ["https://taskloader.com/api/auth"], "bearer_methods_supported": ["header"], "scopes_supported": [ "projects:read", "projects:write", "tasks:read", "tasks:write", "comments:write", "files:read", "files:write", "people:manage", "organizations:manage", "assistant", "invitations:accept" ], "resource_name": "Taskloader", "resource_documentation": "https://taskloader.com/docs/api", "resource_policy_uri": "https://taskloader.com/privacy" } ``` The MCP server's document is the same with `"resource": "https://taskloader.com/mcp"` and its own documentation link. Every `401` from the API carries the document's address in its challenge, as `resource_metadata`, so a client can discover it from any failed request. The authorization server's metadata (RFC 8414) is at the issuer's well-known address, with the issuer path after `oauth-authorization-server`: ```text https://taskloader.com/.well-known/oauth-authorization-server/api/auth ``` ```json { "issuer": "https://taskloader.com/api/auth", "authorization_endpoint": "https://taskloader.com/api/auth/oauth2/authorize", "token_endpoint": "https://taskloader.com/api/auth/oauth2/token", "registration_endpoint": "https://taskloader.com/api/auth/oauth2/register", "revocation_endpoint": "https://taskloader.com/api/auth/oauth2/revoke", "response_types_supported": ["code"], "response_modes_supported": ["query"], "grant_types_supported": ["authorization_code", "refresh_token"], "code_challenge_methods_supported": ["S256"], "token_endpoint_auth_methods_supported": ["none", "private_key_jwt"], "token_endpoint_auth_signing_alg_values_supported": [ "RS256", "ES256", "EdDSA" ], "revocation_endpoint_auth_methods_supported": ["none", "private_key_jwt"], "client_id_metadata_document_supported": true, "authorization_response_iss_parameter_supported": true, "scopes_supported": [ "projects:read", "projects:write", "tasks:read", "tasks:write", "comments:write", "files:read", "files:write", "people:manage", "organizations:manage", "assistant", "invitations:accept", "offline_access" ], "service_documentation": "https://taskloader.com/docs/authentication/oauth", "op_policy_uri": "https://taskloader.com/privacy", "op_tos_uri": "https://taskloader.com/terms" } ``` Read these documents rather than hard-coding endpoints. Both are public, open to any origin and cacheable for 5 minutes. > **Note:** Taskloader is not an OpenID Connect provider. `https://taskloader.com/.well-known/openid-configuration` and the root address `https://taskloader.com/.well-known/oauth-authorization-server` answer `404`. Use the path form above. ## Registering your app There is no developer console and nothing to register by hand. Your app identifies itself in one of two ways. ### Client ID metadata documents The recommended way. Your `client_id` is an HTTPS URL that serves a JSON document describing your app. Taskloader fetches it when someone connects, and shows its host on the consent screen as your verified identity: "An app at **sync.example.com** wants to use your Taskloader account". ```json { "client_id": "https://sync.example.com/oauth/client-metadata.json", "client_name": "Northwind Sync", "client_uri": "https://sync.example.com", "redirect_uris": ["https://sync.example.com/oauth/callback"], "grant_types": ["authorization_code", "refresh_token"], "response_types": ["code"], "token_endpoint_auth_method": "none" } ``` Rules: - The `client_id` URL uses HTTPS on port 443, has a path, has no query or fragment, and is at most 512 characters. - The document's `client_id` equals the URL it is served from, exactly. - `client_name` is required. - `token_endpoint_auth_method` is `none`, or `private_key_jwt` with a `jwks_uri` (see [Client authentication](https://taskloader.com/docs/authentication/oauth.md#client-authentication)). - `redirect_uris` are on the same origin as the `client_id`, or loopback addresses. - `client_uri`, `jwks_uri` and `post_logout_redirect_uris` must be on the same origin as the `client_id`. - `grant_types` includes `authorization_code`, or is left out. `refresh_token` may be listed beside it; other grant types Taskloader does not support are ignored. - `response_types` is `["code"]`, or is left out. - Member names and values are whole text: no NUL character (U+0000) and no character cut in half (a lone UTF-16 surrogate). - `logo_uri`, `policy_uri` and `tos_uri` are never fetched or shown. People see your verified host, not a logo or a name you chose. - Serve the document with `Content-Type: application/json` (a `charset` parameter is fine), at most 5 KB, from a public address, without redirects, within 5 seconds. A JSON body served as `text/plain`, as `application/octet-stream` or with no `Content-Type` is refused; some static hosts and object stores serve `.json` files that way, so check the header. - Taskloader keeps a fetched document for at least 5 minutes and at most 1 hour: within that range, for as long as its HTTP cache headers allow. A document sent without cache headers, or with `no-cache`, `no-store`, `private` or a `max-age` under 300, is kept 5 minutes. A change therefore applies within an hour; while you are setting up, send `Cache-Control: no-store` (or `max-age=300`) so that changes apply within 5 minutes. - A token or revocation request from an `https` `client_id` that never connected answers `401 invalid_client`: start with the authorization request. - When too many new apps connect at once, the request stops on Taskloader's error page with `temporarily_unavailable`. Try again in a minute. When the document breaks one of these rules, the person sees "Taskloader couldn't verify this app" instead of the consent screen, and nothing is shared. The page's address carries `error=invalid_client` and a `reason`, and the page explains that reason for you: | `reason` | What the page says | | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `unreachable` | Taskloader could not fetch the app's metadata document. Its client_id URL must answer 200 with JSON over HTTPS on port 443, from a public address, within 5 seconds. | | `redirected` | The app's metadata document URL answered with a redirect. Serve the document at the client_id URL itself: redirects are not followed. | | `too_large` | The app's metadata document is larger than 5 KB. | | `not_json` | The app's metadata document is not a JSON object served as application/json. | | `client_id_mismatch` | The client_id in the app's metadata document is not exactly the URL it was fetched from. | | `client_name` | The app's metadata document has no client_name. | | `other_origin` | A redirect URI, client_uri or jwks_uri in the app's metadata document is on another origin than its client_id. Only loopback redirect URIs may differ. | | `auth_method` | The app's metadata document must use token_endpoint_auth_method none or private_key_jwt. | | `keys` | For private_key_jwt, the app's metadata document needs valid public keys: jwks, or a jwks_uri on the client_id's origin. | | `redirect_uris` | The app's metadata document needs redirect_uris: HTTPS URIs on the client_id's origin, or loopback URIs. | | `links` | A client_uri, logo_uri, policy_uri or tos_uri in the app's metadata document is not a valid public URL. | | `grant_types` | The app's metadata document lists grant_types without authorization_code. Include it, or leave grant_types out. | | `response_types` | The app's metadata document lists a response type other than code. Use "response_types": ["code"], or leave it out. | | `forbidden_member` | The app's metadata document contains a member it must not, such as client_secret. | | `broken_text` | The app's metadata document has a NUL character (U+0000) or a character cut in half (a lone UTF-16 surrogate) in a member name or value. | Without a `reason`, Taskloader could not tell which rule the document broke: check it against the rules above. ### Dynamic client registration For apps that cannot host a document, for example a desktop tool on a person's computer. Register a **public** client (RFC 7591), once, and keep the `client_id`: ```bash curl https://taskloader.com/api/auth/oauth2/register \ -H "Content-Type: application/json" \ -d '{ "client_name": "Northwind Sync", "application_type": "native", "redirect_uris": ["http://127.0.0.1/callback"], "grant_types": ["authorization_code", "refresh_token"], "response_types": ["code"], "token_endpoint_auth_method": "none" }' ``` The answer echoes your metadata with the `client_id` Taskloader assigned. There is no client secret. Rules: - `token_endpoint_auth_method` is `none`, or left out (then it is `none`). Any secret-based method is refused with `400 invalid_client_metadata`: "Taskloader registers public clients only: use token_endpoint_auth_method none with PKCE." - `grant_types` contains `authorization_code`, and may add `refresh_token`; nothing else. Left out, it is `["authorization_code"]`. Any other list is refused with `400 invalid_client_metadata`: "grant_types may contain only authorization_code (required) and refresh_token." - `response_types` is `["code"]`, or is left out. Anything else is refused with `400 invalid_client_metadata`: "response_types must be ["code"]." - `application_type` is `native` or `web`. A `web` client registers only `https` redirect URIs on a public host. A loopback URI (`http://127.0.0.1`, `http://localhost`, `http://[::1]`) needs `native`, and a `native` client may list `https` and loopback URIs together, as VS Code and Cursor do. Without `application_type`, a registration with any loopback URI is `native`, otherwise `web`. A redirect URI that breaks these rules is refused with `400 invalid_redirect_uri`. - Up to 5 `redirect_uris`. - `client_name` is 1 to 60 characters (an emoji is one) on one line, needs a visible character, and must not look like a web address. Spaces around it are removed, and each run of spaces of any kind is stored as one. Line breaks, tabs, control characters, text-direction controls (U+202A to U+202E, U+2066 to U+2069) and other invisible characters (a zero-width space, a soft hyphen) are refused with `400 invalid_client_metadata`, which names the first one. What a name needs to show as written stays: joiners between characters (👩‍💻), the direction marks U+200E, U+200F and U+061C, and an emoji's presentation selector. - `software_id` and `software_version`, when sent, are stored as sent and must be one line: no line breaks, tabs, control characters or text-direction controls. - A redirect URI may not contain spaces or control characters. No member may hold a NUL character (U+0000) or half a character (a lone UTF-16 surrogate): such a registration is refused with `400 invalid_client_metadata` (`invalid_redirect_uri` when it is in `redirect_uris`). - The JSON body can be up to 16 KiB. - Registration is limited per network (an IPv4 address, or an IPv6 /48): at most 10 an hour, at most 5 at once. Over the limit, it answers `429 temporarily_unavailable` with `Retry-After`. Register once and store the `client_id`; do not register on every run. Registered apps carry an **Unverified app** badge on the consent screen, and task history shows their name followed by "(unverified)", because anyone can register any name. Once a day, Taskloader deletes every registration that is more than a day old and that nobody has approved: either nobody approved it yet, or everyone who did has since disconnected it or reset their password. A registration unchanged for 90 days, with no tokens left and no approval given in that time, is deleted too. If you then get `invalid_client`, or the person sees "Taskloader couldn't verify this app" instead of the consent screen, register again and store the new `client_id`. ## Client authentication | Method | Use it when | How | | ----------------- | --------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | | `none` | Your app cannot keep a secret: desktop, mobile, browser, command line. Also fine for servers. | Send `client_id` with each token request. PKCE protects the code. | | `private_key_jwt` | Your server holds a private key and publishes a client metadata document. | Publish your public keys at `jwks_uri` (same origin as `client_id`). Send a signed client assertion with each token and revocation request. | A `private_key_jwt` assertion is a JWT signed with `RS256`, `ES256` or `EdDSA`, with: - `iss` and `sub`: your `client_id`; - `aud`: the URL of the endpoint you call (`https://taskloader.com/api/auth/oauth2/token` for token requests, `https://taskloader.com/api/auth/oauth2/revoke` for revocation), or the issuer `https://taskloader.com/api/auth`, which both endpoints accept. Using the issuer lets one rule cover both; - `exp`: at most 5 minutes in the future; - `jti`: a unique value. Each assertion works once. Send it as `client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer` and `client_assertion=`. PKCE is still required. If you also send `client_id`, it must be the same as `iss` and `sub`. Never send an `Authorization` header to the token or revocation endpoint: Taskloader has no client secrets, and a request with `Authorization: Basic` is refused with `401 invalid_client` (and `WWW-Authenticate: Basic`), whatever else it carries. A request that names different clients in `client_id`, `iss` and `sub`, or whose `client_assertion` is not a readable JWT, is refused the same way. Taskloader reads your `jwks_uri` when its copy is more than 5 minutes old, or when an assertion names a key id (`kid`) that copy does not have, but at most once a minute, whoever asks. To rotate keys, publish the new key at least a minute before you sign with it, and keep the old one published until you no longer sign with it. ## The authorization request Send the person's browser to the authorization endpoint: ```text https://taskloader.com/api/auth/oauth2/authorize ?response_type=code &client_id=https%3A%2F%2Fsync.example.com%2Foauth%2Fclient-metadata.json &redirect_uri=https%3A%2F%2Fsync.example.com%2Foauth%2Fcallback &scope=projects%3Aread%20tasks%3Aread%20tasks%3Awrite%20offline_access &state=Wv3nJ8qX2bYk &code_challenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM &code_challenge_method=S256 &resource=https%3A%2F%2Ftaskloader.com%2Fapi%2Fv1 ``` | Parameter | Value | | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `response_type` | `code` | | `client_id` | Your metadata document URL, or the id from registration | | `redirect_uri` | One of your registered redirect URIs | | `scope` | Space-separated scopes. Add `offline_access` to get a refresh token. | | `state` | A random value you check in the callback | | `code_challenge`, `code_challenge_method` | PKCE: `S256` only. `plain` or a missing challenge is refused. A challenge that is not 43 base64url characters (hex, or base64 with `+`, `/` or `=` padding) stops on Taskloader's error page with `error=invalid_code_challenge`, before the consent screen. | | `resource` | `https://taskloader.com/api/v1` for the REST API. See [Resources](https://taskloader.com/docs/authentication/oauth.md#resources). | ### PKCE Make a random `code_verifier` for every authorization: 43 to 128 characters from `A–Z`, `a–z`, `0–9`, `-`, `.`, `_` and `~`. The `code_challenge` is the base64url encoding, without padding, of its SHA-256 hash. ```curl CODE_VERIFIER=$(openssl rand -base64 48 | tr '+/' '-_' | tr -d '=\n') CODE_CHALLENGE=$(printf '%s' "$CODE_VERIFIER" | openssl dgst -sha256 -binary | openssl base64 -A | tr '+/' '-_' | tr -d '=') ``` ```js import { createHash, randomBytes } from 'node:crypto'; const codeVerifier = randomBytes(48).toString('base64url'); const codeChallenge = createHash('sha256').update(codeVerifier).digest('base64url'); ``` ```python import base64, hashlib, secrets code_verifier = secrets.token_urlsafe(48) code_challenge = base64.urlsafe_b64encode(hashlib.sha256(code_verifier.encode()).digest()).rstrip(b"=").decode() ``` ### Redirect URIs - HTTPS redirect URIs must match a registered one exactly: scheme, host, port, path and query. No wildcards, fragments or user info. - Loopback redirect URIs (`http://127.0.0.1`, `http://localhost`, `http://[::1]`) match on scheme, host and path, with **any port**. Register `http://127.0.0.1/callback` and listen on whatever port is free. - Custom URI schemes (`myapp://callback`) are not accepted. - A request with an unknown client, an unregistered redirect URI, an unknown `resource`, or no PKCE challenge, or a malformed one, never redirects. Taskloader shows the error on its own page, so a bad link cannot send people to an attacker. ### What the person sees The consent screen shows: - who is asking: your verified host for a metadata document, or "An app calling itself ‘…’" with an **Unverified app** badge for a registered client; - where they will go next: the host of your `redirect_uri`. When this request returns to this computer (a loopback `redirect_uri`): "This app runs on your computer. Continue only if you started connecting it yourself."; - the access you asked for, grouped as Read, Change and Manage, in plain words. Admin access (`people:manage`, `organizations:manage`) and `invitations:accept` start unticked; everything else starts ticked. The person can untick any scope, as long as one remains; - **All my projects, including new ones**, or **Only these projects** (with Only these projects, `organizations:manage` and `invitations:accept` cannot be ticked: everything they allow acts outside any one project); - how long: "Stays connected until you disconnect it, reset your password, or it goes 30 days without use" with `offline_access`, otherwise "Access ends after 1 hour". People must confirm their email address, and have signed in within the last 24 hours, before they can approve an app (the consent screen offers **Sign in again**, which comes back to your request), and can have up to 50 connected apps (every app listed in Connected apps counts, whether it holds an approval or only a live token). Someone who signs up in the middle of your flow confirms their email first; if your authorization request expired meanwhile, start it again. Taskloader skips the consent screen only when all of these are true: the app publishes a metadata document; at least one of its `redirect_uris` is not a loopback address; this request's `redirect_uri` is not a loopback address; and the person already approved every scope and resource requested. Registered (unverified) apps always see it. ### The callback On **Allow**, the browser returns to your `redirect_uri`: ```text https://sync.example.com/oauth/callback?code=…&state=Wv3nJ8qX2bYk&iss=https%3A%2F%2Ftaskloader.com%2Fapi%2Fauth ``` 1. Check that `state` is the one you sent. 2. Check that `iss` is `https://taskloader.com/api/auth` (RFC 9207). Every response carries it, errors included, so an app that talks to several servers cannot be mixed up. 3. Exchange the `code` within 60 seconds. Codes work once; using one twice revokes the tokens it gave. On **Cancel**, the callback gets `error=access_denied` with `state` and `iss`. ## The token request The token endpoint takes `application/x-www-form-urlencoded` bodies only (anything else is `415`), answers with `Cache-Control: no-store`, and allows any origin, so browser apps can call it. Send each parameter once; only `resource` may repeat. A repeated parameter answers `invalid_request`, at the authorization, token and revocation endpoints alike. So does a parameter that holds a NUL character (U+0000). ```bash curl https://taskloader.com/api/auth/oauth2/token \ --data-urlencode grant_type=authorization_code \ --data-urlencode code="$CODE" \ --data-urlencode redirect_uri=https://sync.example.com/oauth/callback \ --data-urlencode client_id=https://sync.example.com/oauth/client-metadata.json \ --data-urlencode code_verifier="$CODE_VERIFIER" \ --data-urlencode resource=https://taskloader.com/api/v1 ``` ```json { "access_token": "tlo_at_…", "token_type": "Bearer", "expires_in": 3600, "refresh_token": "tlo_rt_…", "scope": "projects:read tasks:read tasks:write offline_access" } ``` `scope` lists what the person allowed, which can be less than you asked for. Store tokens like passwords: they are bearer credentials. Then call the API with `Authorization: Bearer tlo_at_…`. ### When the token endpoint refuses Every answer from the token endpoint is JSON, with CORS and `Cache-Control: no-store`. **A refused exchange can use up the code.** Taskloader first checks the request itself, and a refusal there leaves the code usable: a repeated parameter, a body that is not form-encoded (`415`), a missing `client_id` or `code`, an unknown `client_id` (`invalid_client`), and `429`. Then it uses up the code and checks it against the authorization (`client_id`, `redirect_uri`, `resource`, `code_verifier`). After a refusal there, fix the request and start the authorization again: sending the same code again answers `invalid_grant`. The errors to handle: | Answer | When | What to do | | ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `400 invalid_grant` | The code expired (60 seconds), was used already (a refused exchange uses it up, see above), or does not match `redirect_uri`; the `code_verifier` is wrong; or a refresh token was rotated away, expired or revoked | Start the authorization again | | `400 invalid_grant`, "code verification failed" | The `code_verifier` does not match the `code_challenge`: the challenge must be the base64url encoding, without padding, of the SHA-256 of this verifier | Fix how the challenge is made, then start the authorization again | | `400 invalid_grant`, "Access for this app was withdrawn while this request was answered." | During the code's 60 seconds, the person disconnected your app, or approved it again with fewer scopes than the code carries. Nothing the request issued stays alive. | Start the authorization again | | `400 invalid_grant`, "The refresh token was revoked while this request was answered." | A password reset, **Disconnect** or detected reuse overtook the refresh | Start the authorization again | | `400 invalid_grant`, "This authorization could not be completed, and its code is used up." | The exchange failed after the code was used | Start the authorization again | | `400 invalid_client` (`401` for a metadata-document `client_id`) | Taskloader does not know the `client_id`: a registration that was deleted (`400`, "client not found"), or a metadata document that never connected (`401`); or a `private_key_jwt` assertion failed. Also `401` for an `Authorization: Basic` header, and for a `client_id` that differs from the assertion's `iss` or `sub` | Register again, start the authorization again, fix the assertion, or send no `Authorization` header | | `400 invalid_request`, `invalid_target` | A parameter is missing, repeated or holds a NUL character (U+0000); or `resource` names one the authorization did not include (a refresh can ask only for resources the grant holds), or one Taskloader does not serve | Fix the request. For a code, start the authorization again, unless a parameter was repeated or `client_id` or `code` was missing | | `429 temporarily_unavailable`, with `Retry-After` | Too many requests for this code or refresh-token family (30 a minute), or from your app at your address | Wait `Retry-After` seconds, then send the same request again. Nothing was issued or used up | | `500 server_error`, "Something went wrong. Please try again." | Anything else | Safe to retry: send the same request again | ## Resources Taskloader protects two resources, and every token is bound to the ones it was issued for: | `resource` | For | | ------------------------------- | -------------- | | `https://taskloader.com/api/v1` | The REST API | | `https://taskloader.com/mcp` | The MCP server | - **REST apps must send `resource=https://taskloader.com/api/v1`** on the authorization request. Without `resource`, Taskloader assumes an MCP client and issues an MCP token, which the REST API refuses with `401 invalid_token` and `reason: "wrong_audience"`. - To use both, send `resource` twice on the authorization request. A token request may then ask for either or both; it can never add one that was not authorized. - An unknown `resource` is refused with `invalid_target`. ## Scopes and offline_access - Ask for the scopes your app needs, not all of them. Each one is a line the person reads before allowing. The [scope reference](https://taskloader.com/docs/scopes.md) says which operations each scope unlocks. - `offline_access` asks for a refresh token. Without it, access ends when the access token expires after 1 hour. - Check `scope` in the token response, or `credential.scopes` from `GET /api/v1/me`, to see what was granted. Hide features the person did not allow instead of letting them fail. - A request that needs a scope the person did not grant fails with `403 insufficient_scope`, naming `requiredScopes`. To get more access, send the person through authorization again, asking for the extra scopes; Taskloader shows the consent screen for them. - Approving again only adds what is newly allowed: the new token carries that approval's scopes, and earlier tokens keep theirs. If the person **unticks** a scope your app already had, every earlier token and outstanding code that carries it stops working at once (the API answers `401 invalid_token`, a refresh `invalid_grant`), while connections without that scope keep working. - Account settings → Connected apps shows the person every scope your app can use: its approval, plus any scope a live token still carries. - Your app always acts with the person's role in each project. Scopes narrow what it can do; they never add to the person's role. ## Refreshing tokens ```bash curl https://taskloader.com/api/auth/oauth2/token \ --data-urlencode grant_type=refresh_token \ --data-urlencode refresh_token="$REFRESH_TOKEN" \ --data-urlencode client_id=https://sync.example.com/oauth/client-metadata.json \ --data-urlencode resource=https://taskloader.com/api/v1 ``` - **Every refresh rotates.** The answer has a new access token and a **new refresh token**; store the new one before you use the access token. The old refresh token stops working. - **Retries are safe for 60 seconds.** If the answer was lost, sending the identical refresh request again within 60 seconds returns the same answer. Identical refreshes sent at the same moment all get the same answer too, so parallel requests that all met a `401` cannot sign your app out. - **Reuse after that is treated as theft.** Using an old refresh token later revokes the whole family: every refresh and access token from that sign-in. The token endpoint answers `invalid_grant`, and the person has to connect your app again. - Refresh tokens last 30 days, counted from each refresh, so an app in regular use stays connected. A refresh never adds scopes or resources. - Refresh before the access token expires (it lasts 1 hour), or when the API answers `401` with `reason: "expired"`. - `private_key_jwt` clients send a fresh client assertion with every refresh, retries included. If several processes share one connection, let one of them refresh and share the result. Two processes refreshing the same token more than 60 seconds apart revoke the family. ## Revoking tokens When someone disconnects your app on your side, revoke its refresh token (RFC 7009): ```bash curl https://taskloader.com/api/auth/oauth2/revoke \ --data-urlencode token="$REFRESH_TOKEN" \ --data-urlencode token_type_hint=refresh_token \ --data-urlencode client_id=https://sync.example.com/oauth/client-metadata.json ``` Revoking a refresh token also revokes the access tokens issued from it, and a rotated (older) refresh token you present revokes its whole family too. Revoking an access token ends only that token. `token_type_hint` is only a hint: a refresh token sent with `token_type_hint=access_token` is revoked as a refresh token, and an access token sent as a refresh token is revoked too. A revocation answers `200` with an empty body whether or not anything was left to revoke (RFC 7009). Revoking a token again, revoking one that has expired, sending a token your app never received (another app's tokens are never touched) and sending a value that is no Taskloader token all answer `200` and change nothing more. A retry after a lost answer is therefore always safe, and a `200` does not mean the token was valid. Only a request Taskloader cannot read is refused: without a `token` it answers `400 invalid_request`, and without a `client_id` `401 invalid_client`. It answers `401 invalid_client` too for an `Authorization: Basic` header, or a `client_id` that differs from your assertion's `iss` and `sub`. Your app can also lose access without asking. Each of these takes effect on the next request: | What happened | Effect | | -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | The person chose **Disconnect** in Account settings → Connected apps | Every token and the approval are deleted. Your app must ask again. If nobody else has approved your [registration](https://taskloader.com/docs/authentication/oauth.md#dynamic-client-registration), the daily clean-up deletes it, usually within a day: register again when you get `invalid_client`. | | The person reset their password | Every token and every approval of every app is deleted. Your app gets new tokens only after the person approves it again on the consent screen; until then, their Connected apps lists it as signed out for a day or two. A registration nobody else has approved is deleted as after **Disconnect**. | | The person approved your app again with fewer scopes | Every token and outstanding code carrying an unticked scope stops working. | | The person removed a project from your app's list | That project answers `404` from then on. | | The person left a project, or their role changed | Your app's access follows their membership and role. | When a refresh answers `invalid_grant`, the connection is gone: stop, and offer to connect again. ## Lifetimes | Item | Lifetime | | ------------------------------ | ----------------------------------------------------------------------------------------------------------------- | | Authorization code | 60 seconds, single use | | Access token | 1 hour | | Refresh token | 30 days from its issue; each refresh issues a new one | | Identical refresh retry | Answered the same for 60 seconds | | Client metadata document cache | 5 minutes to 1 hour, as its cache headers allow within that range (5 minutes when they allow less or say nothing) | ## Limits on the OAuth endpoints | Endpoint | Limit | | ------------------------- | ---------------------------------------------------------------------------------------------------------------- | | Token endpoint | 30 requests a minute per refresh-token family or authorization code, plus a high per-client, per-address ceiling | | Registration | At most 10 an hour per network, an IPv4 address or an IPv6 /48 (at most 5 at once), under a global flood ceiling | | Consent (Allow or Cancel) | At most 60 an hour per person (at most 30 at once) | Over a limit, the token, revocation and registration endpoints answer `429 temporarily_unavailable` with `Retry-After`: wait that many seconds, then send the same request again. ## Not supported - OpenID Connect: no `openid` scope, ID tokens, userinfo or `openid-configuration`. `GET /api/v1/me` returns the person's name and email. - Client secrets, and `client_secret_basic` or `client_secret_post`. - The `client_credentials`, device, token exchange and JWT bearer grants. - Token introspection. Call the API with the token instead: `GET /api/v1/me` tells you whether it works. - Custom URI scheme redirects. - DPoP and other proof-of-possession tokens. The [status page](https://taskloader.com/docs/status.md) lists what is planned. # Scopes Source: https://taskloader.com/docs/scopes What each scope allows, which operations and MCP tools need it, and how roles and project restriction narrow it. A credential can do what its owner’s role allows, narrowed by its scopes and, when it is limited to some projects, by that list. Scopes never grant more than the role. Write scopes include the matching read scope. OAuth apps may also ask for `offline_access` to stay connected with a refresh token; it is not an API scope. | Scope | Lets the app or key | Includes | Pre-ticked on consent | Notes | | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------- | --------------------- | ---------------------------------------------------- | | `projects:read` | See your organizations and projects, and the people in them (names, email addresses and roles) | — | Yes | — | | `projects:write` | Create organizations and projects, change project details, and leave projects or organizations | `projects:read` | Yes | — | | `tasks:read` | See tasks, checklists, comments, activity, bookmarks and charts | — | Yes | — | | `tasks:write` | Create, change, move and delete tasks, checklists and bookmarks | `tasks:read` | Yes | — | | `comments:write` | Comment on tasks as you | — | Yes | — | | `files:read` | See and download files attached to tasks | — | Yes | — | | `files:write` | Attach files to tasks and delete them | `files:read` | Yes | — | | `people:manage` | Add and remove people in projects you manage, change their roles and create invitation links | `projects:read` | No | admin | | `organizations:manage` | Manage organizations you administer: rename them, change people’s roles, remove people, create invitation links, and join any of their projects as an admin | `projects:read` | No | admin; not for keys or apps limited to some projects | | `assistant` | Ask Taskloader’s assistant and read your conversations with it (both with See projects and See tasks; answers that name files need See files too), apply or dismiss its suggestions, and delete conversations (uses your hourly question allowance) | — | Yes | — | | `invitations:accept` | Accept invitations to join projects and organizations for you | — | No | not for keys or apps limited to some projects | ## API key presets {#presets} When you make a key in Taskloader → Account settings → API keys, you can start from a preset and adjust it. | Preset | Scopes | | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Read only | `projects:read`, `tasks:read`, `files:read` | | Work with tasks | `projects:read`, `tasks:read`, `files:read`, `tasks:write`, `comments:write`, `files:write` | | Everything | `projects:read`, `projects:write`, `tasks:read`, `tasks:write`, `comments:write`, `files:read`, `files:write`, `people:manage`, `organizations:manage`, `assistant`, `invitations:accept` | ## Project restriction {#project-restriction} A key or app connection can be limited to some projects. Each operation says how such a credential is treated: - `project`: allowed inside the credential’s projects; anything else is `not_found`. - `listing`: allowed; results include only the credential’s projects. - `organization_read`: allowed for organizations that hold one of the credential’s projects. - `account`: refused with `credential_restricted`; use a credential with access to all projects. ## Operations by scope {#operations-by-scope} - `projects:read`: [`resolve_reference`](https://taskloader.com/docs/api/reference/account.md#resolve_reference), [`list_organizations`](https://taskloader.com/docs/api/reference/organizations.md#list_organizations), [`get_organization`](https://taskloader.com/docs/api/reference/organizations.md#get_organization), [`list_organization_members`](https://taskloader.com/docs/api/reference/organizations.md#list_organization_members), [`list_organization_guests`](https://taskloader.com/docs/api/reference/organizations.md#list_organization_guests), [`list_organization_projects`](https://taskloader.com/docs/api/reference/organizations.md#list_organization_projects), [`list_projects`](https://taskloader.com/docs/api/reference/projects.md#list_projects), [`get_project`](https://taskloader.com/docs/api/reference/projects.md#get_project), [`list_project_members`](https://taskloader.com/docs/api/reference/people.md#list_project_members), [`project_overview`](https://taskloader.com/docs/api/reference/insights.md#project_overview), [`ask_assistant`](https://taskloader.com/docs/api/reference/assistant.md#ask_assistant), [`list_assistant_threads`](https://taskloader.com/docs/api/reference/assistant.md#list_assistant_threads), [`get_assistant_thread`](https://taskloader.com/docs/api/reference/assistant.md#get_assistant_thread), [`list_assistant_messages`](https://taskloader.com/docs/api/reference/assistant.md#list_assistant_messages), [`get_assistant_message`](https://taskloader.com/docs/api/reference/assistant.md#get_assistant_message) - `projects:write`: [`create_organization`](https://taskloader.com/docs/api/reference/organizations.md#create_organization), [`leave_organization`](https://taskloader.com/docs/api/reference/organizations.md#leave_organization), [`create_project`](https://taskloader.com/docs/api/reference/projects.md#create_project), [`update_project`](https://taskloader.com/docs/api/reference/projects.md#update_project), [`leave_project`](https://taskloader.com/docs/api/reference/projects.md#leave_project) - `tasks:read`: [`search_tasks`](https://taskloader.com/docs/api/reference/tasks.md#search_tasks), [`search_tasks_everywhere`](https://taskloader.com/docs/api/reference/tasks.md#search_tasks_everywhere), [`get_task`](https://taskloader.com/docs/api/reference/tasks.md#get_task), [`get_task_by_key`](https://taskloader.com/docs/api/reference/tasks.md#get_task_by_key), [`list_comments`](https://taskloader.com/docs/api/reference/comments.md#list_comments), [`list_task_activity`](https://taskloader.com/docs/api/reference/activity.md#list_task_activity), [`list_project_activity`](https://taskloader.com/docs/api/reference/activity.md#list_project_activity), [`list_events`](https://taskloader.com/docs/api/reference/events.md#list_events), [`project_overview`](https://taskloader.com/docs/api/reference/insights.md#project_overview), [`count_tasks`](https://taskloader.com/docs/api/reference/insights.md#count_tasks), [`weekly_trend`](https://taskloader.com/docs/api/reference/insights.md#weekly_trend), [`list_task_links`](https://taskloader.com/docs/api/reference/bookmarks.md#list_task_links), [`list_link_previews`](https://taskloader.com/docs/api/reference/bookmarks.md#list_link_previews), [`get_link_preview_image`](https://taskloader.com/docs/api/reference/bookmarks.md#get_link_preview_image), [`ask_assistant`](https://taskloader.com/docs/api/reference/assistant.md#ask_assistant), [`list_assistant_threads`](https://taskloader.com/docs/api/reference/assistant.md#list_assistant_threads), [`get_assistant_thread`](https://taskloader.com/docs/api/reference/assistant.md#get_assistant_thread), [`list_assistant_messages`](https://taskloader.com/docs/api/reference/assistant.md#list_assistant_messages), [`get_assistant_message`](https://taskloader.com/docs/api/reference/assistant.md#get_assistant_message) - `tasks:write`: [`create_task`](https://taskloader.com/docs/api/reference/tasks.md#create_task), [`create_tasks`](https://taskloader.com/docs/api/reference/tasks.md#create_tasks), [`update_task`](https://taskloader.com/docs/api/reference/tasks.md#update_task), [`move_task`](https://taskloader.com/docs/api/reference/tasks.md#move_task), [`delete_task`](https://taskloader.com/docs/api/reference/tasks.md#delete_task), [`edit_checklist`](https://taskloader.com/docs/api/reference/tasks.md#edit_checklist), [`add_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#add_bookmark), [`remove_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#remove_bookmark) - `comments:write`: [`add_comment`](https://taskloader.com/docs/api/reference/comments.md#add_comment) - `files:read`: [`list_task_attachments`](https://taskloader.com/docs/api/reference/files.md#list_task_attachments), [`list_project_attachments`](https://taskloader.com/docs/api/reference/files.md#list_project_attachments), [`get_attachment`](https://taskloader.com/docs/api/reference/files.md#get_attachment), [`download_attachment`](https://taskloader.com/docs/api/reference/files.md#download_attachment), [`get_attachment_preview`](https://taskloader.com/docs/api/reference/files.md#get_attachment_preview), [`read_attachment`](https://taskloader.com/docs/mcp/tools.md#read_attachment) - `files:write`: [`upload_preview`](https://taskloader.com/docs/api/reference/files.md#upload_preview), [`upload_attachment`](https://taskloader.com/docs/api/reference/files.md#upload_attachment), [`start_upload`](https://taskloader.com/docs/api/reference/files.md#start_upload), [`get_upload`](https://taskloader.com/docs/api/reference/files.md#get_upload), [`upload_part`](https://taskloader.com/docs/api/reference/files.md#upload_part), [`complete_upload`](https://taskloader.com/docs/api/reference/files.md#complete_upload), [`cancel_upload`](https://taskloader.com/docs/api/reference/files.md#cancel_upload), [`delete_attachment`](https://taskloader.com/docs/api/reference/files.md#delete_attachment), [`attach_file`](https://taskloader.com/docs/mcp/tools.md#attach_file) - `people:manage`: [`list_member_candidates`](https://taskloader.com/docs/api/reference/people.md#list_member_candidates), [`add_project_member`](https://taskloader.com/docs/api/reference/people.md#add_project_member), [`change_project_member_role`](https://taskloader.com/docs/api/reference/people.md#change_project_member_role), [`remove_project_member`](https://taskloader.com/docs/api/reference/people.md#remove_project_member), [`list_project_invitations`](https://taskloader.com/docs/api/reference/invitations.md#list_project_invitations), [`create_project_invitation`](https://taskloader.com/docs/api/reference/invitations.md#create_project_invitation), [`revoke_project_invitation`](https://taskloader.com/docs/api/reference/invitations.md#revoke_project_invitation) - `organizations:manage`: [`update_organization`](https://taskloader.com/docs/api/reference/organizations.md#update_organization), [`change_organization_role`](https://taskloader.com/docs/api/reference/organizations.md#change_organization_role), [`remove_organization_member`](https://taskloader.com/docs/api/reference/organizations.md#remove_organization_member), [`join_project`](https://taskloader.com/docs/api/reference/organizations.md#join_project), [`list_organization_invitations`](https://taskloader.com/docs/api/reference/invitations.md#list_organization_invitations), [`create_organization_invitation`](https://taskloader.com/docs/api/reference/invitations.md#create_organization_invitation), [`revoke_organization_invitation`](https://taskloader.com/docs/api/reference/invitations.md#revoke_organization_invitation) - `assistant`: [`ask_assistant`](https://taskloader.com/docs/api/reference/assistant.md#ask_assistant), [`list_assistant_threads`](https://taskloader.com/docs/api/reference/assistant.md#list_assistant_threads), [`get_assistant_thread`](https://taskloader.com/docs/api/reference/assistant.md#get_assistant_thread), [`list_assistant_messages`](https://taskloader.com/docs/api/reference/assistant.md#list_assistant_messages), [`get_assistant_message`](https://taskloader.com/docs/api/reference/assistant.md#get_assistant_message), [`delete_assistant_thread`](https://taskloader.com/docs/api/reference/assistant.md#delete_assistant_thread), [`apply_assistant_changes`](https://taskloader.com/docs/api/reference/assistant.md#apply_assistant_changes), [`dismiss_assistant_changes`](https://taskloader.com/docs/api/reference/assistant.md#dismiss_assistant_changes) - `invitations:accept`: [`preview_invitation`](https://taskloader.com/docs/api/reference/invitations.md#preview_invitation), [`accept_invitation`](https://taskloader.com/docs/api/reference/invitations.md#accept_invitation) ## Roles {#roles} The role each operation needs, checked on every request (a role change applies at once), and how project-restricted credentials are treated. | Operation | Scopes | Who | Restricted credentials | | -------------------------------------------------------------------------------------------------- | ------------------------------------------ | --------------------------------------------------------- | ---------------------- | | [`get_me`](https://taskloader.com/docs/api/reference/account.md#get_me) | — | Any signed-in person | listing | | [`resolve_reference`](https://taskloader.com/docs/api/reference/account.md#resolve_reference) | `projects:read` | Viewer or above in the project | project | | [`list_organizations`](https://taskloader.com/docs/api/reference/organizations.md#list_organizations) | `projects:read` | Any signed-in person | listing | | [`create_organization`](https://taskloader.com/docs/api/reference/organizations.md#create_organization) | `projects:write` | Any signed-in person | account | | [`get_organization`](https://taskloader.com/docs/api/reference/organizations.md#get_organization) | `projects:read` | Any member in the organization | organization_read | | [`update_organization`](https://taskloader.com/docs/api/reference/organizations.md#update_organization) | `organizations:manage` | Organization admin or owner | account | | [`list_organization_members`](https://taskloader.com/docs/api/reference/organizations.md#list_organization_members) | `projects:read` | Any member in the organization | organization_read | | [`list_organization_guests`](https://taskloader.com/docs/api/reference/organizations.md#list_organization_guests) | `projects:read` | Organization admin or owner | organization_read | | [`list_organization_projects`](https://taskloader.com/docs/api/reference/organizations.md#list_organization_projects) | `projects:read` | Any member in the organization | organization_read | | [`change_organization_role`](https://taskloader.com/docs/api/reference/organizations.md#change_organization_role) | `organizations:manage` | Organization admin or owner | account | | [`remove_organization_member`](https://taskloader.com/docs/api/reference/organizations.md#remove_organization_member) | `organizations:manage` | Organization admin or owner | account | | [`leave_organization`](https://taskloader.com/docs/api/reference/organizations.md#leave_organization) | `projects:write` | Any member in the organization, except the owner | account | | [`join_project`](https://taskloader.com/docs/api/reference/organizations.md#join_project) | `organizations:manage` | Organization admin or owner | account | | [`list_projects`](https://taskloader.com/docs/api/reference/projects.md#list_projects) | `projects:read` | Any signed-in person | listing | | [`create_project`](https://taskloader.com/docs/api/reference/projects.md#create_project) | `projects:write` | Any member in the organization | account | | [`get_project`](https://taskloader.com/docs/api/reference/projects.md#get_project) | `projects:read` | Viewer or above in the project | project | | [`update_project`](https://taskloader.com/docs/api/reference/projects.md#update_project) | `projects:write` | Admin or owner in the project | project | | [`leave_project`](https://taskloader.com/docs/api/reference/projects.md#leave_project) | `projects:write` | Viewer or above in the project, except the owner | project | | [`list_project_members`](https://taskloader.com/docs/api/reference/people.md#list_project_members) | `projects:read` | Viewer or above in the project | project | | [`list_member_candidates`](https://taskloader.com/docs/api/reference/people.md#list_member_candidates) | `people:manage` | Admin or owner in the project | project | | [`add_project_member`](https://taskloader.com/docs/api/reference/people.md#add_project_member) | `people:manage` | Admin or owner in the project | project | | [`change_project_member_role`](https://taskloader.com/docs/api/reference/people.md#change_project_member_role) | `people:manage` | Admin or owner in the project | project | | [`remove_project_member`](https://taskloader.com/docs/api/reference/people.md#remove_project_member) | `people:manage` | Admin or owner in the project | project | | [`list_organization_invitations`](https://taskloader.com/docs/api/reference/invitations.md#list_organization_invitations) | `organizations:manage` | Organization admin or owner | account | | [`create_organization_invitation`](https://taskloader.com/docs/api/reference/invitations.md#create_organization_invitation) | `organizations:manage` | Organization admin or owner | account | | [`revoke_organization_invitation`](https://taskloader.com/docs/api/reference/invitations.md#revoke_organization_invitation) | `organizations:manage` | Organization admin or owner | account | | [`list_project_invitations`](https://taskloader.com/docs/api/reference/invitations.md#list_project_invitations) | `people:manage` | Admin or owner in the project | project | | [`create_project_invitation`](https://taskloader.com/docs/api/reference/invitations.md#create_project_invitation) | `people:manage` | Admin or owner in the project | project | | [`revoke_project_invitation`](https://taskloader.com/docs/api/reference/invitations.md#revoke_project_invitation) | `people:manage` | Admin or owner in the project | project | | [`preview_invitation`](https://taskloader.com/docs/api/reference/invitations.md#preview_invitation) | `invitations:accept` | Any signed-in person | account | | [`accept_invitation`](https://taskloader.com/docs/api/reference/invitations.md#accept_invitation) | `invitations:accept` | Any signed-in person | account | | [`search_tasks`](https://taskloader.com/docs/api/reference/tasks.md#search_tasks) | `tasks:read` | Viewer or above in the project | project | | [`search_tasks_everywhere`](https://taskloader.com/docs/api/reference/tasks.md#search_tasks_everywhere) | `tasks:read` | Viewer or above in the project | listing | | [`get_task`](https://taskloader.com/docs/api/reference/tasks.md#get_task) | `tasks:read` | Viewer or above in the project | project | | [`get_task_by_key`](https://taskloader.com/docs/api/reference/tasks.md#get_task_by_key) | `tasks:read` | Viewer or above in the project | project | | [`create_task`](https://taskloader.com/docs/api/reference/tasks.md#create_task) | `tasks:write` | Editor or above in the project | project | | [`create_tasks`](https://taskloader.com/docs/api/reference/tasks.md#create_tasks) | `tasks:write` | Editor or above in the project | project | | [`update_task`](https://taskloader.com/docs/api/reference/tasks.md#update_task) | `tasks:write` | Editor or above in the project | project | | [`move_task`](https://taskloader.com/docs/api/reference/tasks.md#move_task) | `tasks:write` | Editor or above in the project | project | | [`delete_task`](https://taskloader.com/docs/api/reference/tasks.md#delete_task) | `tasks:write` | Editor or above in the project | project | | [`edit_checklist`](https://taskloader.com/docs/api/reference/tasks.md#edit_checklist) | `tasks:write` | Editor or above in the project | project | | [`list_comments`](https://taskloader.com/docs/api/reference/comments.md#list_comments) | `tasks:read` | Viewer or above in the project | project | | [`add_comment`](https://taskloader.com/docs/api/reference/comments.md#add_comment) | `comments:write` | Viewer or above in the project | project | | [`list_task_activity`](https://taskloader.com/docs/api/reference/activity.md#list_task_activity) | `tasks:read` | Viewer or above in the project | project | | [`list_project_activity`](https://taskloader.com/docs/api/reference/activity.md#list_project_activity) | `tasks:read` | Viewer or above in the project | project | | [`list_events`](https://taskloader.com/docs/api/reference/events.md#list_events) | `tasks:read` | Viewer or above in the project | project | | [`project_overview`](https://taskloader.com/docs/api/reference/insights.md#project_overview) | `projects:read`, `tasks:read` | Viewer or above in the project | project | | [`count_tasks`](https://taskloader.com/docs/api/reference/insights.md#count_tasks) | `tasks:read` | Viewer or above in the project | project | | [`weekly_trend`](https://taskloader.com/docs/api/reference/insights.md#weekly_trend) | `tasks:read` | Viewer or above in the project | project | | [`add_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#add_bookmark) | `tasks:write` | Editor or above in the project | project | | [`remove_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#remove_bookmark) | `tasks:write` | Editor or above in the project | project | | [`list_task_links`](https://taskloader.com/docs/api/reference/bookmarks.md#list_task_links) | `tasks:read` | Viewer or above in the project | project | | [`list_link_previews`](https://taskloader.com/docs/api/reference/bookmarks.md#list_link_previews) | `tasks:read` | Viewer or above in the project | project | | [`get_link_preview_image`](https://taskloader.com/docs/api/reference/bookmarks.md#get_link_preview_image) | `tasks:read` | Viewer or above in the project | project | | [`list_task_attachments`](https://taskloader.com/docs/api/reference/files.md#list_task_attachments) | `files:read` | Viewer or above in the project | project | | [`list_project_attachments`](https://taskloader.com/docs/api/reference/files.md#list_project_attachments) | `files:read` | Viewer or above in the project | project | | [`get_attachment`](https://taskloader.com/docs/api/reference/files.md#get_attachment) | `files:read` | Viewer or above in the project | project | | [`download_attachment`](https://taskloader.com/docs/api/reference/files.md#download_attachment) | `files:read` | Viewer or above in the project | project | | [`get_attachment_preview`](https://taskloader.com/docs/api/reference/files.md#get_attachment_preview) | `files:read` | Viewer or above in the project | project | | [`upload_preview`](https://taskloader.com/docs/api/reference/files.md#upload_preview) | `files:write` | The person who started the upload | project | | [`upload_attachment`](https://taskloader.com/docs/api/reference/files.md#upload_attachment) | `files:write` | Editor or above in the project | project | | [`start_upload`](https://taskloader.com/docs/api/reference/files.md#start_upload) | `files:write` | Editor or above in the project | project | | [`get_upload`](https://taskloader.com/docs/api/reference/files.md#get_upload) | `files:write` | The person who started the upload | project | | [`upload_part`](https://taskloader.com/docs/api/reference/files.md#upload_part) | `files:write` | The person who started the upload | project | | [`complete_upload`](https://taskloader.com/docs/api/reference/files.md#complete_upload) | `files:write` | The person who started the upload | project | | [`cancel_upload`](https://taskloader.com/docs/api/reference/files.md#cancel_upload) | `files:write` | The person who started the upload | project | | [`delete_attachment`](https://taskloader.com/docs/api/reference/files.md#delete_attachment) | `files:write` | Editor or above in the project | project | | [`read_attachment`](https://taskloader.com/docs/mcp/tools.md#read_attachment) | `files:read` | Viewer or above in the project | project | | [`attach_file`](https://taskloader.com/docs/mcp/tools.md#attach_file) | `files:write` | Editor or above in the project | project | | [`ask_assistant`](https://taskloader.com/docs/api/reference/assistant.md#ask_assistant) | `assistant`, `projects:read`, `tasks:read` | Viewer or above in the project | project | | [`list_assistant_threads`](https://taskloader.com/docs/api/reference/assistant.md#list_assistant_threads) | `assistant`, `projects:read`, `tasks:read` | Viewer or above in the project | project | | [`get_assistant_thread`](https://taskloader.com/docs/api/reference/assistant.md#get_assistant_thread) | `assistant`, `projects:read`, `tasks:read` | The person who started the conversation | project | | [`list_assistant_messages`](https://taskloader.com/docs/api/reference/assistant.md#list_assistant_messages) | `assistant`, `projects:read`, `tasks:read` | The person who started the conversation | project | | [`get_assistant_message`](https://taskloader.com/docs/api/reference/assistant.md#get_assistant_message) | `assistant`, `projects:read`, `tasks:read` | The person who started the conversation | project | | [`delete_assistant_thread`](https://taskloader.com/docs/api/reference/assistant.md#delete_assistant_thread) | `assistant` | The person who started the conversation | project | | [`apply_assistant_changes`](https://taskloader.com/docs/api/reference/assistant.md#apply_assistant_changes) | `assistant` | Editor or above in the project, in their own conversation | project | | [`dismiss_assistant_changes`](https://taskloader.com/docs/api/reference/assistant.md#dismiss_assistant_changes) | `assistant` | The person who started the conversation | project | ## MCP tools {#mcp-tools} The scopes each MCP tool needs. A connection lists a tool only when it holds them; where a tool names two sets, either one is enough. A tool then needs the role of each operation it runs, as in the table above. | Tool | Scopes | | ------------------------------------------------------------------------ | ------------------------------------------- | | [`list_projects`](https://taskloader.com/docs/mcp/tools.md#list_projects) | `projects:read` | | [`get_project_overview`](https://taskloader.com/docs/mcp/tools.md#get_project_overview) | `projects:read`, `tasks:read` | | [`search_tasks`](https://taskloader.com/docs/mcp/tools.md#search_tasks) | `tasks:read` | | [`get_task`](https://taskloader.com/docs/mcp/tools.md#get_task) | `tasks:read` | | [`get_activity`](https://taskloader.com/docs/mcp/tools.md#get_activity) | `tasks:read` | | [`count_tasks`](https://taskloader.com/docs/mcp/tools.md#count_tasks) | `tasks:read` | | [`weekly_trend`](https://taskloader.com/docs/mcp/tools.md#weekly_trend) | `tasks:read` | | [`list_members`](https://taskloader.com/docs/mcp/tools.md#list_members) | `projects:read` | | [`get_organization`](https://taskloader.com/docs/mcp/tools.md#get_organization) | `projects:read` | | [`read_attachment`](https://taskloader.com/docs/mcp/tools.md#read_attachment) | `files:read` | | [`list_invitations`](https://taskloader.com/docs/mcp/tools.md#list_invitations) | `people:manage`, or `organizations:manage` | | [`list_assistant_threads`](https://taskloader.com/docs/mcp/tools.md#list_assistant_threads) | `projects:read`, `tasks:read`, `assistant` | | [`get_assistant_answer`](https://taskloader.com/docs/mcp/tools.md#get_assistant_answer) | `projects:read`, `tasks:read`, `assistant` | | [`create_task`](https://taskloader.com/docs/mcp/tools.md#create_task) | `tasks:write` | | [`create_tasks`](https://taskloader.com/docs/mcp/tools.md#create_tasks) | `tasks:write` | | [`update_task`](https://taskloader.com/docs/mcp/tools.md#update_task) | `tasks:write` | | [`move_task`](https://taskloader.com/docs/mcp/tools.md#move_task) | `tasks:write` | | [`edit_checklist`](https://taskloader.com/docs/mcp/tools.md#edit_checklist) | `tasks:write` | | [`delete_task`](https://taskloader.com/docs/mcp/tools.md#delete_task) | `tasks:write` | | [`add_comment`](https://taskloader.com/docs/mcp/tools.md#add_comment) | `comments:write` | | [`add_bookmark`](https://taskloader.com/docs/mcp/tools.md#add_bookmark) | `tasks:write` | | [`attach_file`](https://taskloader.com/docs/mcp/tools.md#attach_file) | `files:write` | | [`delete_attachment`](https://taskloader.com/docs/mcp/tools.md#delete_attachment) | `files:write` | | [`create_project`](https://taskloader.com/docs/mcp/tools.md#create_project) | `projects:write` | | [`update_project`](https://taskloader.com/docs/mcp/tools.md#update_project) | `projects:write` | | [`create_organization`](https://taskloader.com/docs/mcp/tools.md#create_organization) | `projects:write` | | [`update_organization`](https://taskloader.com/docs/mcp/tools.md#update_organization) | `organizations:manage` | | [`change_organization_role`](https://taskloader.com/docs/mcp/tools.md#change_organization_role) | `organizations:manage` | | [`remove_from_organization`](https://taskloader.com/docs/mcp/tools.md#remove_from_organization) | `organizations:manage`, or `projects:write` | | [`join_project`](https://taskloader.com/docs/mcp/tools.md#join_project) | `organizations:manage` | | [`add_member`](https://taskloader.com/docs/mcp/tools.md#add_member) | `people:manage` | | [`change_member_role`](https://taskloader.com/docs/mcp/tools.md#change_member_role) | `people:manage` | | [`remove_member`](https://taskloader.com/docs/mcp/tools.md#remove_member) | `people:manage`, or `projects:write` | | [`invite_people`](https://taskloader.com/docs/mcp/tools.md#invite_people) | `people:manage`, or `organizations:manage` | | [`revoke_invitation`](https://taskloader.com/docs/mcp/tools.md#revoke_invitation) | `people:manage`, or `organizations:manage` | | [`accept_invitation`](https://taskloader.com/docs/mcp/tools.md#accept_invitation) | `invitations:accept` | | [`ask_assistant`](https://taskloader.com/docs/mcp/tools.md#ask_assistant) | `projects:read`, `tasks:read`, `assistant` | | [`apply_assistant_changes`](https://taskloader.com/docs/mcp/tools.md#apply_assistant_changes) | `assistant` | | [`dismiss_assistant_changes`](https://taskloader.com/docs/mcp/tools.md#dismiss_assistant_changes) | `assistant` | | [`delete_assistant_thread`](https://taskloader.com/docs/mcp/tools.md#delete_assistant_thread) | `assistant` | | [`search`](https://taskloader.com/docs/mcp/tools.md#search) | `tasks:read` (ChatGPT only) | | [`fetch`](https://taskloader.com/docs/mcp/tools.md#fetch) | `tasks:read` (ChatGPT only) | # Concepts Source: https://taskloader.com/docs/concepts How Taskloader is organized: organizations, projects and roles, members and users, tasks, the Tasks and People views, activity, events and provenance. This page explains the things the API works with and how they relate. The [conventions](https://taskloader.com/docs/api.md) cover the mechanics: ids, pagination, errors and versions. ```text Organization (northwind) ├── people: owner, admins, members (and guests, who are in some of its projects only) └── Project (northwind/website-launch) ├── members: one owner, admins, editors, viewers └── Task (northwind/website-launch/TL-012) ├── checklist, bookmark, files └── comments and activity ``` ## Organizations An organization holds projects and the people who work on them together. Its `slug` is the first part of every project's address (`taskloader.com/northwind/…`). | Organization role | Can | | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `member` | See the organization and its people; create projects in it; be added to its projects directly, without an invitation link | | `admin` | Also rename it, change its link, invite people to it, change their roles, remove people (from the organization and all its projects), and join any of its projects as a project admin | | `owner` | Everything. There is one owner, who created the organization, and who cannot be removed, demoted or leave. | People who are in some of an organization's projects without being members of the organization are its **guests**. They see only their own projects. An organization's `yourRole` is `null` when you are a guest: [`list_organizations`](https://taskloader.com/docs/api/reference/organizations.md#list_organizations) includes it, but its details, people and project list answer `404` to guests. List your projects in it with `GET /projects?organizationId=org_…` instead. What someone may do **inside** a project always comes from their project role, not their organization role. An organization admin who wants to work in a project joins it first ([`join_project`](https://taskloader.com/docs/api/reference/organizations.md#join_project), which needs the `organizations:manage` scope). ## Projects A project belongs to one organization and holds tasks and the people who work on them. | Project role | Can | | ------------ | ------------------------------------------------------------------------------------------------------------------------------------- | | `viewer` | See tasks, files and activity, and comment | | `editor` | Also create, change, move and delete tasks; edit checklists and bookmarks; attach and delete files; apply the assistant's suggestions | | `admin` | Also change the project's details, add and remove people, change their roles, and create invitation links | | `owner` | Everything. Each project has one owner, who cannot be removed from the project, demoted or leave it. | A project's owner changes in one case only: when the owner leaves the project's organization, or an organization admin removes them from it, every project they own there passes to the organization's owner. Integrations should not assume a project's owner never changes. Roles only go up in that order, and each includes everything below it. A request your role does not allow fails with `403 forbidden_role`, and `requiredRole` names the lowest role that would do. Taskloader reads roles live on every request, through every credential. Projects have a `version`, like tasks: changing a project's name or description, or archiving it, needs the version you read. Projects and organizations can be archived: [`update_project`](https://taskloader.com/docs/api/reference/projects.md#update_project) or [`update_organization`](https://taskloader.com/docs/api/reference/organizations.md#update_organization) with `archived: true` (owners and admins), and `archived: false` restores them. Archiving is about the app's sidebar only: an archived project, or an archived organization with all its projects, moves under Archived there for everyone, and everything in it keeps working through the app, the API and MCP. Results carry `archived` on the project and on the organization; a project of an archived organization shows in the app as archived whatever its own flag says. Deleting a project or an organization is done in the app only, never through the API or MCP: a project by its owner (or an owner or admin of its organization), an organization by its owner, who confirms with its name. Everything in it goes at once, and anything that pointed to it then answers `404 not_found`. Ownership cannot be transferred on request. ## Users and members - A **user** (`usr_…`) is a person with a Taskloader account. - A **member** (`mem_…`) is one person's membership of one project, with a role and a color. Tasks are assigned to members, so assignments always point at someone who is in the project: assigning a non-member fails with `422 assignee_not_member`. Organization roles and adding someone to a project take a `userId`. Project members can see each other's names and email addresses, in the app and through the API (with the `projects:read` scope). ### Adding people - **Directly:** a project admin can add any member of the project's organization ([`add_project_member`](https://taskloader.com/docs/api/reference/people.md#add_project_member), with the `people:manage` scope). Someone outside the organization gets `422 not_organization_member`: invite them instead. - **With an invitation link:** project admins create links to their project; organization admins create links to the organization. Each link grants one role, works once, and expires after 7 days. It grants that role on its creator's authority: once they are no longer an owner or admin where it leads (removed, gone, or given another role), or reset their password, their unused links are revoked. A project or organization can have up to 20 unused links at a time. The link's `token` and `url` are returned **only when it is created**, so share it straight away, with the intended person only. - **Accepting** a link someone sent you is its own scope, `invitations:accept`, which is never pre-selected. An integration should accept only links a person gave it on purpose. Send the link's `token`, or its whole `url`, in the request body, never in an address. A revoked link, one that expired before anyone used it, or one whose creator is no longer an owner or admin where it leads, answers `404 invitation_unavailable`. A link that was already used answers `alreadyMember: true` if you are already in its project or organization (whoever used it), and `404 invitation_unavailable` otherwise. ## Tasks A task is a card on a project's board. | Field | What it is | | ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | | `id` | `task_…`. Use it to store a reference. | | `number`, `key` | The project-wide number and its display form, `TL-012`. Unique within the project only. | | `ref`, `url` | `northwind/website-launch/TL-012`, and the task's page in the app | | `title` | One line, up to 180 characters (longer only when the title is the bookmarked link itself) | | `description` | Free text, up to 20,000 characters | | `status` | `backlog`, `progress`, `review` or `done`, shown as Backlog, In progress, In review and Done | | `priority` | `low`, `normal`, `high` or `urgent` | | `assignee` | The member it is assigned to (`memberId`, `userId`, `name`), or `null` | | `dueDate` | A calendar date (`YYYY-MM-DD`), or `null`. There are no due times. | | `checklist`, `checklistProgress` | Up to 100 items of up to 500 characters each, every one with its own `chk_` id and `done` flag | | `bookmark` | The web page the task bookmarks, with its preview, or `null` | | `position` | Its place in board order; see [Tasks and People](https://taskloader.com/docs/concepts.md#tasks-and-people) | | `version` | Goes up with every change; needed to change, move or delete the task ([`edit_checklist`](https://taskloader.com/docs/api/reference/tasks.md#edit_checklist) checks it only when you send it) | | `attachmentCount` | How many files are attached | | `createdBy`, `createdAt`, `updatedAt` | Who made it and when, and when it last changed | | `completedAt` | When it last entered `done`; `null` while it is open | A task is **open** while its status is anything but `done`. New tasks start in `backlog` with `normal` priority unless you say otherwise. ### Checklists Send a whole checklist when you create a task, or replace it with [`update_task`](https://taskloader.com/docs/api/reference/tasks.md#update_task). To change single items without overwriting other people's edits, use [`edit_checklist`](https://taskloader.com/docs/api/reference/tasks.md#edit_checklist): up to 50 operations (add, check, uncheck, rename, move, remove) applied in order, in one change, with items named by their `chk_` id. ### Bookmarks A task can bookmark a web page. [`add_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#add_bookmark) creates a task from a link: its title is the link at first, and Taskloader fetches the page in the background, then renames the task once with the page's title. That rename raises the task's `version` by one, so expect it before you change a fresh bookmark. Pages are read within budgets (100 an hour per project and 150 per person who wrote the links, 50 at once); past them they wait in line, about one a minute, so after a large import a bookmark can be renamed, and its version raised, hours later. Its preview stays `queued` until then, even if someone in another organization has the same page read sooner, and the rename arrives as `task.updated` with via `system`. This holds for a page Taskloader read before, too: it is shown to your project, and names your bookmark, at your project's own turn (checked then, and read again if it is over 14 days old), never the moment you link it. The model writes a page's title and summary within a daily allowance of 200 per person who linked it (100 at once); past it the preview keeps the page's own title and description, and nothing is refused. Previews (title, summary, picture) are your organization's own: a page is read for the organizations that link it, each its own preview, so nothing you see or cause of a page depends on what another organization did. A page's own title never names a bookmark when it is itself a link, and its summary is kept without links. [`remove_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#remove_bookmark) (or [`update_task`](https://taskloader.com/docs/api/reference/tasks.md#update_task) with `"bookmark": null`) keeps the task and its title and drops the link. Some pages cannot be read: the site refuses Taskloader, or answers with a bot check or a page that says nothing about itself (Reddit answers servers with a page titled only "Reddit"). The preview is then `failed`, and is tried again when your project's previews are next read, an hour after each failure in a row, up to a day. A failed preview still has a `title` made from the words of its link, when it has some (`reddit.com/r/StableDiffusion/comments/1y9o6m9/generate_with_h3_image_decode/` is "Generate with H3 image decode"; `example.com/p/12345` has none), the `siteName` of a well-known site (Reddit, GitHub, YouTube, X), and the site's `icon` when the site gave it: Taskloader asks only the site itself (its usual icon addresses, or a well-known site's own static host), never an icon service, and no model. The bookmark is renamed with that title, and once more with the page's own title if a later read succeeds; a title someone gave the task is never replaced. Taskloader fetches only public `http` and `https` addresses without user names or passwords, up to 2,048 characters once encoded (each character outside ASCII counts as its percent escapes: `ж` is `%D0%B6`). ## Tasks and People The app shows a project's tasks in two views. They are **two arrangements of the same list**: there is one set of tasks, not two. - **Tasks** has one column per status: Backlog, In progress, In review, Done. - **People** has one full-width heading per person, plus Unassigned, and under each heading the same four status cells. A task's place is decided by its fields: its `status` picks the column, its `assignee` picks the person, and its `position` orders it among the tasks that share its cell. Lower positions come first. Because both views sort by the same `position`, a card keeps the same relative order in both. To move a card, [`move_task`](https://taskloader.com/docs/api/reference/tasks.md#move_task) sets the status, optionally the assignee, and the place between two neighbours. A move in the Tasks view leaves the assignee alone; a move in the People view can change it. [Build a board](https://taskloader.com/docs/guides/build-a-board.md) shows both views and moves in code. ## Comments Comments belong to a task. Anyone in the project can comment, viewers included, with the `comments:write` scope. A comment is plain text, up to 5,000 characters. Comments cannot be edited or deleted. A comment is also an entry in the task's activity, so `cmt_X` and `act_X` name the same thing. ## Files Tasks hold files of 19 common types, up to 100 MiB each: images, videos, PDFs, text, office documents and archives. Taskloader serves them only to people who can see the task, never through permanent public links. See [Files](https://taskloader.com/docs/api/files.md). ## Activity and events Taskloader keeps two records of what happens in a project. They answer different questions. | | Activity | Events | | --------- | --------------------------------------------- | ----------------------------------------------------------------------- | | For | People: "what happened to this task?" | Programs: "what changed since I last looked?" | | Contains | Readable messages and comment text | Thin records: ids, versions and the names of changed fields, never text | | Kept | For the life of the task (see below) | 7 days | | Read with | [`list_task_activity`](https://taskloader.com/docs/api/reference/activity.md#list_task_activity), [`list_project_activity`](https://taskloader.com/docs/api/reference/activity.md#list_project_activity) | [`list_events`](https://taskloader.com/docs/api/reference/events.md#list_events), the [changes feed](https://taskloader.com/docs/api/changes-feed.md) | | Order | Newest first | In a stable order, without gaps, with a cursor | Deleting a task deletes its activity and comments with it; the project's activity keeps one entry saying which task was deleted, by whom and through what. Activity that belongs to the project rather than a task stays. To show history, read activity. [`list_project_activity`](https://taskloader.com/docs/api/reference/activity.md#list_project_activity) filters by time (`since` and `until`: RFC 3339 times, or dates, which cover the whole day in your `timeZone`), by person (`actorUserId`, which takes `me` and also people who have since left the project; or `memberId`, for current members), by task, by kind and by `via`. A person who has never been in the project, or a member id that is not one of this project's current members, is a `400`, never a filter that quietly matches nothing. To keep a copy of a project in sync, follow the events and fetch what they point to. [Sync tasks](https://taskloader.com/docs/guides/sync-tasks.md) shows how. ## Insights Three reads summarize a project, computed in the database over every task, so their numbers are exact at any size and match what task searches return: - **[`count_tasks`](https://taskloader.com/docs/api/reference/insights.md#count_tasks)** counts the tasks matching a `measure` (`tasks` for every task, `open`, `done`, `overdue` or `due_soon`) and the filters of a task search, optionally grouped by status, assignee, priority or due date (overdue for open tasks due before today, past for done tasks due before today, listed only when it holds some, then this week, next week, later and no date) and split within each group by status or priority. Grouped by assignee, every member is listed, and Unassigned only when it holds tasks. Without `groupBy`, `groups` is empty and `total` is the count. - **[`weekly_trend`](https://taskloader.com/docs/api/reference/insights.md#weekly_trend)** gives, per week from Monday to Sunday, how many tasks were created, how many entered Done and are still done, and how many were open at the end of the week. A task reopened later no longer counts as completed in its old week. - **[`project_overview`](https://taskloader.com/docs/api/reference/insights.md#project_overview)** returns what an integration or an agent needs to start: the project and your role, the members (owner first, then by when they joined) with their open tasks, counts (by status, open, overdue, due soon, open and unassigned, done since Monday), the open tasks in board order, and the five newest history entries. "Overdue", "due soon" and "this week" count from [today](https://taskloader.com/docs/api.md#today-and-time-zones): pass `today` or `timeZone`, or the server's UTC date is used. ## Provenance: "via" Every change records not only **who** made it but **through what**. Activity entries, comments and events carry `via`: ```json { "channel": "api", "label": "API key “CI deploy notes”" } ``` | `channel` | The change came from | | ----------- | ------------------------------------------------------------------------ | | `web` | The Taskloader app | | `api` | The REST API | | `mcp` | An AI agent connected over MCP | | `assistant` | Suggestions from Taskloader's assistant that a person applied | | `system` | Taskloader itself, for example renaming a bookmark once its page is read | `channel` is an open list: handle values you do not know. The `label` is written by Taskloader, never by the app: `API key “”` for a key; the verified host of a connected app (`app at sync.example.com`, or `Claude (claude.ai)` for apps Taskloader knows); or the app's own name followed by `(unverified)` for an app that registered itself. Applied assistant suggestions say `Taskloader assistant`, or `Taskloader assistant, applied from `. Task history in the app shows it after the person's name: "Maya Ivanova · via API key “CI deploy notes”". So everyone in a project can always see which changes came from an integration, and which one. ## The assistant Each project has an AI assistant that answers questions about it, with charts and task lists, and can suggest changes that a person applies with one action. You can ask it from code too: [Assistant from code](https://taskloader.com/docs/guides/assistant-from-code.md). Questions count against the asker's hourly allowance, wherever they come from. # Conventions Source: https://taskloader.com/docs/api The rules every endpoint follows: base URL, versioning, ids, pagination, filters, errors, idempotency, versions, rate limits, request ids and CORS. Every endpoint of the Taskloader REST API follows the rules on this page, so the API reference only needs to describe what is particular to each one. The [quickstart](https://taskloader.com/docs/quickstart.md) shows the most important rules in five requests. ## Base URL ```text https://taskloader.com/api/v1 ``` In the guides, paths are relative to this base: `GET /me` means `GET https://taskloader.com/api/v1/me`. The API reference and the endpoint cards show the full path from the host instead, such as `GET /api/v1/me`. The API speaks HTTPS only. Two addresses need no credential: | Request | What it returns | | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `GET /api/v1` | The index: the API `version`, and links to this documentation, the OpenAPI document, the MCP server and the [protected resource metadata](https://taskloader.com/docs/authentication/oauth.md#discovery). | | `GET /api/v1/openapi.json` | The [OpenAPI 3.1.1 document](https://taskloader.com/docs/api.md#openapi) for v1. | ```json { "object": "api", "version": "1.0.0", "documentation": "https://taskloader.com/docs/api", "openapi": "https://taskloader.com/api/v1/openapi.json", "mcp": "https://taskloader.com/mcp", "protectedResourceMetadata": "https://taskloader.com/.well-known/oauth-protected-resource/api/v1" } ``` Every other request needs `Authorization: Bearer `, with a personal API key (`tlk_…`) or an OAuth access token (`tlo_at_…`). See [Authentication](https://taskloader.com/docs/authentication.md). ## Versioning The version is in the path. **v1 only grows**: new endpoints, new optional request fields, new response fields, new values in open lists and new error codes. Nothing is removed or renamed inside v1 without at least 6 months' notice (see [deprecations](https://taskloader.com/docs/api.md#deprecations) below); anything else that would break clients ships as `/api/v2`. Write clients that: - ignore response fields they do not know; - handle values they do not know in **open** lists, at least by skipping them; - branch on the error `code`, never on `detail` or `title` text. | Open (new values may appear in v1) | Closed (a new value would mean v2) | | ---------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | | activity `kind`, event `type`, error `code`, `via.channel`, attachment `kind`, link preview `details.kind` | task `status`, task `priority`, project roles, organization roles | **Breaking changes** ship as `/api/v2`. We announce v2 at least 6 months before it is generally available, and v1 keeps working for at least 12 months after that. The OpenAPI document's `info.version` follows semver for the v1 contract: a minor release adds things, a patch release fixes documentation. ### Deprecations Anything removed from v1 is deprecated first, with at least 6 months' notice: a [changelog](https://taskloader.com/docs/changelog.md) entry, `deprecated: true` in the OpenAPI document, and these headers on every affected response: ```http Deprecation: @1798761600 Sunset: Fri, 02 Jul 2027 00:00:00 GMT Link: ; rel="deprecation" ``` `Deprecation` is when it was announced, and `Sunset` the earliest date it may stop working. ## Requests and responses - **JSON in UTF-8**, with `camelCase` field names. Send `Content-Type: application/json` with every JSON body. - **Every resource has `object` and `id`.** `object` names the kind (`"task"`, `"project"`, `"list"`). - **Nothing is left out.** A value that is not set is `null`, and an empty list is `[]`, so every field is always present. Descriptions are the exception: a task's or a project's description is never `null`, and one that is not set is `""`. - **PATCH changes only what you send.** A field you leave out stays as it is, and `null` never means "unchanged". Set a task's description, assignee, due date or bookmark to `null` to clear it, and a project's description the same way; a cleared description reads `""`, and sending `""` clears it too. Lists are emptied with `[]`, such as a task's checklist. Fields that always have a value refuse `null`: a title, a status, a priority, a name, a slug. A PATCH that changes nothing returns the resource as it is, without a new version. - **Text is plain.** Task titles and the names of projects and organizations are one line: no line breaks or other control characters, no line or paragraph separators (U+2028, U+2029), and no invisible text-direction controls (U+202A to U+202E, U+2066 to U+2069), which text pasted from right-to-left documents often carries; the direction marks U+200E, U+200F and U+061C are fine. A refusal of a title or a name says which character to remove (for example U+202E). Longer texts (descriptions, comments, checklist items, questions to the assistant) may hold line breaks and tabs but no other control characters, and every form of line break (`\r\n`, `\r`, `\v`, `\f`, U+0085, and the separators U+2028 and U+2029) is stored as `\n`. Spaces and line breaks around titles, names, comments, checklist items and questions to the assistant are removed before these rules apply, and such text must have at least one visible character: text made only of spaces and invisible characters (such as zero-width spaces and word joiners) is refused. A project's description also loses the spaces and line breaks around it; a task's description keeps them as sent. Text that breaks these rules is refused with `400 validation_failed`. So is text with half a character (a lone UTF-16 surrogate, as when an emoji is cut by UTF-16 code units): shorten text by whole characters (code points), as Taskloader's limits count them. And so is a NUL character (U+0000) anywhere, in a field, a search or a reference, because Taskloader cannot store or search for it. - **Unknown request fields are refused** with `400 validation_failed`, so a typo never passes silently. - **Bodies:** JSON bodies can be up to 1 MiB, nested up to 32 levels deep and holding up to 32,768 values and fields (far more than any input needs); others are refused with `400 invalid_request`. File uploads have their own limits (see [Files](https://taskloader.com/docs/api/files.md)). Compressed request bodies (`Content-Encoding`) are refused with `415 unsupported_media_type`; responses from 1 KiB to 4 MiB are gzip-compressed when you send `Accept-Encoding: gzip` (larger ones are sent as they are). - **Timestamps** are RFC 3339 in UTC with milliseconds: `2026-11-18T10:00:00.123Z`. **Calendar dates**, such as a due date, are `YYYY-MM-DD`. ### Today and time zones Overdue, due-soon, trend and activity-range answers depend on what "today" is for the person asking. Operations that compute them accept: - `today`: the caller's current date, `YYYY-MM-DD`. It must be within a day of the server's UTC date, which every time zone is. - `timeZone`: an IANA time zone name, such as `Europe/Berlin`. Legacy names such as `IST` mean the zone browsers mean by them. `today` wins when you send both. With neither, the UTC date is used. Insight answers ([`count_tasks`](https://taskloader.com/docs/api/reference/insights.md#count_tasks), [`weekly_trend`](https://taskloader.com/docs/api/reference/insights.md#weekly_trend), [`project_overview`](https://taskloader.com/docs/api/reference/insights.md#project_overview)) and task searches ([`search_tasks`](https://taskloader.com/docs/api/reference/tasks.md#search_tasks), [`search_tasks_everywhere`](https://taskloader.com/docs/api/reference/tasks.md#search_tasks_everywhere)) echo the `today` they used. [`list_project_activity`](https://taskloader.com/docs/api/reference/activity.md#list_project_activity) takes `timeZone` only, for the dates in its time range. ## Ids, keys and references ### Ids An id is a prefix naming the resource, then (for most resources) 32 lowercase hex digits: `task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718`. Treat ids as opaque strings. | Resource | Prefix | Resource | Prefix | | ---------------------- | ---------------------------- | -------------------------- | --------------------------- | | Organization | `org_` | Attachment, and its upload | `att_` | | Project | `prj_` | Link preview | `lnk_` | | Project member | `mem_` | Invitation | `inv_` | | User | `usr_` (then the account id) | Assistant thread | `thr_` | | Task | `task_` | Assistant message | `msg_` | | Checklist item | `chk_` | Event (changes feed) | `evt_` (then a number) | | Comment | `cmt_` | Activity entry | `act_` | | API key (in `GET /me`) | `key_` | Request | `req_` (then 26 characters) | A comment is an activity entry of kind `comment`, so `cmt_X` and `act_X` name the same entry. A `cmt_` id only ever resolves to a comment. In the path, a well-formed id of the wrong kind (a project id where a task id belongs) gets `400 invalid_id`, and `detail` says what was expected; a value that is no id at all gets `404 not_found`, like a missing resource. In a body or query field, a well-formed id of the wrong kind gets `400 invalid_id` when the field takes only that one kind of id; anything else that is not a valid value, a malformed id included, gets `400 validation_failed` with a `pointer` to the field. ### Task keys Each task also has a **key** such as `TL-012`, the one people see in the app. Keys are unique only within a project, so the API accepts a key only together with its project: ```http GET /projects/prj_f88e6947efdde102d9c7a2d045b244b5/tasks/TL-012 ``` Keys are case-insensitive and leading zeros are optional on input (`tl-12` works). Responses always use the canonical form (`TL-012`, `TL-1234`). Treat keys as display labels: use `number` if you need the number, and `id` to store a reference. ### References and URLs Projects and tasks also carry a human `ref` and the `url` of their page in the app: | | `ref` | `url` | | ------- | --------------------------------- | -------------------------------------------------------- | | Project | `northwind/website-launch` | `https://taskloader.com/northwind/website-launch` | | Task | `northwind/website-launch/TL-012` | `https://taskloader.com/northwind/website-launch/TL-012` | `GET /resolve?ref=…` turns a ref, a Taskloader URL (old links that still redirect in the app included), an id or a project's exact name into the organization, project and task it names. Use it when a person pastes a link into your integration. It resolves only projects you are in, and anything else answers `404`, exactly like a wrong id. A bare key such as `TL-12`, or a name several projects share, answers `400 validation_failed` with `matches` listing the candidates: keys are unique only inside a project. ### Members and users A **user** (`usr_…`) is a person. A **member** (`mem_…`) is that person's membership in one project, with a role. Assignees are members, so task fields are named `assigneeMemberId`; organization roles and "add this person" take a `userId`. In task inputs, `"assigneeMemberId": "me"` means your own membership in that project. ### Operation names Every endpoint has an operation name, such as [`update_task`](https://taskloader.com/docs/api/reference/tasks.md#update_task). It anchors the endpoint's entry in the API reference (`/docs/api/reference/tasks#update_task`), it is the endpoint's `operationId` in the [OpenAPI document](https://taskloader.com/docs/api.md#openapi), and it is usually the name of the matching MCP tool too. Outside the MCP pages, the docs name endpoints that way, and each name links to its reference entry. ## Pagination Lists return one page at a time: ```json { "object": "list", "data": [{ "object": "task", "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718", "…": "…" }], "hasMore": true, "nextCursor": "eyJ2IjoxLCJvIjoic2VhcmNoX3Rhc2tzIiwi…", "total": 132 } ``` - `limit` sets the page size: 1 to 100, 50 by default (25 for the same lists over MCP). The changes feed allows up to 200. - A page can hold fewer items than `limit` while `hasMore` is `true`: a task search's page stops at about 2 MiB of text (titles, descriptions, checklists and links), so a page of long tasks holds fewer of them. Keep following `nextCursor` until `hasMore` is `false`; never take a short page for the last one. - Pass `nextCursor` back as `cursor` (on the [changes feed](https://taskloader.com/docs/api/changes-feed.md), as `after`) with **the same filters and sort** to get the next page. When `hasMore` is `false`, `nextCursor` is `null`, except on the changes feed, which always returns one to continue from. - The `Link: <…>; rel="next"` header carries the same next-page URL. - Cursors are opaque and signed. Do not build or edit them. A cursor from another list, another sort or other filters is refused with `400 invalid_cursor`: start again without `cursor` when you change filters. - Cursors do not expire, except on the [changes feed](https://taskloader.com/docs/api/changes-feed.md), where they last 7 days. - Paging is keyset-based, so a task created or deleted elsewhere never shifts your pages. A task whose sort value changes while you page (its `updatedAt`, say) can move past your position. To keep a copy in sync, follow the [changes feed](https://taskloader.com/docs/api/changes-feed.md). - Task searches, project lists and project member lists include `total`, the number of matches, and `totalIsLowerBound`. Past 10,000 it stops counting: `"total": 10000, "totalIsLowerBound": true`. - Each list has a fixed order, ended by id: projects and organizations oldest first; members the owner first, then by when they joined; invitations newest first; candidates by name; link previews in a stable order with no meaning. ## Filtering and sorting Task searches (`GET /projects/{projectId}/tasks`, and `GET /tasks` across every project you can see) take these filters. Lists of values are comma-separated: `status=backlog,progress`. | Parameter | Matches | | -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `q` | Up to 10 words (over MCP and in the in-app assistant, a sentence of up to 40 words, of which the first 10 other than common words are searched). Every word must appear, ignoring case, somewhere in the title or the description. A key such as TL-12 finds only tasks that mention it; use `keys` to find the task itself. | | `status` | Any of `backlog`, `progress`, `review`, `done`. | | `priority` | Any of `low`, `normal`, `high`, `urgent`. | | `assigneeMemberId` | Up to 50 of: a member id, `me`, or `unassigned`. | | `dueBefore`, `dueAfter` | Due on or before / on or after a date. Tasks without a due date never match. | | `overdue=true` | Open tasks due before today. | | `dueSoon=true` | Open tasks due between today and 7 days from today. | | `keys` | Up to 50 task keys: `keys=TL-1,TL-5`. | | `updatedSince`, `completedSince` | Changed or completed at or after an RFC 3339 time. | | `createdBy` | A user id, or `me`. | | `bookmark` | `true` for tasks that bookmark a web page, `false` for the rest. | | `projectId`, `organizationId` | `GET /tasks` only: limit the search to some projects or one organization. | "Open" means any status except `done`. Overdue and due-soon use [today](https://taskloader.com/docs/api.md#today-and-time-zones). A search with words (`q`) reads every task in its scope, so it has a time limit: each of its queries may take up to 2 seconds in the database. A search that needs longer, usually a rare word across thousands of long tasks, gets `422 search_too_broad`. Narrow it with other filters (`status`, `assigneeMemberId`, due dates, one project instead of all) or more specific words, then search again; sending the same search again fails the same way. [`count_tasks`](https://taskloader.com/docs/api/reference/insights.md#count_tasks) and [`weekly_trend`](https://taskloader.com/docs/api/reference/insights.md#weekly_trend) with `q` have the same limit. Your searches with words also take turns: two run at a time, up to eight more wait for them, and past that a search gets `429 rate_limited` with `Retry-After`. `sort` takes a field, or `-field` for descending order. Ties are broken by id, so the order is always stable. | `sort` | Order | | ------------------------------------ | ----------------------------------------------------------------------------- | | `position` | Board order. The default for one project. | | `dueDate` | Earliest due first; tasks without a due date last; then by priority. | | `priority` | Urgent first, then by due date. | | `updatedAt` | Oldest change first. `GET /tasks` defaults to `-updatedAt`, the latest first. | | `createdAt`, `number`, `completedAt` | As named. | | `status` | Backlog to done, then by due date. | ## Errors Every error is an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem with `Content-Type: application/problem+json`: ```http HTTP/1.1 412 Precondition Failed Content-Type: application/problem+json Request-Id: req_01JD3Q4S9V0M6T2H8K5N7P1RXA ETag: "8" ``` ```json { "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 8. You sent version 7. Nothing was changed. Read the task, check the change still makes sense, and retry with version 8 (over HTTP, If-Match: \"8\" works too).", "instance": "/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718", "requestId": "req_01JD3Q4S9V0M6T2H8K5N7P1RXA", "currentVersion": 8, "current": { "object": "task", "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718", "version": 8, "…": "…" } } ``` | Member | Meaning | | ----------- | ----------------------------------------------------------------------------------------------------------- | | `code` | The stable, machine-readable reason. **Branch on this.** | | `status` | The HTTP status, repeated. | | `title` | A fixed, short description of the code. | | `detail` | What happened this time and what to do, in plain English. It may change; show it to people, never parse it. | | `type` | A link to the code's entry in the [error reference](https://taskloader.com/docs/api/errors.md). | | `instance` | The request path, without the query string. | | `requestId` | Quote it when you contact us (contact@taskloader.com) about a request. | Some codes add members, such as `currentVersion` and `current` above, `requiredScopes`, or `retryAfter`. The error reference lists them per code. Ignore members you do not know. Invalid input gets `400 validation_failed` with one entry per problem in `errors` (a request that is not valid as a whole says "The request is not valid. See errors for details."). `errors` lists at most 20 problems: when there are more, `moreErrors` counts the rest and `detail` says so. The value you sent is never repeated back, in case it was a secret pasted into the wrong field: ```json { "code": "validation_failed", "detail": "2 fields are not valid. See errors for details.", "errors": [ { "pointer": "/title", "code": "custom", "detail": "A title can be up to 180 characters. Put the rest in the description." }, { "pointer": "/priority", "code": "invalid_value", "detail": "This must be one of: \"low\", \"normal\", \"high\", \"urgent\"." } ], "…": "…" } ``` Each entry's `pointer` (RFC 6901) names the field, and `detail` says what is wrong with it in words you can show. `code` is the kind of problem, such as `too_big`, `invalid_value`, `unrecognized_key`, or `custom` for a rule particular to that field. How statuses are used: | Status | Means | | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | 400 | The request is malformed or invalid. Fix it; sending it again fails the same way. | | 401 | No credential, or one that is invalid, expired or revoked. See [Authentication](https://taskloader.com/docs/authentication.md#when-authentication-fails). | | 403 | The credential lacks a scope, is limited to other projects, or your role does not allow this. | | 404 | It does not exist **or you cannot see it**. The two are deliberately the same, so ids of other people's projects reveal nothing. | | 409 | The current state does not allow it (already a member, an upload with missing parts). | | 410 | A changes-feed cursor is older than the feed keeps. | | 412 | The resource changed since you read it. See [Versions](https://taskloader.com/docs/api.md#versions-and-etags). | | 413, 415, 416 | Body too large, wrong media type, range outside the file. | | 422 | The request is well-formed but breaks a rule (the assignee is not a project member). | | 428 | This change needs the version you read. | | 429 | A limit was reached. For request limits, wait `Retry-After` seconds; some caps need you to act first. See [Rate limits](https://taskloader.com/docs/api.md#rate-limits). | | 500 | Something went wrong on our side. Retry; quote `requestId` if it keeps happening. | | 503 | Taskloader or its file storage is briefly unavailable: wait `Retry-After` seconds when it is sent, otherwise back off. The exception is `assistant_unavailable`: the assistant is not set up on this server, and retrying does not help. | The [error reference](https://taskloader.com/docs/api/errors.md) lists every code with its status, members, whether a retry can help, and what to do. ## Idempotency Networks fail after a request was sent and before its answer arrived. To retry such a request safely, send an `Idempotency-Key` header with every request that changes something (`POST`, `PATCH`, `PUT`, `DELETE`). Use a new random UUID for each new change, and the same one for every retry of that change. ```bash curl https://taskloader.com/api/v1/projects/prj_f88e6947efdde102d9c7a2d045b244b5/tasks \ -H "Authorization: Bearer $TASKLOADER_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 6f1c2b8e-3d4a-4f5b-9c6d-7e8f9a0b1c2d" \ -d '{"title":"Write launch announcement"}' ``` The policy: - **Value:** 1 to 255 printable ASCII characters. A malformed key is refused with `400 invalid_idempotency_key` on any write, so you never believe you have protection you lack. `GET` requests ignore the header. - **Scope:** keys belong to the credential that sent them (one API key, or one person and one connected app). Two credentials can use the same key without meeting. - **Lifetime:** 24 hours from the first request. - **Same key, same request:** you get the first answer again, its status and its body (rebuilt in the two cases below, **Fewer scopes** and **Large answers**), with `Idempotent-Replayed: true`. Nothing is done twice. "Same request" means the same operation with the same input, including the version you sent and, for uploads, the same bytes. - **Access is checked again:** a retry is answered only while you can still see what the request named (its project, task, organization or assistant conversation). After you are removed from the project, or an app's projects are narrowed in Connected apps, a retry answers `404 not_found` like any other request, and nothing runs again. Two kinds of request are not checked, and their retries still get the first answer, which concerns only you: leaving a project or an organization ([`leave_project`](https://taskloader.com/docs/api/reference/projects.md#leave_project), [`leave_organization`](https://taskloader.com/docs/api/reference/organizations.md#leave_organization)), and requests that name none of those ([`create_organization`](https://taskloader.com/docs/api/reference/organizations.md#create_organization), [`accept_invitation`](https://taskloader.com/docs/api/reference/invitations.md#accept_invitation), [`delete_attachment`](https://taskloader.com/docs/api/reference/files.md#delete_attachment), [`cancel_upload`](https://taskloader.com/docs/api/reference/files.md#cancel_upload)). - **Fewer scopes:** after an app is reconnected with fewer scopes, a retry gets the answer as those scopes show it: a success is rebuilt from what the request made, as it is now ([`create_tasks`](https://taskloader.com/docs/api/reference/tasks.md#create_tasks) keeps its first answer, which shows nothing that depends on scopes), and a failure keeps its code and members, with the general `detail` of its code. - **Same key, still running:** `409 idempotency_key_in_progress` with `Retry-After: 1`. Retry with the same key. - **Same key, different request:** `422 idempotency_key_reused`. Use a new key. - **What is kept:** successful answers, and failures that a retry cannot change (`404`, `409`, `412`, `422`). Not kept, so a retry runs again: malformed requests (`400`), authentication and scope failures (`401`, `403`), limits (`429`), server errors (`5xx`, where nothing was saved), and failures that ask you to come back later (`assistant_busy`, `upload_incomplete`). - **Large answers:** an answer over 256 KiB is not stored. A retry rebuilds it from what the request created, as it is now, just as it does when Taskloader stopped between the change and its answer. [`create_tasks`](https://taskloader.com/docs/api/reference/tasks.md#create_tasks) stores its answer whatever its size, so a retry gives exactly the first one. A rebuilt answer never leaves anything out: if something it would show was deleted since, the retry answers `404 not_found` and names it (for a batch: "Task 6 of the batch (TL-031) was deleted after the batch created it, …"). - **Uploads:** a file upload sent with `Idempotency-Key` must also send `Content-Digest: sha-256=::`. Without it you get `400 invalid_request`. See [Files](https://taskloader.com/docs/api/files.md#retrying-uploads). Requests that create something, add a member, comment, edit a checklist, join or leave, remove someone, accept an invitation, upload or delete a file, cancel an upload, ask the assistant, or apply or dismiss its changes record the result under the key, exactly once, in the same transaction as the change. Changes that need a version ([`update_task`](https://taskloader.com/docs/api/reference/tasks.md#update_task), [`move_task`](https://taskloader.com/docs/api/reference/tasks.md#move_task), [`delete_task`](https://taskloader.com/docs/api/reference/tasks.md#delete_task), [`remove_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#remove_bookmark), [`update_project`](https://taskloader.com/docs/api/reference/projects.md#update_project), [`update_organization`](https://taskloader.com/docs/api/reference/organizations.md#update_organization)) are protected by the version instead. If the answer to one of them was lost and you retry it, you may get `412 version_conflict`. Compare its `current` with your change: if it already shows your change, you are done; if not (someone else changed it, or your first request never arrived), decide again and resend with `current.version`. A retried [`delete_task`](https://taskloader.com/docs/api/reference/tasks.md#delete_task) that already went through answers `404 not_found`. Setting a role, revoking an invitation and similar changes give the same result however often you send them. Removing someone, leaving, deleting a file ([`delete_attachment`](https://taskloader.com/docs/api/reference/files.md#delete_attachment)) and canceling an upload ([`cancel_upload`](https://taskloader.com/docs/api/reference/files.md#cancel_upload)) honour `Idempotency-Key` too: with a key, a retry gets the first answer back; without one, a retry after the change went through answers `404`. An invitation link's `token` and `url` are shown once, in the answer to its creation, and never stored with the key: a retry with the same key answers `201` with `Idempotent-Replayed: true` but without them. If that happens, revoke that link and create another. ## Versions and ETags Tasks, projects and organizations have an integer `version` that goes up with every change. A change answers with the new version as a strong `ETag`, and a `412` with the current one: ```http ETag: "8" ``` A read of one task, project or organization answers with a weak `ETag`: the version, then a digest of the answer: ```http ETag: W/"8-3f2a9c1d0b7e" ``` Changes to them **require the version you read**, so nobody overwrites someone else's change without seeing it. Send it as `If-Match`, either as `""` or as the `ETag` of your read exactly as you got it; only the version is compared: ```bash 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: "8"' \ -d '{"status":"review"}' ``` or as `version` in the JSON body. Deletes, which have no body, take `If-Match` or `?version=8`. | You send | You get | | ------------------------------------------- | --------------------------------------------------------------------------------------------------- | | The current version | The change, and the new version in the body and `ETag`. | | An older version | `412 version_conflict` with `currentVersion` and the whole `current` resource. Nothing was changed. | | No version | `428 precondition_required`. | | `If-Match: *` | `428 precondition_required`. A version is always needed. | | `If-Match` and a body `version` that differ | `400 invalid_request`. | Operations that require a version: [`update_task`](https://taskloader.com/docs/api/reference/tasks.md#update_task), [`move_task`](https://taskloader.com/docs/api/reference/tasks.md#move_task), [`delete_task`](https://taskloader.com/docs/api/reference/tasks.md#delete_task), [`remove_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#remove_bookmark), [`update_project`](https://taskloader.com/docs/api/reference/projects.md#update_project) and [`update_organization`](https://taskloader.com/docs/api/reference/organizations.md#update_organization). [`edit_checklist`](https://taskloader.com/docs/api/reference/tasks.md#edit_checklist) takes an optional `version`, checked when you send it: its item operations lock the task and merge with other people's edits. Comments, files, roles and invitations have no version. The `version` stands for what people edit. Computed fields can change without it: an assignee's display name, a task's `attachmentCount` when a file is attached or deleted, its bookmark's `preview` when Taskloader reads the page again, a `ref` and `url` when a project's or organization's slug changes, and your own role. A change you send with the version you hold still goes through after them. A read's `ETag` changes with them too (see [Caching](https://taskloader.com/docs/api.md#caching)). When you get a 412, look at `current`, check that your change still makes sense, and send it again with `current.version`. [Conflicts and retries](https://taskloader.com/docs/guides/conflicts-and-retries.md) shows the loop in code. ## Caching - JSON responses carry `Cache-Control: no-store`, except the index and the OpenAPI document, which may be cached for 5 minutes. - To poll a single task, project or organization, send the `ETag` of your last read (`W/"8-3f2a9c1d0b7e"`) as `If-None-Match`. While nothing in that answer has changed, computed fields included, you get `304 Not Modified` with no body. Send the `ETag` back exactly as you got it: the version alone (`If-None-Match: "8"`) never matches a read. To follow many tasks, use the [changes feed](https://taskloader.com/docs/api/changes-feed.md). - A task read with `include` carries no `ETag` and never answers `304`: its comments, history and files can change without its version. ## Rate limits Limits keep Taskloader fast for everyone. Each request counts against: - your **personal** limit, shared by all your keys and connected apps, so many keys do not multiply it; an MCP request counts as half a request; - one **per-credential** limit for its kind of request: reads, writes or searches (`q`, cross-project search, insights, the overview, the changes feed with `wait`, and reading the assistant's answers); - over MCP, the connection's **MCP limit**, which every MCP request counts against, `tools/list` included. It takes the place of the read limit: only a resource read, listing or completion that reads more than once counts its further reads as reads. A tool that writes, searches or uploads also counts against the write, search or upload limit. Past the MCP limit or your personal limit the MCP server answers HTTP `429` with `Retry-After`; past a write, search or upload limit, the tool returns a `rate_limited` error with `retryAfterSeconds`; - for file uploads and upload parts, a **per-person** upload limit instead of the per-credential one, shared by all your credentials; - for a few operations, a **cap**: organizations, projects and invitations created per day, and assistant questions per hour. There are two kinds of limit: - **Rates**, such as reads per minute, allow a sustained rate plus a burst on top. - **Caps** are true maximums. A cap of N per window allows **at most N in any window, and at most N/2 at once**; the rest comes back gradually. For example, you can create at most 10 organizations through the API and MCP in any 24 hours, and at most 5 of them at once. | Limit | Allowance | Counted per | |---|---|---| | Every request of a person, except through signed links (an MCP request counts as half a request) | 1,500 a minute, bursts of up to 300 | person, across all their credentials | | Reads through the REST API, and each further read of an MCP resource, listing or completion that reads more than once | 600 a minute, bursts of up to 120 | credential | | Writes | 120 a minute, bursts of up to 30 | credential | | Text searches (`q`), search across projects, insights and the overview, long-polls, and reads of assistant answers | 120 a minute, bursts of up to 30 | credential | | File uploads and parts | 300 an hour, bursts of up to 50 | person | | Every MCP request, `tools/list` included | 1,200 a minute, bursts of up to 240 | credential | | Downloads and images through signed links, instead of the read and personal limits | 600 a minute, bursts of up to 200 | credential and address | | Questions to the assistant | At most 30 in any hour, at most 15 at once | credential | | New organizations | At most 10 in any 24 hours, at most 5 at once | person | | New projects | At most 50 in any 24 hours, at most 25 at once | person | | New invitations | At most 100 in any 24 hours, at most 50 at once | person | Every authenticated `/api/v1` response carries the limit closest to running out, in the IETF `RateLimit` header format. Over MCP, only the HTTP `429` for the MCP limit or your personal limit carries these headers. After three writes in a row, for example: ```http RateLimit-Policy: "write";q=120;w=60 RateLimit: "write";r=27;t=2 ``` `q` is the quota and `w` the window in seconds; `r` is how many requests you can send right now, and `t` the seconds until the limit is full again. `r` is never more than the limit's burst in the table above (30 for writes), however large `q` is. When a request limit or a daily cap is reached you get `429` with `Retry-After` (always authoritative) and a problem: `rate_limited` names the `bucket`; `daily_limit_reached` names the `limit`. Wait `Retry-After` seconds, then continue. Do not retry sooner: the request will fail again. Requests also take turns. Each credential has up to 4 requests running at once; up to 32 more wait their turn, and past that a request gets `429 rate_limited` with `"bucket": "in_flight"` and `Retry-After`. Text searches take turns too: 2 of yours at a time (`"bucket": "search_in_flight"`). When Taskloader as a whole is too busy to serve a request within 10 seconds, it answers `503 service_unavailable` with `Retry-After`. Send requests one after another, or a few at a time, rather than in large bursts. A few limits have their own codes: - `assistant_hourly_limit`: questions per person per hour, across every app. It carries `Retry-After`. - `too_many_open_uploads`: unfinished uploads per person. There is no `Retry-After`: complete or cancel an upload, then try again. - `too_many_transfers`: file downloads and uploads under way at once per person. It carries `Retry-After`. - `storage_quota_exceeded` (`413`): the files stored per person or per organization. There is no `Retry-After`: delete files first. - `too_many_invitations`: active invitation links per project or organization. There is no `Retry-After`, and waiting does not help: revoke an unused link first. - `too_many_projects`: projects one person can be in (1,000). There is no `Retry-After`, and waiting does not help: the person leaves a project they no longer need first. The [limits page](https://taskloader.com/docs/api/limits.md) lists every limit, with the sizes of bodies, fields, files and lists. Requests without any credential always get their `401`, so sign-in can start; only an extreme flood from one address is limited. Tokens that are sent but fail to verify count against a per-address limit. A valid credential is never refused because someone else at the same address sent bad tokens. The numbers are starting points and may change. Read the headers instead of hard-coding them. ## Request ids Every response, errors included, carries a `Request-Id` header such as `req_01JD3Q4S9V0M6T2H8K5N7P1RXA`, and every problem repeats it as `requestId`. Log it with failures and quote it when you ask us about a request. Taskloader makes its own ids and never adopts yours. If you send a W3C `traceparent` header, its trace id is recorded with the request so you can match our logs to your traces. ## CORS `/api/v1` answers requests from any origin (`Access-Control-Allow-Origin: *`). That is safe because the API never reads cookies: a request is authorized only by its `Authorization` header, so a web page cannot use a visitor's Taskloader session. | Header | Values | | ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Allowed request headers | `Authorization`, `Content-Type`, `Content-Digest`, `Content-Disposition`, `Idempotency-Key`, `If-Match`, `If-None-Match`, `Range`, `traceparent` | | Readable response headers | `Request-Id`, `ETag`, `Location`, `Content-Location`, `Link`, `RateLimit`, `RateLimit-Policy`, `Retry-After`, `WWW-Authenticate`, `Idempotent-Replayed`, `Deprecation`, `Sunset`, `Content-Range`, `Content-Disposition`, `Accept-Ranges`, `Allow` | Preflight answers may be cached for 10 minutes. > **Note:** Never put an API key in code that runs in a browser or a mobile app: anyone can read it there. Browser and mobile apps should sign people in with [OAuth and PKCE](https://taskloader.com/docs/authentication/oauth.md) instead. ## Response headers | Header | When | | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Request-Id` | Always. | | `ETag` | Responses with one task, project or organization: the new version after a change (`"8"`), the version and a digest of the answer on a read (`W/"8-3f2a9c1d0b7e"`); `412` responses (the current version). | | `Location` | `201` from creating an organization, project, task, attachment or upload: its address (for [`add_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#add_bookmark), the task's). [`add_comment`](https://taskloader.com/docs/api/reference/comments.md#add_comment), [`create_tasks`](https://taskloader.com/docs/api/reference/tasks.md#create_tasks), [`add_project_member`](https://taskloader.com/docs/api/reference/people.md#add_project_member) and new invitation links answer without one. `202` from [`ask_assistant`](https://taskloader.com/docs/api/reference/assistant.md#ask_assistant): where to read the answer. All are paths from the host, such as `/api/v1/tasks/task_…`. | | `Content-Location` | A task read by key (`GET /projects/{projectId}/tasks/{taskKey}`): its address by id. | | `Link` | Lists with a next page (`rel="next"`); deprecated endpoints (`rel="deprecation"`). | | `RateLimit`, `RateLimit-Policy` | Authenticated `/api/v1` responses, for the limit closest to running out: a transport limit, or a daily cap or the assistant's limit when that is closer (also on its own `429`); every `429`. | | `Retry-After` | `429 rate_limited`, `daily_limit_reached`, `assistant_hourly_limit` and `too_many_transfers`; `503 service_unavailable` and `storage_unavailable`; `409 idempotency_key_in_progress`; assistant answers that are not ready yet. | | `Idempotent-Replayed: true` | A stored answer to a retried `Idempotency-Key`: the first success, or the first `404`, `409`, `412` or `422`. | | `WWW-Authenticate` | `401`, and `403 insufficient_scope`. | | `Deprecation`, `Sunset` | Endpoints scheduled for removal. | API responses also carry `X-Content-Type-Options: nosniff`, `X-Frame-Options: DENY`, `Referrer-Policy: no-referrer` and `X-Robots-Tag: noindex`. ## OpenAPI The complete contract is an OpenAPI 3.1.1 document, generated from the same definitions the API runs on: ```bash curl -O https://taskloader.com/api/v1/openapi.json ``` It describes every operation, schema, scope and error, with examples. Use it to generate clients: [Typed client](https://taskloader.com/docs/guides/typed-client.md) shows one for TypeScript. Each operation also carries: | Extension | What it says | | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `x-taskloader-min-role` | Who may call it: `viewer`, `editor` or `admin` (that role or above), `member` (any member), `org_admin` (an organization admin or owner), `signed_in` (any signed-in person), `thread_owner` (the person who started the assistant conversation) or `uploader` (the person who started the upload). | | `x-taskloader-access-level` | Where that role is held: the `project`, the `organization`, the `thread` (your own assistant conversation, in its project) or the `account` (nothing beyond being signed in). | | `x-taskloader-restriction` | What a [project-limited credential](https://taskloader.com/docs/authentication.md#project-limited-credentials) may do: `project` (call it for one of its projects), `listing` (call it; results show only its projects), `organization_read` (call it for an organization that holds one of its projects) or `account` (nothing: `403 credential_restricted`). | | `x-taskloader-rate-limits` | Every limit it counts against besides your personal one: its `bucket`; `searchWhen`, the query parameters that make a request a search (`q` with words, `wait` above 0); its own `cap`; and `signedLinkBucket`, the only limit a request through a signed link counts against. | | `x-taskloader-rate-class` | A one-word summary of `x-taskloader-rate-limits`: its `cap` when it has one, otherwise its `bucket`. Read `x-taskloader-rate-limits` for every limit. | | `x-taskloader-idempotency` | How to retry it safely: `key` (send an `Idempotency-Key`), `version` (send `If-Match`), `natural` (sending it again changes nothing more) or `none` (a read). | | `x-taskloader-mcp-tool` | The MCP tool that reaches it, where one does. | # Errors Source: https://taskloader.com/docs/api/errors Every error code the API returns: its status, what it means, and what to do. Every error is an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem with `Content-Type: application/problem+json`. Branch on `code`: it is stable, while `detail` is written for people and may change. `type` is the URL of the code’s entry on this page, and `requestId` is the id to quote when you contact us. Codes can carry extra members, listed below; ignore members you do not know, and treat codes you do not know by their status. ```json { "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 8. You sent version 7. Nothing was changed. Read the task, check the change still makes sense, and retry with version 8 (over HTTP, If-Match: \"8\" works too).", "instance": "/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718", "requestId": "req_01JD3Q4S9V0M6T2H8K5N7P1RXA", "currentVersion": 8, "current": { "object": "task", "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718", "version": 8, "…": "…" } } ``` | Code | Status | Meaning | Retry | | ------------------------------------------------------------- | ------ | ------------------------------------------------ | ------------ | | [`invalid_request`](https://taskloader.com/docs/api/errors.md#invalid_request) | 400 | The request is malformed | No | | [`validation_failed`](https://taskloader.com/docs/api/errors.md#validation_failed) | 400 | The input is not valid | No | | [`invalid_id`](https://taskloader.com/docs/api/errors.md#invalid_id) | 400 | The id is for a different kind of resource | No | | [`invalid_cursor`](https://taskloader.com/docs/api/errors.md#invalid_cursor) | 400 | The cursor is not valid | No | | [`invalid_idempotency_key`](https://taskloader.com/docs/api/errors.md#invalid_idempotency_key) | 400 | The Idempotency-Key header is not valid | No | | [`token_in_url`](https://taskloader.com/docs/api/errors.md#token_in_url) | 400 | Tokens are not accepted in URLs | No | | [`part_out_of_range`](https://taskloader.com/docs/api/errors.md#part_out_of_range) | 400 | The part number is out of range | No | | [`part_length_mismatch`](https://taskloader.com/docs/api/errors.md#part_length_mismatch) | 400 | The part has the wrong size | After acting | | [`digest_mismatch`](https://taskloader.com/docs/api/errors.md#digest_mismatch) | 400 | The part does not match its digest | Yes | | [`invalid_preview`](https://taskloader.com/docs/api/errors.md#invalid_preview) | 400 | The preview is not accepted | No | | [`unauthenticated`](https://taskloader.com/docs/api/errors.md#unauthenticated) | 401 | Authentication required | No | | [`invalid_token`](https://taskloader.com/docs/api/errors.md#invalid_token) | 401 | The token is not valid | No | | [`insufficient_scope`](https://taskloader.com/docs/api/errors.md#insufficient_scope) | 403 | The credential lacks the required access | No | | [`credential_restricted`](https://taskloader.com/docs/api/errors.md#credential_restricted) | 403 | The credential is limited to some projects | No | | [`forbidden_role`](https://taskloader.com/docs/api/errors.md#forbidden_role) | 403 | Your role does not allow this | No | | [`not_found`](https://taskloader.com/docs/api/errors.md#not_found) | 404 | Not found | No | | [`route_not_found`](https://taskloader.com/docs/api/errors.md#route_not_found) | 404 | No such endpoint | No | | [`invitation_unavailable`](https://taskloader.com/docs/api/errors.md#invitation_unavailable) | 404 | The invitation is no longer available | No | | [`method_not_allowed`](https://taskloader.com/docs/api/errors.md#method_not_allowed) | 405 | Method not allowed | No | | [`already_member`](https://taskloader.com/docs/api/errors.md#already_member) | 409 | Already a member | No | | [`slug_taken`](https://taskloader.com/docs/api/errors.md#slug_taken) | 409 | That link is taken | No | | [`neighbors_changed`](https://taskloader.com/docs/api/errors.md#neighbors_changed) | 409 | The neighbouring tasks changed | No | | [`upload_incomplete`](https://taskloader.com/docs/api/errors.md#upload_incomplete) | 409 | The upload is missing parts | After acting | | [`assistant_busy`](https://taskloader.com/docs/api/errors.md#assistant_busy) | 409 | The assistant is busy | Yes | | [`proposal_closed`](https://taskloader.com/docs/api/errors.md#proposal_closed) | 409 | The proposed changes are closed | No | | [`invitation_used`](https://taskloader.com/docs/api/errors.md#invitation_used) | 409 | The invitation was already used | No | | [`idempotency_key_in_progress`](https://taskloader.com/docs/api/errors.md#idempotency_key_in_progress) | 409 | The original request is still running | Yes | | [`cursor_expired`](https://taskloader.com/docs/api/errors.md#cursor_expired) | 410 | The cursor has expired | No | | [`version_conflict`](https://taskloader.com/docs/api/errors.md#version_conflict) | 412 | The resource changed since you read it | No | | [`payload_too_large`](https://taskloader.com/docs/api/errors.md#payload_too_large) | 413 | The request body is too large | No | | [`file_too_large`](https://taskloader.com/docs/api/errors.md#file_too_large) | 413 | The file is too large | No | | [`unsupported_media_type`](https://taskloader.com/docs/api/errors.md#unsupported_media_type) | 415 | Unsupported media type | No | | [`unsupported_file_type`](https://taskloader.com/docs/api/errors.md#unsupported_file_type) | 415 | This file type is not accepted | No | | [`range_not_satisfiable`](https://taskloader.com/docs/api/errors.md#range_not_satisfiable) | 416 | The range cannot be served | No | | [`idempotency_key_reused`](https://taskloader.com/docs/api/errors.md#idempotency_key_reused) | 422 | The Idempotency-Key was used for another request | No | | [`assignee_not_member`](https://taskloader.com/docs/api/errors.md#assignee_not_member) | 422 | The assignee is not a member | No | | [`not_organization_member`](https://taskloader.com/docs/api/errors.md#not_organization_member) | 422 | Not in the organization | No | | [`owner_immutable`](https://taskloader.com/docs/api/errors.md#owner_immutable) | 422 | The owner cannot be changed | No | | [`cannot_remove_self`](https://taskloader.com/docs/api/errors.md#cannot_remove_self) | 422 | Use leave to remove yourself | No | | [`slug_reserved`](https://taskloader.com/docs/api/errors.md#slug_reserved) | 422 | That link is reserved | No | | [`checklist_item_not_found`](https://taskloader.com/docs/api/errors.md#checklist_item_not_found) | 422 | Checklist item not found | No | | [`checklist_full`](https://taskloader.com/docs/api/errors.md#checklist_full) | 422 | The checklist is full | No | | [`invalid_bookmark_url`](https://taskloader.com/docs/api/errors.md#invalid_bookmark_url) | 422 | This link cannot be bookmarked | No | | [`not_a_bookmark`](https://taskloader.com/docs/api/errors.md#not_a_bookmark) | 422 | The task bookmarks no page | No | | [`file_type_mismatch`](https://taskloader.com/docs/api/errors.md#file_type_mismatch) | 422 | The file is not of its declared type | No | | [`search_too_broad`](https://taskloader.com/docs/api/errors.md#search_too_broad) | 422 | The search reads too many tasks | No | | [`precondition_required`](https://taskloader.com/docs/api/errors.md#precondition_required) | 428 | A version is required | No | | [`rate_limited`](https://taskloader.com/docs/api/errors.md#rate_limited) | 429 | Too many requests | Yes | | [`daily_limit_reached`](https://taskloader.com/docs/api/errors.md#daily_limit_reached) | 429 | Daily limit reached | Yes | | [`too_many_open_uploads`](https://taskloader.com/docs/api/errors.md#too_many_open_uploads) | 429 | Too many unfinished uploads | After acting | | [`storage_quota_exceeded`](https://taskloader.com/docs/api/errors.md#storage_quota_exceeded) | 413 | Storage quota reached | After acting | | [`too_many_transfers`](https://taskloader.com/docs/api/errors.md#too_many_transfers) | 429 | Too many file transfers at once | Yes | | [`too_many_invitations`](https://taskloader.com/docs/api/errors.md#too_many_invitations) | 429 | Too many active invitations | No | | [`assistant_hourly_limit`](https://taskloader.com/docs/api/errors.md#assistant_hourly_limit) | 429 | Assistant limit reached | Yes | | [`too_many_projects`](https://taskloader.com/docs/api/errors.md#too_many_projects) | 429 | Too many projects | No | | [`internal_error`](https://taskloader.com/docs/api/errors.md#internal_error) | 500 | Something went wrong | Yes | | [`service_unavailable`](https://taskloader.com/docs/api/errors.md#service_unavailable) | 503 | Taskloader is temporarily unavailable | Yes | | [`storage_unavailable`](https://taskloader.com/docs/api/errors.md#storage_unavailable) | 503 | File storage is unavailable | Yes | | [`assistant_unavailable`](https://taskloader.com/docs/api/errors.md#assistant_unavailable) | 503 | The assistant is not available | No | ## `invalid_request` {#invalid_request} **The request is malformed.** The request could not be read. Check the JSON body, the headers and the query parameters against the API reference. - **Status:** 400 - **Retry:** no, not without changing the request - **Returned by:** every operation **What to do:** Fix the request format; sending the same request again will fail the same way. ## `validation_failed` {#validation_failed} **The input is not valid.** Some fields are missing or not valid. See errors for each field. - **Status:** 400 - **Retry:** no, not without changing the request - **Extra members:** `errors`; `matches` when a reference names more than one thing (`resolve_reference`, and MCP tools); `moreErrors` when more than 20 problems were found (`errors` lists the first 20) - **Returned by:** every operation **What to do:** Read errors[].pointer and errors[].detail, fix those fields, then retry. ## `invalid_id` {#invalid_id} **The id is for a different kind of resource.** This id names a different kind of resource than this operation expects. - **Status:** 400 - **Retry:** no, not without changing the request - **Extra members:** `expected`, `received` - **Returned by:** operations that name a resource by id or reference **What to do:** Use an id of the kind the message names, or a ref or URL where the parameter accepts one. ## `invalid_cursor` {#invalid_cursor} **The cursor is not valid.** This cursor is not valid for this list. Start again without cursor when you change filters. - **Status:** 400 - **Retry:** no, not without changing the request - **Returned by:** [`list_organizations`](https://taskloader.com/docs/api/reference/organizations.md#list_organizations), [`list_organization_members`](https://taskloader.com/docs/api/reference/organizations.md#list_organization_members), [`list_organization_guests`](https://taskloader.com/docs/api/reference/organizations.md#list_organization_guests), [`list_organization_projects`](https://taskloader.com/docs/api/reference/organizations.md#list_organization_projects), [`list_projects`](https://taskloader.com/docs/api/reference/projects.md#list_projects), [`list_project_members`](https://taskloader.com/docs/api/reference/people.md#list_project_members), [`list_member_candidates`](https://taskloader.com/docs/api/reference/people.md#list_member_candidates), [`list_organization_invitations`](https://taskloader.com/docs/api/reference/invitations.md#list_organization_invitations), [`list_project_invitations`](https://taskloader.com/docs/api/reference/invitations.md#list_project_invitations), [`search_tasks`](https://taskloader.com/docs/api/reference/tasks.md#search_tasks), [`search_tasks_everywhere`](https://taskloader.com/docs/api/reference/tasks.md#search_tasks_everywhere), [`list_comments`](https://taskloader.com/docs/api/reference/comments.md#list_comments), [`list_task_activity`](https://taskloader.com/docs/api/reference/activity.md#list_task_activity), [`list_project_activity`](https://taskloader.com/docs/api/reference/activity.md#list_project_activity), [`list_events`](https://taskloader.com/docs/api/reference/events.md#list_events), [`list_link_previews`](https://taskloader.com/docs/api/reference/bookmarks.md#list_link_previews), [`list_task_attachments`](https://taskloader.com/docs/api/reference/files.md#list_task_attachments), [`list_project_attachments`](https://taskloader.com/docs/api/reference/files.md#list_project_attachments), [`list_assistant_threads`](https://taskloader.com/docs/api/reference/assistant.md#list_assistant_threads), [`list_assistant_messages`](https://taskloader.com/docs/api/reference/assistant.md#list_assistant_messages) **What to do:** Drop cursor and request the first page again with the filters you want. ## `invalid_idempotency_key` {#invalid_idempotency_key} **The Idempotency-Key header is not valid.** Idempotency-Key must be 1 to 255 printable ASCII characters. A UUID works well. - **Status:** 400 - **Retry:** no, not without changing the request - **Returned by:** [`create_organization`](https://taskloader.com/docs/api/reference/organizations.md#create_organization), [`update_organization`](https://taskloader.com/docs/api/reference/organizations.md#update_organization), [`change_organization_role`](https://taskloader.com/docs/api/reference/organizations.md#change_organization_role), [`remove_organization_member`](https://taskloader.com/docs/api/reference/organizations.md#remove_organization_member), [`leave_organization`](https://taskloader.com/docs/api/reference/organizations.md#leave_organization), [`join_project`](https://taskloader.com/docs/api/reference/organizations.md#join_project), [`create_project`](https://taskloader.com/docs/api/reference/projects.md#create_project), [`update_project`](https://taskloader.com/docs/api/reference/projects.md#update_project), [`leave_project`](https://taskloader.com/docs/api/reference/projects.md#leave_project), [`add_project_member`](https://taskloader.com/docs/api/reference/people.md#add_project_member), [`change_project_member_role`](https://taskloader.com/docs/api/reference/people.md#change_project_member_role), [`remove_project_member`](https://taskloader.com/docs/api/reference/people.md#remove_project_member), [`create_organization_invitation`](https://taskloader.com/docs/api/reference/invitations.md#create_organization_invitation), [`revoke_organization_invitation`](https://taskloader.com/docs/api/reference/invitations.md#revoke_organization_invitation), [`create_project_invitation`](https://taskloader.com/docs/api/reference/invitations.md#create_project_invitation), [`revoke_project_invitation`](https://taskloader.com/docs/api/reference/invitations.md#revoke_project_invitation), [`preview_invitation`](https://taskloader.com/docs/api/reference/invitations.md#preview_invitation), [`accept_invitation`](https://taskloader.com/docs/api/reference/invitations.md#accept_invitation), [`create_task`](https://taskloader.com/docs/api/reference/tasks.md#create_task), [`create_tasks`](https://taskloader.com/docs/api/reference/tasks.md#create_tasks), [`update_task`](https://taskloader.com/docs/api/reference/tasks.md#update_task), [`move_task`](https://taskloader.com/docs/api/reference/tasks.md#move_task), [`delete_task`](https://taskloader.com/docs/api/reference/tasks.md#delete_task), [`edit_checklist`](https://taskloader.com/docs/api/reference/tasks.md#edit_checklist), [`add_comment`](https://taskloader.com/docs/api/reference/comments.md#add_comment), [`add_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#add_bookmark), [`remove_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#remove_bookmark), [`upload_preview`](https://taskloader.com/docs/api/reference/files.md#upload_preview), [`upload_attachment`](https://taskloader.com/docs/api/reference/files.md#upload_attachment), [`start_upload`](https://taskloader.com/docs/api/reference/files.md#start_upload), [`upload_part`](https://taskloader.com/docs/api/reference/files.md#upload_part), [`complete_upload`](https://taskloader.com/docs/api/reference/files.md#complete_upload), [`cancel_upload`](https://taskloader.com/docs/api/reference/files.md#cancel_upload), [`delete_attachment`](https://taskloader.com/docs/api/reference/files.md#delete_attachment), [`ask_assistant`](https://taskloader.com/docs/api/reference/assistant.md#ask_assistant), [`delete_assistant_thread`](https://taskloader.com/docs/api/reference/assistant.md#delete_assistant_thread), [`apply_assistant_changes`](https://taskloader.com/docs/api/reference/assistant.md#apply_assistant_changes), [`dismiss_assistant_changes`](https://taskloader.com/docs/api/reference/assistant.md#dismiss_assistant_changes) **What to do:** Send a new UUID as the Idempotency-Key, or leave the header out. ## `token_in_url` {#token_in_url} **Tokens are not accepted in URLs.** Tokens in URLs are not accepted. Revoke this token and send a new one in the Authorization header. - **Status:** 400 - **Retry:** no, not without changing the request - **Returned by:** every operation **What to do:** Tell the person this token was exposed in a URL and must be revoked; send tokens only in the Authorization header. ## `part_out_of_range` {#part_out_of_range} **The part number is out of range.** Part numbers run from 1 to the upload’s partCount. - **Status:** 400 - **Retry:** no, not without changing the request - **Extra members:** `partCount` - **Returned by:** [`upload_part`](https://taskloader.com/docs/api/reference/files.md#upload_part) **What to do:** Use a part number between 1 and partCount from start_upload. ## `part_length_mismatch` {#part_length_mismatch} **The part has the wrong size.** This part is not the expected size. Send exactly expectedBytes bytes for it. - **Status:** 400 - **Retry:** yes, once you have acted (see What to do); waiting alone does not help - **Extra members:** `expectedBytes` - **Returned by:** [`upload_part`](https://taskloader.com/docs/api/reference/files.md#upload_part) **What to do:** Send the part again with exactly expectedBytes bytes. ## `digest_mismatch` {#digest_mismatch} **The part does not match its digest.** The Content-Digest header does not match the bytes received. The part was not stored; send it again. - **Status:** 400 - **Retry:** yes, after a pause - **Returned by:** [`upload_preview`](https://taskloader.com/docs/api/reference/files.md#upload_preview), [`upload_attachment`](https://taskloader.com/docs/api/reference/files.md#upload_attachment), [`upload_part`](https://taskloader.com/docs/api/reference/files.md#upload_part) **What to do:** Send the part again; if it fails twice, compute its SHA-256 digest again. ## `invalid_preview` {#invalid_preview} **The preview is not accepted.** Previews must be WebP or JPEG images, sent with their own Content-Type, for files that can have one; only videos take a duration. - **Status:** 400 - **Retry:** no, not without changing the request - **Returned by:** [`upload_preview`](https://taskloader.com/docs/api/reference/files.md#upload_preview) **What to do:** Send a WebP or JPEG preview, or skip the preview for this kind of file. ## `unauthenticated` {#unauthenticated} **Authentication required.** Send an API key or an OAuth access token in the Authorization header: Authorization: Bearer \. - **Status:** 401 - **Retry:** no, not without changing the request - **Headers:** `WWW-Authenticate` - **Returned by:** every operation **What to do:** The request carried no credential; the person needs to connect Taskloader or provide an API key. ## `invalid_token` {#invalid_token} **The token is not valid.** The access token is invalid or revoked. - **Status:** 401 - **Retry:** no, not without changing the request - **Extra members:** `reason` - **Headers:** `WWW-Authenticate` - **Returned by:** every operation **What to do:** Do not retry with this token: refresh an OAuth token, or ask the person for a new API key. ## `insufficient_scope` {#insufficient_scope} **The credential lacks the required access.** This credential was not granted the access this operation needs. - **Status:** 403 - **Retry:** no, not without changing the request - **Extra members:** `requiredScopes`, `grantedScopes` - **Headers:** `WWW-Authenticate` - **Returned by:** every operation that needs a scope **What to do:** Tell the person which access requiredScopes names. An API key cannot gain access: they create a key that includes it. A connected app gets it when they disconnect it in Account settings → Connected apps and connect it again with that access. ## `credential_restricted` {#credential_restricted} **The credential is limited to some projects.** This credential is limited to some projects, so it cannot use account or organization operations. Use a credential with access to all your projects. - **Status:** 403 - **Retry:** no, not without changing the request - **Returned by:** operations a project-restricted credential cannot use: [`create_organization`](https://taskloader.com/docs/api/reference/organizations.md#create_organization), [`update_organization`](https://taskloader.com/docs/api/reference/organizations.md#update_organization), [`change_organization_role`](https://taskloader.com/docs/api/reference/organizations.md#change_organization_role), [`remove_organization_member`](https://taskloader.com/docs/api/reference/organizations.md#remove_organization_member), [`leave_organization`](https://taskloader.com/docs/api/reference/organizations.md#leave_organization), [`join_project`](https://taskloader.com/docs/api/reference/organizations.md#join_project), [`create_project`](https://taskloader.com/docs/api/reference/projects.md#create_project), [`list_organization_invitations`](https://taskloader.com/docs/api/reference/invitations.md#list_organization_invitations), [`create_organization_invitation`](https://taskloader.com/docs/api/reference/invitations.md#create_organization_invitation), [`revoke_organization_invitation`](https://taskloader.com/docs/api/reference/invitations.md#revoke_organization_invitation), [`preview_invitation`](https://taskloader.com/docs/api/reference/invitations.md#preview_invitation), [`accept_invitation`](https://taskloader.com/docs/api/reference/invitations.md#accept_invitation) **What to do:** This key or connection is limited to certain projects; tell the person this needs access to all projects. ## `forbidden_role` {#forbidden_role} **Your role does not allow this.** Your role does not allow this action. - **Status:** 403 - **Retry:** no, not without changing the request - **Extra members:** `requiredRole`, `level` - **Returned by:** operations that need more than a viewer’s role **What to do:** The person’s role does not allow this; tell them instead of retrying. ## `not_found` {#not_found} **Not found.** It does not exist, or you do not have access to it. - **Status:** 404 - **Retry:** no, not without changing the request - **Returned by:** operations that name a resource by id or reference **What to do:** Check the ref with search_tasks or list_projects; you may not have access. ## `route_not_found` {#route_not_found} **No such endpoint.** There is no endpoint at this path. Check the path against the API reference. - **Status:** 404 - **Retry:** no, not without changing the request - **Returned by:** any request **What to do:** Check the method and path against the API reference at /docs/api. ## `invitation_unavailable` {#invitation_unavailable} **The invitation is no longer available.** This invitation has expired, was already used, or was revoked. Ask for a new link. - **Status:** 404 - **Retry:** no, not without changing the request - **Returned by:** [`preview_invitation`](https://taskloader.com/docs/api/reference/invitations.md#preview_invitation), [`accept_invitation`](https://taskloader.com/docs/api/reference/invitations.md#accept_invitation) **What to do:** Tell the person this invitation link no longer works and they need a new one. ## `method_not_allowed` {#method_not_allowed} **Method not allowed.** This endpoint does not support this method. The Allow header lists the ones it does. - **Status:** 405 - **Retry:** no, not without changing the request - **Extra members:** `allow` - **Headers:** `Allow` - **Returned by:** any request **What to do:** Use one of the methods listed in allow. ## `already_member` {#already_member} **Already a member.** This person is already in the project; their role was not changed. - **Status:** 409 - **Retry:** no, not without changing the request - **Extra members:** `memberId`, `role` - **Returned by:** [`add_project_member`](https://taskloader.com/docs/api/reference/people.md#add_project_member) **What to do:** They keep the role they have, given in role. If another role was wanted, change it after asking (change_member_role, or PATCH /projects/{projectId}/members/{memberId}); otherwise there is nothing to do. ## `slug_taken` {#slug_taken} **That link is taken.** Another organization already uses that link. Choose a different one. - **Status:** 409 - **Retry:** no, not without changing the request - **Returned by:** [`update_organization`](https://taskloader.com/docs/api/reference/organizations.md#update_organization) **What to do:** Pick a different slug and retry. ## `neighbors_changed` {#neighbors_changed} **The neighbouring tasks changed.** The before or after task is gone or no longer in the target column, or the two are now the wrong way round. Read the column again and retry. - **Status:** 409 - **Retry:** no, not without changing the request - **Returned by:** [`move_task`](https://taskloader.com/docs/api/reference/tasks.md#move_task) **What to do:** Search the target column again for its current tasks, then retry the move. ## `upload_incomplete` {#upload_incomplete} **The upload is missing parts.** Some parts have not arrived yet. Upload the missing parts, then complete the upload. - **Status:** 409 - **Retry:** yes, once you have acted (see What to do); waiting alone does not help - **Extra members:** `missingParts`, `receivedParts` - **Returned by:** [`complete_upload`](https://taskloader.com/docs/api/reference/files.md#complete_upload) **What to do:** Upload each part in missingParts, then complete the upload again. ## `assistant_busy` {#assistant_busy} **The assistant is busy.** The assistant is still answering in this conversation, or already answering two of your questions. Ask again once one has finished. - **Status:** 409 - **Retry:** yes, after a pause - **Extra members:** `messageId` - **Returned by:** [`ask_assistant`](https://taskloader.com/docs/api/reference/assistant.md#ask_assistant), [`delete_assistant_thread`](https://taskloader.com/docs/api/reference/assistant.md#delete_assistant_thread), [`apply_assistant_changes`](https://taskloader.com/docs/api/reference/assistant.md#apply_assistant_changes), [`dismiss_assistant_changes`](https://taskloader.com/docs/api/reference/assistant.md#dismiss_assistant_changes) **What to do:** Wait for messageId to finish (get_assistant_answer, or GET /assistant/messages/{messageId}?wait=25), then try again. ## `proposal_closed` {#proposal_closed} **The proposed changes are closed.** These proposed changes were already applied, are being applied, or were dismissed. - **Status:** 409 - **Retry:** no, not without changing the request - **Extra members:** `proposalStatus` - **Returned by:** [`apply_assistant_changes`](https://taskloader.com/docs/api/reference/assistant.md#apply_assistant_changes), [`dismiss_assistant_changes`](https://taskloader.com/docs/api/reference/assistant.md#dismiss_assistant_changes) **What to do:** Read the answer again (get_assistant_answer, or GET /assistant/messages/{messageId}) to see each change’s result; never apply a proposal twice. ## `invitation_used` {#invitation_used} **The invitation was already used.** This invitation was already accepted, so it can no longer be revoked. Remove the member instead if their access should end. - **Status:** 409 - **Retry:** no, not without changing the request - **Returned by:** [`revoke_organization_invitation`](https://taskloader.com/docs/api/reference/invitations.md#revoke_organization_invitation), [`revoke_project_invitation`](https://taskloader.com/docs/api/reference/invitations.md#revoke_project_invitation) **What to do:** The invitation was accepted; remove the member if their access should end. ## `idempotency_key_in_progress` {#idempotency_key_in_progress} **The original request is still running.** A request with this Idempotency-Key is still running. Retry in a second to get its result. - **Status:** 409 - **Retry:** yes, after a pause (`Retry-After`, 1 s unless it says otherwise) - **Headers:** `Retry-After` - **Returned by:** [`create_organization`](https://taskloader.com/docs/api/reference/organizations.md#create_organization), [`remove_organization_member`](https://taskloader.com/docs/api/reference/organizations.md#remove_organization_member), [`leave_organization`](https://taskloader.com/docs/api/reference/organizations.md#leave_organization), [`join_project`](https://taskloader.com/docs/api/reference/organizations.md#join_project), [`create_project`](https://taskloader.com/docs/api/reference/projects.md#create_project), [`leave_project`](https://taskloader.com/docs/api/reference/projects.md#leave_project), [`add_project_member`](https://taskloader.com/docs/api/reference/people.md#add_project_member), [`remove_project_member`](https://taskloader.com/docs/api/reference/people.md#remove_project_member), [`create_organization_invitation`](https://taskloader.com/docs/api/reference/invitations.md#create_organization_invitation), [`create_project_invitation`](https://taskloader.com/docs/api/reference/invitations.md#create_project_invitation), [`accept_invitation`](https://taskloader.com/docs/api/reference/invitations.md#accept_invitation), [`create_task`](https://taskloader.com/docs/api/reference/tasks.md#create_task), [`create_tasks`](https://taskloader.com/docs/api/reference/tasks.md#create_tasks), [`edit_checklist`](https://taskloader.com/docs/api/reference/tasks.md#edit_checklist), [`add_comment`](https://taskloader.com/docs/api/reference/comments.md#add_comment), [`add_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#add_bookmark), [`upload_attachment`](https://taskloader.com/docs/api/reference/files.md#upload_attachment), [`start_upload`](https://taskloader.com/docs/api/reference/files.md#start_upload), [`cancel_upload`](https://taskloader.com/docs/api/reference/files.md#cancel_upload), [`delete_attachment`](https://taskloader.com/docs/api/reference/files.md#delete_attachment), [`attach_file`](https://taskloader.com/docs/mcp/tools.md#attach_file), [`ask_assistant`](https://taskloader.com/docs/api/reference/assistant.md#ask_assistant), [`apply_assistant_changes`](https://taskloader.com/docs/api/reference/assistant.md#apply_assistant_changes), [`dismiss_assistant_changes`](https://taskloader.com/docs/api/reference/assistant.md#dismiss_assistant_changes) **What to do:** Wait a second, then retry with the same key. ## `cursor_expired` {#cursor_expired} **The cursor has expired.** This events cursor is older than the 7-day retention. Take a new cursor with after=now first, then read the current state from the lists, and follow the feed from that cursor. - **Status:** 410 - **Retry:** no, not without changing the request - **Returned by:** [`list_events`](https://taskloader.com/docs/api/reference/events.md#list_events) **What to do:** Get a new cursor with after=now, then read the current state from the list operations (sorted by createdAt), then follow the events feed from that cursor. ## `version_conflict` {#version_conflict} **The resource changed since you read it.** It changed since you read it, so nothing was changed. Read it again, check the change still makes sense, and retry with the current version. - **Status:** 412 - **Retry:** no, not without changing the request - **Extra members:** `currentVersion`, `current`; `fields` (MCP and the assistant only, not in REST answers) - **Headers:** `ETag` - **Returned by:** [`update_organization`](https://taskloader.com/docs/api/reference/organizations.md#update_organization), [`update_project`](https://taskloader.com/docs/api/reference/projects.md#update_project), [`update_task`](https://taskloader.com/docs/api/reference/tasks.md#update_task), [`move_task`](https://taskloader.com/docs/api/reference/tasks.md#move_task), [`delete_task`](https://taskloader.com/docs/api/reference/tasks.md#delete_task), [`edit_checklist`](https://taskloader.com/docs/api/reference/tasks.md#edit_checklist), [`remove_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#remove_bookmark) **What to do:** Read currentVersion (and current, when it is attached), check the change still makes sense, then retry with that version. ## `payload_too_large` {#payload_too_large} **The request body is too large.** The request body is larger than this endpoint accepts (limitBytes). - **Status:** 413 - **Retry:** no, not without changing the request - **Extra members:** `limitBytes` - **Returned by:** operations that take a request body (every method but GET) **What to do:** Send a smaller body; split large inputs into several requests. ## `file_too_large` {#file_too_large} **The file is too large.** The file is larger than allowed (limitBytes). Files can be up to 100 MiB, and one-shot uploads up to 8 MiB. - **Status:** 413 - **Retry:** no, not without changing the request - **Extra members:** `limitBytes` - **Returned by:** [`upload_attachment`](https://taskloader.com/docs/api/reference/files.md#upload_attachment), [`start_upload`](https://taskloader.com/docs/api/reference/files.md#start_upload), [`attach_file`](https://taskloader.com/docs/mcp/tools.md#attach_file) **What to do:** Use a multipart upload for files over 8 MiB; files over 100 MiB cannot be attached. ## `unsupported_media_type` {#unsupported_media_type} **Unsupported media type.** This endpoint does not accept this Content-Type, or the body is compressed. See accepted. - **Status:** 415 - **Retry:** no, not without changing the request - **Extra members:** `accepted` - **Returned by:** operations that take a request body (every method but GET) **What to do:** Send the body uncompressed, with one of the accepted content types. ## `unsupported_file_type` {#unsupported_file_type} **This file type is not accepted.** Taskloader does not accept this type of file. See accepted for the types you can attach. - **Status:** 415 - **Retry:** no, not without changing the request - **Extra members:** `accepted` - **Returned by:** [`upload_attachment`](https://taskloader.com/docs/api/reference/files.md#upload_attachment), [`start_upload`](https://taskloader.com/docs/api/reference/files.md#start_upload), [`attach_file`](https://taskloader.com/docs/mcp/tools.md#attach_file) **What to do:** Tell the person this type of file cannot be attached. ## `range_not_satisfiable` {#range_not_satisfiable} **The range cannot be served.** The Range header does not fit the file. Ask for one range within the file’s size. - **Status:** 416 - **Retry:** no, not without changing the request - **Extra members:** `size` - **Headers:** `Content-Range` - **Returned by:** [`download_attachment`](https://taskloader.com/docs/api/reference/files.md#download_attachment) **What to do:** Ask for a range within the file’s size, or leave Range out. ## `idempotency_key_reused` {#idempotency_key_reused} **The Idempotency-Key was used for another request.** This Idempotency-Key was already used for a different request. Use a new key for a new request. - **Status:** 422 - **Retry:** no, not without changing the request - **Returned by:** [`create_organization`](https://taskloader.com/docs/api/reference/organizations.md#create_organization), [`remove_organization_member`](https://taskloader.com/docs/api/reference/organizations.md#remove_organization_member), [`leave_organization`](https://taskloader.com/docs/api/reference/organizations.md#leave_organization), [`join_project`](https://taskloader.com/docs/api/reference/organizations.md#join_project), [`create_project`](https://taskloader.com/docs/api/reference/projects.md#create_project), [`leave_project`](https://taskloader.com/docs/api/reference/projects.md#leave_project), [`add_project_member`](https://taskloader.com/docs/api/reference/people.md#add_project_member), [`remove_project_member`](https://taskloader.com/docs/api/reference/people.md#remove_project_member), [`create_organization_invitation`](https://taskloader.com/docs/api/reference/invitations.md#create_organization_invitation), [`create_project_invitation`](https://taskloader.com/docs/api/reference/invitations.md#create_project_invitation), [`accept_invitation`](https://taskloader.com/docs/api/reference/invitations.md#accept_invitation), [`create_task`](https://taskloader.com/docs/api/reference/tasks.md#create_task), [`create_tasks`](https://taskloader.com/docs/api/reference/tasks.md#create_tasks), [`edit_checklist`](https://taskloader.com/docs/api/reference/tasks.md#edit_checklist), [`add_comment`](https://taskloader.com/docs/api/reference/comments.md#add_comment), [`add_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#add_bookmark), [`upload_attachment`](https://taskloader.com/docs/api/reference/files.md#upload_attachment), [`start_upload`](https://taskloader.com/docs/api/reference/files.md#start_upload), [`cancel_upload`](https://taskloader.com/docs/api/reference/files.md#cancel_upload), [`delete_attachment`](https://taskloader.com/docs/api/reference/files.md#delete_attachment), [`attach_file`](https://taskloader.com/docs/mcp/tools.md#attach_file), [`ask_assistant`](https://taskloader.com/docs/api/reference/assistant.md#ask_assistant), [`apply_assistant_changes`](https://taskloader.com/docs/api/reference/assistant.md#apply_assistant_changes), [`dismiss_assistant_changes`](https://taskloader.com/docs/api/reference/assistant.md#dismiss_assistant_changes) **What to do:** Use a new Idempotency-Key (or requestId) for a different request. ## `assignee_not_member` {#assignee_not_member} **The assignee is not a member.** No member of this project has this member id. - **Status:** 422 - **Retry:** no, not without changing the request - **Extra members:** `pointer` - **Returned by:** [`create_task`](https://taskloader.com/docs/api/reference/tasks.md#create_task), [`create_tasks`](https://taskloader.com/docs/api/reference/tasks.md#create_tasks), [`update_task`](https://taskloader.com/docs/api/reference/tasks.md#update_task), [`move_task`](https://taskloader.com/docs/api/reference/tasks.md#move_task), [`add_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#add_bookmark) **What to do:** Member ids belong to one project: pick the assignee from this project’s members (list_members, or GET /projects/{projectId}/members). ## `not_organization_member` {#not_organization_member} **Not in the organization.** Only members of the organization can be added directly. Create an invitation link for anyone else. - **Status:** 422 - **Retry:** no, not without changing the request - **Returned by:** [`add_project_member`](https://taskloader.com/docs/api/reference/people.md#add_project_member) **What to do:** Invite the person instead of adding them (invite_people, or POST /projects/{projectId}/invitations). ## `owner_immutable` {#owner_immutable} **The owner cannot be changed.** The owner cannot be demoted, removed or leave. - **Status:** 422 - **Retry:** no, not without changing the request - **Returned by:** [`change_organization_role`](https://taskloader.com/docs/api/reference/organizations.md#change_organization_role), [`remove_organization_member`](https://taskloader.com/docs/api/reference/organizations.md#remove_organization_member), [`leave_organization`](https://taskloader.com/docs/api/reference/organizations.md#leave_organization), [`leave_project`](https://taskloader.com/docs/api/reference/projects.md#leave_project), [`change_project_member_role`](https://taskloader.com/docs/api/reference/people.md#change_project_member_role), [`remove_project_member`](https://taskloader.com/docs/api/reference/people.md#remove_project_member) **What to do:** Tell the person the owner cannot leave, be removed or change role. ## `cannot_remove_self` {#cannot_remove_self} **Use leave to remove yourself.** You cannot remove yourself here. Use the leave operation to leave. - **Status:** 422 - **Retry:** no, not without changing the request - **Returned by:** [`remove_organization_member`](https://taskloader.com/docs/api/reference/organizations.md#remove_organization_member), [`remove_project_member`](https://taskloader.com/docs/api/reference/people.md#remove_project_member) **What to do:** To leave, use leave_project or leave_organization. ## `slug_reserved` {#slug_reserved} **That link is reserved.** That link is kept for Taskloader’s own pages. Choose a different one. - **Status:** 422 - **Retry:** no, not without changing the request - **Returned by:** [`update_organization`](https://taskloader.com/docs/api/reference/organizations.md#update_organization) **What to do:** Pick a different slug and retry. ## `checklist_item_not_found` {#checklist_item_not_found} **Checklist item not found.** That item is not on this task’s checklist. - **Status:** 422 - **Retry:** no, not without changing the request - **Extra members:** `itemId` - **Returned by:** [`update_task`](https://taskloader.com/docs/api/reference/tasks.md#update_task), [`edit_checklist`](https://taskloader.com/docs/api/reference/tasks.md#edit_checklist) **What to do:** Read the task again with get_task and use a current checklist item id. ## `checklist_full` {#checklist_full} **The checklist is full.** A checklist holds up to 100 items. - **Status:** 422 - **Retry:** no, not without changing the request - **Returned by:** [`edit_checklist`](https://taskloader.com/docs/api/reference/tasks.md#edit_checklist) **What to do:** Remove or combine items before adding more. ## `invalid_bookmark_url` {#invalid_bookmark_url} **This link cannot be bookmarked.** Only public http or https links without credentials, up to 2,048 characters once encoded (each character outside ASCII counts as its percent escapes: ж is %D0%B6), can be bookmarked. - **Status:** 422 - **Retry:** no, not without changing the request - **Returned by:** [`add_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#add_bookmark) **What to do:** Use a public http(s) URL without a user name or password. ## `not_a_bookmark` {#not_a_bookmark} **The task bookmarks no page.** This task does not bookmark a page. - **Status:** 422 - **Retry:** no, not without changing the request - **Returned by:** [`remove_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#remove_bookmark) **What to do:** There is no bookmark to remove; nothing to do. ## `file_type_mismatch` {#file_type_mismatch} **The file is not of its declared type.** The file’s bytes do not match its declared type, so the upload was canceled. - **Status:** 422 - **Retry:** no, not without changing the request - **Returned by:** [`upload_attachment`](https://taskloader.com/docs/api/reference/files.md#upload_attachment), [`upload_part`](https://taskloader.com/docs/api/reference/files.md#upload_part), [`attach_file`](https://taskloader.com/docs/mcp/tools.md#attach_file) **What to do:** Check the file’s bytes and its declared type, then send it again. ## `search_too_broad` {#search_too_broad} **The search reads too many tasks.** This search with words reads too many tasks to answer in time. Narrow it with a status, assignee or date filter, or search fewer projects, then try again. - **Status:** 422 - **Retry:** no, not without changing the request - **Returned by:** [`search_tasks`](https://taskloader.com/docs/api/reference/tasks.md#search_tasks), [`search_tasks_everywhere`](https://taskloader.com/docs/api/reference/tasks.md#search_tasks_everywhere), [`count_tasks`](https://taskloader.com/docs/api/reference/insights.md#count_tasks), [`weekly_trend`](https://taskloader.com/docs/api/reference/insights.md#weekly_trend) **What to do:** Search again with filters that narrow it (status, assignee, due dates, one project) or more specific words; the same search fails again. ## `precondition_required` {#precondition_required} **A version is required.** This change needs the version you read. Send If-Match: "\", or version in the body (?version=\ on a DELETE, which has no body); If-Match: * is not accepted. - **Status:** 428 - **Retry:** no, not without changing the request - **Returned by:** [`update_organization`](https://taskloader.com/docs/api/reference/organizations.md#update_organization), [`update_project`](https://taskloader.com/docs/api/reference/projects.md#update_project), [`update_task`](https://taskloader.com/docs/api/reference/tasks.md#update_task), [`move_task`](https://taskloader.com/docs/api/reference/tasks.md#move_task), [`delete_task`](https://taskloader.com/docs/api/reference/tasks.md#delete_task), [`edit_checklist`](https://taskloader.com/docs/api/reference/tasks.md#edit_checklist), [`remove_bookmark`](https://taskloader.com/docs/api/reference/bookmarks.md#remove_bookmark) **What to do:** Read the resource, then retry with its version. ## `rate_limited` {#rate_limited} **Too many requests.** Too many requests. Wait Retry-After seconds, then try again. - **Status:** 429 - **Retry:** yes, after a pause - **Extra members:** `bucket`, `retryAfter` - **Headers:** `Retry-After`, `RateLimit`, `RateLimit-Policy` - **Returned by:** every operation **What to do:** Wait as many seconds as retryAfter says, then try again. ## `daily_limit_reached` {#daily_limit_reached} **Daily limit reached.** The daily limit for this action through the API and MCP is reached: 10 organizations, 50 projects or 100 invitations a day. - **Status:** 429 - **Retry:** yes, after a pause - **Extra members:** `limit`, `retryAfter` - **Headers:** `Retry-After` - **Returned by:** [`create_organization`](https://taskloader.com/docs/api/reference/organizations.md#create_organization), [`create_project`](https://taskloader.com/docs/api/reference/projects.md#create_project), [`create_organization_invitation`](https://taskloader.com/docs/api/reference/invitations.md#create_organization_invitation), [`create_project_invitation`](https://taskloader.com/docs/api/reference/invitations.md#create_project_invitation) **What to do:** Tell the person the daily limit is reached; it frees up after as many seconds as retryAfter says. ## `too_many_open_uploads` {#too_many_open_uploads} **Too many unfinished uploads.** You have 12 unfinished uploads. Complete or cancel some, then try again. - **Status:** 429 - **Retry:** yes, once you have acted (see What to do); waiting alone does not help - **Returned by:** [`upload_attachment`](https://taskloader.com/docs/api/reference/files.md#upload_attachment), [`start_upload`](https://taskloader.com/docs/api/reference/files.md#start_upload), [`attach_file`](https://taskloader.com/docs/mcp/tools.md#attach_file) **What to do:** Complete or cancel an unfinished upload (complete_upload or cancel_upload) before starting another. An unfinished upload stops counting an hour after its last part arrived (or after it started, before the first part), and 24 hours after it started at the latest. ## `storage_quota_exceeded` {#storage_quota_exceeded} **Storage quota reached.** This file would take the files stored past the quota (limitBytes): 10 GiB for the files one person uploads, 50 GiB for an organization’s files. Delete some files, then try again. - **Status:** 413 - **Retry:** yes, once you have acted (see What to do); waiting alone does not help - **Extra members:** `limitBytes` - **Returned by:** [`upload_preview`](https://taskloader.com/docs/api/reference/files.md#upload_preview), [`upload_attachment`](https://taskloader.com/docs/api/reference/files.md#upload_attachment), [`start_upload`](https://taskloader.com/docs/api/reference/files.md#start_upload), [`attach_file`](https://taskloader.com/docs/mcp/tools.md#attach_file) **What to do:** Do not retry with this file yet. Tell the person their files (or their organization’s) use all the storage allowed; deleting attachments frees it, unfinished uploads count until they are completed or canceled. ## `too_many_transfers` {#too_many_transfers} **Too many file transfers at once.** Too many of your file transfers are under way at once: up to 8 downloads and 4 upload bodies (parts or files) per person, and 4 downloads through one signed link (8 through all of one person's links). Wait Retry-After seconds, then try again. - **Status:** 429 - **Retry:** yes, after a pause (`Retry-After`, 1 s unless it says otherwise) - **Extra members:** `retryAfter` - **Headers:** `Retry-After` - **Returned by:** [`download_attachment`](https://taskloader.com/docs/api/reference/files.md#download_attachment), [`get_attachment_preview`](https://taskloader.com/docs/api/reference/files.md#get_attachment_preview), [`upload_preview`](https://taskloader.com/docs/api/reference/files.md#upload_preview), [`upload_attachment`](https://taskloader.com/docs/api/reference/files.md#upload_attachment), [`upload_part`](https://taskloader.com/docs/api/reference/files.md#upload_part), [`attach_file`](https://taskloader.com/docs/mcp/tools.md#attach_file) **What to do:** Wait as many seconds as retryAfter says, and send fewer file requests at the same time. ## `too_many_invitations` {#too_many_invitations} **Too many active invitations.** There are 20 active invitation links here. Revoke one to create another. - **Status:** 429 - **Retry:** no, not without changing the request - **Returned by:** [`create_organization_invitation`](https://taskloader.com/docs/api/reference/invitations.md#create_organization_invitation), [`create_project_invitation`](https://taskloader.com/docs/api/reference/invitations.md#create_project_invitation) **What to do:** Revoke an unused invitation before creating another (list_invitations, or GET /projects/{projectId}/invitations or /organizations/{organizationId}/invitations). ## `assistant_hourly_limit` {#assistant_hourly_limit} **Assistant limit reached.** You asked 60 questions in the last hour, across every app. Try again later. - **Status:** 429 - **Retry:** yes, after a pause - **Extra members:** `retryAfter` - **Headers:** `Retry-After` - **Returned by:** [`ask_assistant`](https://taskloader.com/docs/api/reference/assistant.md#ask_assistant) **What to do:** Tell the person the assistant’s hourly limit is reached; ask again after as many seconds as retryAfter says. ## `too_many_projects` {#too_many_projects} **Too many projects.** This person can’t be in more projects. - **Status:** 429 - **Retry:** no, not without changing the request - **Extra members:** `limit` - **Returned by:** [`create_organization`](https://taskloader.com/docs/api/reference/organizations.md#create_organization), [`join_project`](https://taskloader.com/docs/api/reference/organizations.md#join_project), [`create_project`](https://taskloader.com/docs/api/reference/projects.md#create_project), [`add_project_member`](https://taskloader.com/docs/api/reference/people.md#add_project_member), [`accept_invitation`](https://taskloader.com/docs/api/reference/invitations.md#accept_invitation) **What to do:** Tell the person: they are in as many projects as one person can be, and need to leave one they no longer need, in Taskloader, before they can create, join or be added to another. ## `internal_error` {#internal_error} **Something went wrong.** Something went wrong on Taskloader’s side. Retry, and contact us with the request id if it keeps happening. - **Status:** 500 - **Retry:** yes, after a pause - **Returned by:** every operation **What to do:** Retry once; if it fails again, tell the person and include requestId. ## `service_unavailable` {#service_unavailable} **Taskloader is temporarily unavailable.** Taskloader is temporarily unavailable. Retry in a few seconds. - **Status:** 503 - **Retry:** yes, after a pause (`Retry-After`, 5 s unless it says otherwise) - **Extra members:** `retryAfter` - **Headers:** `Retry-After` - **Returned by:** every operation **What to do:** Wait as many seconds as retryAfter says, then retry. ## `storage_unavailable` {#storage_unavailable} **File storage is unavailable.** File storage is not available right now. Retry later. - **Status:** 503 - **Retry:** yes, after a pause - **Extra members:** `retryAfter` - **Headers:** `Retry-After` - **Returned by:** [`download_attachment`](https://taskloader.com/docs/api/reference/files.md#download_attachment), [`get_attachment_preview`](https://taskloader.com/docs/api/reference/files.md#get_attachment_preview), [`upload_preview`](https://taskloader.com/docs/api/reference/files.md#upload_preview), [`upload_attachment`](https://taskloader.com/docs/api/reference/files.md#upload_attachment), [`start_upload`](https://taskloader.com/docs/api/reference/files.md#start_upload), [`get_upload`](https://taskloader.com/docs/api/reference/files.md#get_upload), [`upload_part`](https://taskloader.com/docs/api/reference/files.md#upload_part), [`complete_upload`](https://taskloader.com/docs/api/reference/files.md#complete_upload), [`read_attachment`](https://taskloader.com/docs/mcp/tools.md#read_attachment), [`attach_file`](https://taskloader.com/docs/mcp/tools.md#attach_file) **What to do:** Wait as many seconds as retryAfter says, then retry; until then files cannot be read or attached. ## `assistant_unavailable` {#assistant_unavailable} **The assistant is not available.** The assistant is not set up on this Taskloader server. - **Status:** 503 - **Retry:** no, not without changing the request - **Returned by:** [`ask_assistant`](https://taskloader.com/docs/api/reference/assistant.md#ask_assistant) **What to do:** The assistant is not available here; answer without it. # Limits Source: https://taskloader.com/docs/api/limits Every limit the API enforces: rates, daily caps, sizes and fields, read from the server’s own constants. Limits protect everyone’s share of Taskloader; the numbers may change, and this page always shows the current ones. Every authenticated `/api/v1` answer carries `RateLimit` and `RateLimit-Policy` headers for the limit closest to running out, and a request over a rate or a daily cap gets `429` with `Retry-After`; `too_many_open_uploads`, `too_many_invitations` and `too_many_projects` carry none, because you must act first. Over MCP, a request over the `mcp` or `user` bucket gets HTTP `429` with the same headers and `Retry-After`; a tool call or resource read refused by any other limit gets an error with `retryAfterSeconds` wherever `/api/v1` would send `Retry-After`. ## Rates and daily caps {#rates} Rates refill continuously: after a burst, requests are allowed again at the steady rate. Caps never let more than their number through in any window. The daily caps and the assistant’s limit count what is created or asked: a request refused with an error (such as `assistant_busy` for a follow-up while the answer is still being written, or `slug_taken`) does not use them up. | What | Bucket | Allowance | Counted per | | --------------------------------------------------------------------------------------------------------------------- | --------------------- | ----------------------------------------------- | ------------------------------------ | | Every request of a person, except through signed links (an MCP request counts as half a request) | `user` | 1,500 a minute, bursts of up to 300 | person, across all their credentials | | Reads through the REST API, and each further read of an MCP resource, listing or completion that reads more than once | `read` | 600 a minute, bursts of up to 120 | credential | | Writes | `write` | 120 a minute, bursts of up to 30 | credential | | Text searches (`q`), search across projects, insights and the overview, long-polls, and reads of assistant answers | `search` | 120 a minute, bursts of up to 30 | credential | | File uploads and parts | `upload` | 300 an hour, bursts of up to 50 | person | | Every MCP request, `tools/list` included | `mcp` | 1,200 a minute, bursts of up to 240 | credential | | Downloads and images through signed links, instead of the read and personal limits | `link` | 600 a minute, bursts of up to 200 | credential and address | | Questions to the assistant | `assistant` | At most 30 in any hour, at most 15 at once | credential | | New organizations | `create_organization` | At most 10 in any 24 hours, at most 5 at once | person | | New projects | `create_project` | At most 50 in any 24 hours, at most 25 at once | person | | New invitations | `invitation` | At most 100 in any 24 hours, at most 50 at once | person | Pages Taskloader reads for link previews (a bookmark's page, links in a description) have budgets of their own. They never refuse a request: a page past them waits in line, about one every 71 seconds, so after a large import a preview, and the rename of a bookmark named after its page, can come hours later. Until then its `preview.status` stays `queued`. | Pages read for link previews | Allowance | Counted per | | ---------------------------- | ------------------------------------------- | ----------------------------------------------------- | | Per project | At most 100 in any hour, at most 50 at once | project | | Per person | At most 150 in any hour, at most 50 at once | the person who wrote the links, across their projects | Each person also has an allowance of page titles and summaries written by Taskloader's model: at most 200 in any 24 hours, at most 100 at once, counted for the person whose link, or whose read of a stale preview, asked for the page. Past it, nothing waits and nothing is refused: the page is read, and its preview keeps the page's own title and description, which a bookmark is then named after. ## Sizes {#sizes} | What | Limit | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | | JSON request body | 1 MiB | | Nesting in a JSON request body (lists and objects inside each other) | 32 levels | | Values and fields in one JSON request body | 32,768 | | Raw body (a one-shot upload or one part) | 8 MiB | | Preview image you upload for a file (WebP or JPEG) | 1 MiB | | Upload part (every part but the last is exactly this size) | 8 MiB | | File | 100 MiB | | File attached over MCP (`attach_file`, as `text` or `contentBase64`), once decoded; as `text`, the request carrying it must also fit 2 MiB once JSON-escaped, which `contentBase64` always does | 1 MiB | | Arguments of one MCP tool call (list entries and fields in all, nested ones included) | 10,000 (nested up to 32 levels) | | Unfinished uploads at once | 12 | | Unfinished upload | canceled 1 hour after its last part arrived (or it started), and 24 hours after it started at the latest | | Files stored per person (the files they uploaded, unfinished uploads included; an image or video counts 1 MiB more, for its preview) | 10 GiB | | Files stored per organization (in all its projects, whoever uploaded them) | 50 GiB | | File transfers per person at once (`too_many_transfers` beyond) | 8 downloads (and, apart from them, 4 through each signed link, 8 through all the links one person made); 4 parts or one-shot files and 2 previews being sent | | Task title | 180 characters (longer when the title is a link) | | Task description | 20,000 characters | | Comment | 5,000 characters | | Checklist | 100 items of up to 500 characters | | Link | 2,048 characters once percent-encoded (each character outside ASCII counts as its escapes: `ж` is `%D0%B6`) | | Links in a task’s description that get previews (a task bookmarks at most one page) | 10 | | Active API keys per person | 25 | | Connected apps per person | 50 | | Projects per person (beyond it, creating, joining, accepting a link to or being added to another answers `too_many_projects`; a project whose ownership passes on to you is never refused) | 1,000 | | Active invitation links per project or organization | 20 | | Questions to the assistant per person, across every app | 60 an hour | | Tasks created in one request (`create_tasks`) | 25 (the whole request within the 1 MiB JSON body limit) | | List page | 50 items by default (25 over MCP), up to 100 | | Totals of searches and lists | counted up to 10,000 | | Problems listed in one `validation_failed` answer | 20; `moreErrors` counts the rest | | Comments, history and files included with a task | 20 of each, then a cursor; links: the bookmark and the first 10 links in the description, whole | | Changes feed page | 50 events by default, up to 200 | | Changes feed long-poll (`wait`) | up to 25 seconds | | Changes feed keeps events | 7 days | | Signed links to files and images | 10 minutes | ## Lists and retries {#lists-and-retries} - **Cursors** are opaque strings of up to 2,048 characters; pass them back unchanged. - **Idempotency keys** are 1 to 255 printable ASCII characters and are kept for 24 hours per credential. - **Replayed answers** are stored up to 256 KiB; larger ones are rebuilt from the resource as it is then, except `create_tasks`, which keeps its whole answer. Either way, a retry is answered only while you can still see what the request named, and after an app is reconnected with fewer scopes, a retry gets the answer as those scopes show it: a success is rebuilt from what the request made, as it is now (`create_tasks` keeps its first answer, which shows nothing that depends on scopes), and a failure keeps its code and members, with the general `detail` of its code. ## Fields {#fields} | Field | Limit | Operations | | -------------------------- | ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `after` | up to 2,048 characters | `list_events` | | `assigneeMemberId` | up to 50 items | `search_tasks`, `search_tasks_everywhere`, `count_tasks`, `weekly_trend` | | `body` | up to 5,000 characters | `add_comment` | | `changes` | up to 40 items | `apply_assistant_changes` | | `changes[]` | 0–39 | `apply_assistant_changes` | | `checklist` | up to 100 items | `create_task`, `update_task` | | `checklist[]` | up to 500 characters | `create_task` | | `checklist[].text` | up to 500 characters | `create_task`, `update_task` | | `contentBase64` | up to 1,441,924 characters | `attach_file` | | `contentDisposition` | up to 4,096 characters | `upload_attachment` | | `contentType` | up to 255 characters | `upload_preview`, `upload_attachment` | | `cred` | up to 200 characters | `get_link_preview_image`, `download_attachment`, `get_attachment_preview` | | `cursor` | up to 2,048 characters | `list_organizations`, `list_organization_members`, `list_organization_guests`, `list_organization_projects`, `list_projects`, `list_project_members`, `list_member_candidates`, `list_organization_invitations`, `list_project_invitations`, `search_tasks`, `search_tasks_everywhere`, `list_comments`, `list_task_activity`, `list_project_activity`, `list_link_previews`, `list_task_attachments`, `list_project_attachments`, `list_assistant_threads`, `list_assistant_messages` | | `description` | up to 1,000 characters | `create_project`, `update_project` | | `description` | up to 20,000 characters | `create_task`, `update_task`, `add_bookmark` | | `duration` | 0–86,400 | `upload_preview` | | `exp` | up to 20 characters | `get_link_preview_image`, `download_attachment`, `get_attachment_preview` | | `firstProject.description` | up to 1,000 characters | `create_organization` | | `firstProject.name` | up to 100 characters | `create_organization` | | `height` | 1–30,000 | `upload_preview` | | `include` | up to 4 items | `get_task`, `get_task_by_key` | | `indexLimit` | 0–300 | `project_overview` | | `keys` | up to 50 items | `search_tasks`, `search_tasks_everywhere`, `count_tasks`, `weekly_trend` | | `kinds` | up to 5 items | `list_task_activity`, `list_project_activity` | | `limit` | 1–100 | `list_organizations`, `list_organization_members`, `list_organization_guests`, `list_organization_projects`, `list_projects`, `list_project_members`, `list_member_candidates`, `list_organization_invitations`, `list_project_invitations`, `search_tasks`, `search_tasks_everywhere`, `list_comments`, `list_task_activity`, `list_project_activity`, `list_link_previews`, `list_task_attachments`, `list_project_attachments`, `list_assistant_threads`, `list_assistant_messages` | | `limit` | 1–200 | `list_events` | | `mimeType` | up to 255 characters | `attach_file` | | `name` | up to 100 characters | `create_organization`, `update_organization`, `create_project`, `update_project` | | `name` | up to 255 characters | `upload_attachment`, `start_upload`, `attach_file` | | `operations` | up to 50 items | `edit_checklist` | | `operations[].text` | up to 500 characters | `edit_checklist` | | `priority` | up to 4 items | `search_tasks`, `search_tasks_everywhere`, `count_tasks`, `weekly_trend` | | `projectId` | up to 50 items | `search_tasks_everywhere` | | `proposalDigest` | up to 64 characters | `apply_assistant_changes` | | `q` | up to 1,010 characters | `search_tasks`, `search_tasks_everywhere`, `count_tasks`, `weekly_trend` | | `q` | up to 200 characters | `list_member_candidates` | | `range` | up to 200 characters | `download_attachment` | | `ref` | up to 2,048 characters | `resolve_reference` | | `series` | up to 3 items | `weekly_trend` | | `sig` | up to 100 characters | `get_link_preview_image`, `download_attachment`, `get_attachment_preview` | | `slug` | up to 64 characters | `update_organization` | | `status` | up to 4 items | `search_tasks`, `search_tasks_everywhere`, `count_tasks`, `weekly_trend` | | `tasks` | up to 25 items | `create_tasks` | | `tasks[].checklist` | up to 100 items | `create_tasks` | | `tasks[].checklist[]` | up to 500 characters | `create_tasks` | | `tasks[].checklist[].text` | up to 500 characters | `create_tasks` | | `tasks[].description` | up to 20,000 characters | `create_tasks` | | `tasks[].title` | up to 2,048 characters once encoded | `create_tasks` | | `text` | up to 1,048,576 characters | `attach_file` | | `text` | up to 4,000 characters | `ask_assistant` | | `timeZone` | up to 64 characters | `search_tasks`, `search_tasks_everywhere`, `list_project_activity`, `project_overview`, `count_tasks`, `weekly_trend`, `ask_assistant` | | `title` | up to 2,048 characters once encoded | `create_task`, `update_task` | | `type` | up to 255 characters | `start_upload` | | `types` | up to 14 items | `list_events` | | `url` | up to 2,048 characters | `preview_invitation`, `accept_invitation` | | `url` | up to 2,048 characters once encoded | `add_bookmark` | | `via` | up to 5 items | `list_project_activity` | | `wait` | 0–25 | `list_events`, `get_assistant_message` | | `weeks` | 4–26 | `weekly_trend` | | `width` | 1–30,000 | `upload_preview` | # Changes feed Source: https://taskloader.com/docs/api/changes-feed Follow everything that changes in a project, in order and without gaps. Cursors, long-polling, event types, the 7-day retention and how to resync after a 410. The changes feed lists what changed in a project, in a stable order and without gaps. Use it to keep a copy of a project up to date: a mirror, a search index, a report, a board in another tool. [Sync tasks](https://taskloader.com/docs/guides/sync-tasks.md) builds one step by step. **Read a project’s changes feed** · `GET /api/v1/projects/{projectId}/events` Lists every change to a project in a stable, gap-free order after a cursor; can wait for new ones. - **Scopes:** `tasks:read` - **Who can call it:** Viewer or above in the project - **[Project-limited credentials](https://taskloader.com/docs/authentication.md#project-limited-credentials):** Allowed when the project is one of the credential’s projects [Reference for list_events](https://taskloader.com/docs/api/reference/events.md#list_events) ```http GET /projects/{projectId}/events?after=&wait=25 ``` ## How it works - **Events are thin.** An event says _what_ changed (`task.updated`, the task's id and key, the new `version`, the names of the changed fields) but never the content: no titles, descriptions or comment text. Fetch the resource to see it. That fetch checks access again, so someone who loses access to a project cannot read its content from the feed. - **Events come in a stable order, without gaps.** An event is returned only once every transaction that started writing before it has finished, so nothing can appear later behind a cursor you already moved past. The order follows when each change started writing, so it can differ slightly from the order in which changes finished; `occurredAt` is when each one was saved. - **The cursor is your bookmark.** Every answer has a `nextCursor`, even when there were no events. Store it after you process a page, and send it as `after` next time. - **Long-polling.** With `wait=25`, Taskloader holds the request open for up to 25 seconds and answers as soon as there is something to return. You get changes within about a second, without polling in a tight loop. - **Events are kept for 7 days.** A cursor answers `410 cursor_expired` only once events after it may have been removed, which never happens within 7 days of reading it; then you [resync](https://taskloader.com/docs/api/changes-feed.md#resyncing-after-a-410). ## Parameters | Parameter | Meaning | | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `after` | Where to continue: a `nextCursor` from an earlier answer. Leave it out to start from the oldest event still kept (up to 7 days back). Send `after=now` to start from this moment and see only new changes. | | `wait` | Seconds to wait for new events when there are none yet: 0 to 25. Leave it out (or send `0`) to answer at once. | | `types` | Only these event types, comma-separated: `types=task.created,task.deleted`. A cursor belongs to the types it was read with: send the same `types` with `after=now` and with every later read. | | `limit` | Events per page: 50 by default, up to 200. | Why the cursor remembers `types`: a read with `types` moves past the events it leaves out, so continuing that cursor with other types would skip events without a word. A cursor sent with other types is refused with `400 invalid_cursor` instead. To change the types you follow, take a new cursor with `after=now` (and resync if you cannot miss anything in between). ## The answer A page of events, oldest first: ```http HTTP/1.1 200 OK Content-Type: application/json { "object": "list", "data": [ { "object": "event", "id": "evt_1042", "type": "task.moved", "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718", "subject": { "type": "task", "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718" }, "taskKey": "TL-012", "data": { "fromStatus": "progress", "toStatus": "review", "version": 5, "fields": [ "status" ] }, "actor": { "userId": "usr_kq3Xb1W9pZ0aLm7c" }, "via": { "channel": "api", "label": "API key “CI”" }, "occurredAt": "2026-11-18T10:00:00.123Z" } ], "hasMore": false, "nextCursor": "eyJ2IjoxLCJvIjoibGlzdF9ldmVudHMi…" } ``` | Field | Meaning | | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | `evt_` and a number | | `type` | What happened; see [Event types](https://taskloader.com/docs/api/changes-feed.md#event-types) | | `projectId` | The project (`prj_…`) | | `subject` | What it happened to: its `type` (`task`, `comment`, `attachment`, `link_preview`, `member` or `project`) and its public `id` (`task_…`, `cmt_…`, `att_…`, `lnk_…`, `mem_…` or `prj_…`) | | `taskKey` | The task's key when the event concerns a task, kept even after the task is deleted; otherwise `null` | | `data` | Ids, versions and changed field names; see below | | `actor` | Who made the change (`userId`), or `null` for Taskloader's own background work | | `via` | Through what: `web`, `api`, `mcp`, `assistant` or `system`, and a label. See [Provenance](https://taskloader.com/docs/concepts.md#provenance-via). | | `occurredAt` | When the change was saved | When `hasMore` is `true`, more events are waiting: ask again straight away with `nextCursor`. ## Event types The list of types is open: new types may appear in v1, so skip types you do not know. `data` carries ids, versions and the names of changed fields, never content. A member event names the person and their role (`userId`, `role`) only to a credential with `projects:read`, the scope the members list needs; without it, `data` has `memberId` only. The members listed here are the ones to rely on; more may be added. Ids in `data` are public ids, so you can fetch what they name straight away. | Type | Sent when | `data` | | --- | --- | --- | | `task.created` | A task was created, including by `create_tasks` and `add_bookmark`. | `version` | | `task.updated` | A task’s fields changed: through `update_task`, `edit_checklist` or `remove_bookmark`, when its assignee left the project, when Taskloader renamed a new bookmark (then `via.channel` is `system`), or once when Taskloader rewrote a title saved before the one-line rule (also `system`). | `fields`, `version` | | `task.moved` | A task was moved with `move_task`. | `fromStatus`, `toStatus`, `fields`, `version` | | `task.deleted` | A task was deleted; `subject.id` and `taskKey` still name it. | `key` | | `tasks.reordered` | Taskloader respaced the positions of the project’s tasks to make room for a move, without changing their order or versions. | None | | `comment.created` | Someone commented on a task. | `taskId`, `commentId` | | `attachment.created` | A file was attached to a task. | `taskId`, `attachmentId` | | `attachment.deleted` | A file was deleted. | `taskId`, `attachmentId` | | `attachment.preview_ready` | A file’s preview image is ready: one Taskloader made, or one its uploader sent for a finished file. | `taskId`, `attachmentId` | | `link_preview.updated` | A bookmarked page’s preview was read or refreshed (always by Taskloader, so `actor` is `null`). | `previewId` | | `member.added` | Someone joined the project: added, through an invitation link, or by joining as an organization admin. | `memberId`, `userId`, `role` | | `member.removed` | Someone left the project or was removed from it. | `memberId`, `userId`, `role` | | `member.role_changed` | A member’s role changed. | `memberId`, `userId`, `role` | | `project.updated` | The project’s name or description changed, or it was archived or restored (`fields` holds `archived`); once by Taskloader itself, `system`, when it rewrote a name saved before the one-line rule. | `fields`, `version` | | `data` member | Holds | | --- | --- | | `version` | The subject’s version after the change. | | `fields` | The names of the fields that changed. | | `fromStatus` | The status before a move. | | `toStatus` | The status after it. | | `key` | The deleted task’s key. | | `taskId` | The task (`task_…`). | | `commentId` | The comment (`cmt_…`). | | `attachmentId` | The file (`att_…`). | | `previewId` | The link preview (`lnk_…`). | | `memberId` | The membership (`mem_…`). | | `userId` | The person (`usr_…`), with `projects:read` only. | | `role` | The member’s role (after the change, or when they left), with `projects:read` only. | ## Following the feed ```curl # The first call starts at the current moment; each later call continues from nextCursor. curl "https://taskloader.com/api/v1/projects/$PROJECT_ID/events?after=now&wait=25" \ -H "Authorization: Bearer $TASKLOADER_API_KEY" \ --max-time 40 ``` ```js // follow.mjs: node follow.mjs prj_… (Node.js 20 or later) const API = 'https://taskloader.com/api/v1'; const auth = { Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}` }; const projectId = process.argv[2]; const sleep = (seconds) => new Promise((resolve) => setTimeout(resolve, seconds * 1000)); let cursor = 'now'; // In a real integration, load the cursor you stored last time. for (;;) { const url = new URL(`${API}/projects/${projectId}/events`); url.searchParams.set('after', cursor); url.searchParams.set('wait', '25'); url.searchParams.set('limit', '200'); const response = await fetch(url, { headers: auth, signal: AbortSignal.timeout(40_000) }); // Limits, and outages: a proxy's 502 or 504 page is HTML, so wait before reading JSON. if ([429, 502, 503, 504].includes(response.status)) { await sleep(Number(response.headers.get('retry-after') ?? 5)); continue; } const page = await response.json(); if (response.status === 410) throw new Error( 'Cursor expired: resync as in "Resyncing after a 410" (take a new cursor first, then list the tasks), and follow from that cursor.', ); if (!response.ok) throw new Error(`${response.status} ${page.code}: ${page.detail}`); for (const event of page.data) console.log(event.occurredAt, event.type, event.taskKey ?? event.subject.id); cursor = page.nextCursor; // Store it now, so a restart continues from here. } ``` ```python # follow.py: python3 follow.py prj_… import os import sys import time import requests API = "https://taskloader.com/api/v1" session = requests.Session() session.headers["Authorization"] = f"Bearer {os.environ['TASKLOADER_API_KEY']}" project_id = sys.argv[1] cursor = "now" # In a real integration, load the cursor you stored last time. while True: response = session.get( f"{API}/projects/{project_id}/events", params={"after": cursor, "wait": 25, "limit": 200}, timeout=40, ) # Limits, and outages: a proxy's 502 or 504 page is HTML, so wait before reading JSON. if response.status_code in (429, 502, 503, 504): time.sleep(int(response.headers.get("Retry-After", "5"))) continue page = response.json() if response.status_code == 410: raise SystemExit( 'Cursor expired: resync as in "Resyncing after a 410" (take a new cursor first,' " then list the tasks), and follow from that cursor." ) if not response.ok: raise SystemExit(f"{response.status_code} {page['code']}: {page['detail']}") for event in page["data"]: print(event["occurredAt"], event["type"], event["taskKey"] or event["subject"]["id"]) cursor = page["nextCursor"] # Store it now, so a restart continues from here. ``` Give the HTTP request a timeout longer than `wait`: 40 seconds works well. Long-polls count against your search limit, so run one loop per project rather than many. ## Resyncing after a 410 A cursor answers `410 cursor_expired` once events after it may have been removed (events are kept 7 days and removed oldest first), so you cannot know what you missed. Rebuild from the current state: 1. Get a fresh starting point first: `GET /projects/{projectId}/events?after=now`, and keep its `nextCursor`. 2. List the current tasks: `GET /projects/{projectId}/tasks?sort=createdAt`, page by page, and replace your copy with what you get. `createdAt` never changes, so a task edited while you page cannot move past your position. Tasks you have that are not listed were deleted. 3. Refresh anything else you mirror the same way (members, comments, files). 4. Follow the feed from the cursor of step 1. Taking the cursor before listing means nothing that changes during the resync is lost. You may see a few events for changes you already listed; fetching those resources again is harmless. ## Errors | Status and code | Meaning | What to do | | ----------------------- | ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------- | | `410 cursor_expired` | The cursor is older than the 7-day retention | [Resync](https://taskloader.com/docs/api/changes-feed.md#resyncing-after-a-410) | | `400 invalid_cursor` | The cursor was changed, comes from another project or list, or was read with other `types` | Send the cursor with the `types` it was read with; otherwise start again with `after=now`, or resync | | `400 validation_failed` | `wait`, `limit` or `types` is out of range, or names an unknown type | Fix the parameter | | `404 not_found` | The project does not exist, or you no longer have access to it | Stop following it | | `429 rate_limited` | Too many requests | Wait `Retry-After` seconds | ## Good to know - **Short delays happen.** A change appears once every transaction that started before it has finished. Normally that is well under a second; a long-running transaction delays the feed until it ends, and the feed pauses briefly while Taskloader is being updated. Nothing is lost. - **Events are not history.** For people, read activity ([`list_task_activity`](https://taskloader.com/docs/api/reference/activity.md#list_task_activity), [`list_project_activity`](https://taskloader.com/docs/api/reference/activity.md#list_project_activity)): it has readable messages and comment text, and is kept for the life of the task. See [Activity and events](https://taskloader.com/docs/concepts.md#activity-and-events). - **Positions.** After `tasks.reordered`, read positions again (`GET /projects/{projectId}/tasks?sort=position`) if you show board order. - **Bookmarks** get renamed by Taskloader after their page is read: you see a `task.updated` with `via.channel` `system`. A bookmark whose page could not be read is named after the words of its link, and renamed once more if a later read succeeds. - **Push delivery** (webhooks and streams) is planned; see [Status](https://taskloader.com/docs/status.md). It will use the same events. # Files and uploads Source: https://taskloader.com/docs/api/files Attach files to tasks and read them back: one-shot uploads up to 8 MiB, resumable multipart uploads up to 100 MiB, previews, downloads and signed links. Tasks hold files: screenshots, videos, PDFs, documents, archives. Through the API you can attach them, list them, download them and give people short-lived links to them. Every file is served only to people who can see its task. | You want to | Use | Scope | Role | | --------------------------------------------------------- | -------------------------------------- | ------------- | ----------------------------------- | | Attach a file up to 8 MiB in one request | [One-shot upload](https://taskloader.com/docs/api/files.md#one-shot-uploads) | `files:write` | editor | | Attach a larger file, or resume after a broken connection | [Multipart upload](https://taskloader.com/docs/api/files.md#multipart-uploads) | `files:write` | editor | | Add your own preview image | [Previews](https://taskloader.com/docs/api/files.md#previews) | `files:write` | editor, and the person who uploaded | | List files, get one, download it | [Downloads](https://taskloader.com/docs/api/files.md#downloads) | `files:read` | viewer | | Delete a file | `DELETE /attachments/{attachmentId}` | `files:write` | editor | AI agents connected over MCP use `attach_file` (files up to 1 MiB) and `read_attachment` instead; see [MCP tools](https://taskloader.com/docs/mcp/tools.md). ## Accepted files Files can be up to 100 MiB (104,857,600 bytes), of these 19 types. Send the type as the file's `Content-Type` (one-shot) or `type` (multipart). | Kind | Types | | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `image` | `image/jpeg`, `image/png`, `image/webp`, `image/gif`, `image/avif` | | `video` | `video/mp4`, `video/webm`, `video/quicktime` | | `file` | `image/heic`, `image/heif`, `application/pdf`, `text/plain`, `text/markdown`, `text/csv`, `application/json`, `application/zip`, Word (`application/vnd.openxmlformats-officedocument.wordprocessingml.document`), Excel (`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`), PowerPoint (`application/vnd.openxmlformats-officedocument.presentationml.presentation`) | Types are compared as media types: in any case, and with parameters dropped (`text/markdown; charset=utf-8` is `text/markdown`), and stored in that form. Another type gets `415 unsupported_file_type`, with the accepted list in `accepted`. Taskloader also checks the file's first bytes: a file that is not what its type says (a program renamed `.pdf`, say) gets `422 file_type_mismatch`, and nothing is kept. Text files (`text/plain`, `text/markdown`, `text/csv`, `application/json`) must be UTF-8, or UTF-16 with a byte-order mark as Windows writes "Unicode" text; a text file with NUL bytes (UTF-16 without its mark, UTF-32, or a program renamed `.txt`) gets `422 file_type_mismatch`. > **Note:** Files you upload through the API are stored exactly as sent. Photos keep their metadata, which can include where they were taken. Remove it before uploading if it should not be shared with the project. ## One-shot uploads For files up to 8 MiB, send the bytes as the request body: ```http POST /tasks/{taskId}/attachments?name=launch-plan.pdf Content-Type: application/pdf ``` Name the file with `?name=`, or with `Content-Disposition: attachment; filename*=UTF-8''launch%20plan.pdf` for names with any characters (a plain `filename=` sent as UTF-8 keeps its accents too; `filename*` wins when both are there). Send one of the two: both at once answer `400 invalid_request`, and neither answers `400 validation_failed` at `/name`. A name is 1 to 255 characters, counted as Unicode code points (an emoji is one), with something visible in it. A longer, blank or invisible name answers `400 validation_failed` at `/name` and is never shortened, whether it comes from `?name=`, `Content-Disposition`, [`start_upload`](https://taskloader.com/docs/api/reference/files.md#start_upload) or `attach_file`. Taskloader keeps the name as sent, except that `/`, `\`, tabs, line breaks and other control characters become `_`, zero-width spaces, byte-order marks and text-direction characters (such as U+202E) are removed, and spaces at either end are trimmed, so a name always shows its real extension. This applies to one-shot and multipart uploads alike: `reports/2026/q3.txt` is kept as `reports_2026_q3.txt`. An attachment's `name` is always the name kept, so look files up by that. A file over 8 MiB answers `413 file_too_large` with `limitBytes: 8388608`: use a [multipart upload](https://taskloader.com/docs/api/files.md#multipart-uploads). An upload in progress counts toward your 12 unfinished uploads. ### Storage quotas and transfers at once Files count toward two storage quotas from the moment their upload starts until they are deleted: the files you uploaded, across every project (10 GiB), and the files in an organization's projects, whoever uploaded them (50 GiB). An unfinished upload counts with its declared size, and an image or video counts 1 MiB more, for its preview, from the start. A file that would go past either answers `413 storage_quota_exceeded` with `limitBytes` before anything is stored: delete files, or cancel unfinished uploads, then try again. Sending or replacing a preview never needs more room than its file claimed. Taskloader also bounds how many of your file transfers run at once: 8 downloads (files and previews), and 4 parts or one-shot files and 2 previews being sent. Downloads through a [signed link](https://taskloader.com/docs/api/files.md#signed-links) count apart from yours: 4 at once through each link, whoever holds it, and 8 through all the links you made together. One more download waits a few seconds for one of yours to finish; one more upload body is refused before it is read. Either way the answer is `429 too_many_transfers` with `Retry-After`: wait, then send it again. When the server as a whole has many downloads open, one more waits its turn too (the person with the fewest open goes first), and a download through a link, or of someone with several open, once it has run a few seconds, may be cut short for someone with fewer (no person's more often than every 10 seconds): ask for the rest with a `Range` (the file's `ETag` never changes). After the wait it may get `503 storage_unavailable` with `Retry-After`; that takes hundreds of downloads held open at once. A download that is not read for a minute, or is still open long after its size would take at 64 KiB/s, is ended; ask again with a `Range` for the rest. ```curl curl "https://taskloader.com/api/v1/tasks/$TASK_ID/attachments?name=launch-plan.pdf" \ -H "Authorization: Bearer $TASKLOADER_API_KEY" \ -H "Content-Type: application/pdf" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Digest: sha-256=:$(openssl dgst -sha256 -binary launch-plan.pdf | base64):" \ --data-binary @launch-plan.pdf ``` ```js import { createHash, randomUUID } from 'node:crypto'; import { readFile } from 'node:fs/promises'; const bytes = await readFile('launch-plan.pdf'); const url = new URL(`https://taskloader.com/api/v1/tasks/${taskId}/attachments`); url.searchParams.set('name', 'launch-plan.pdf'); const response = await fetch(url, { method: 'POST', headers: { Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`, 'Content-Type': 'application/pdf', 'Idempotency-Key': randomUUID(), 'Content-Digest': `sha-256=:${createHash('sha256').update(bytes).digest('base64')}:`, }, body: bytes, }); const attachment = await response.json(); if (!response.ok) throw new Error(`${attachment.code}: ${attachment.detail}`); ``` ```python import base64, hashlib, os, uuid import requests with open("launch-plan.pdf", "rb") as file: data = file.read() response = requests.post( f"https://taskloader.com/api/v1/tasks/{task_id}/attachments", params={"name": "launch-plan.pdf"}, headers={ "Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}", "Content-Type": "application/pdf", "Idempotency-Key": str(uuid.uuid4()), "Content-Digest": f"sha-256=:{base64.b64encode(hashlib.sha256(data).digest()).decode()}:", }, data=data, timeout=120, ) if not response.ok: problem = response.json() raise RuntimeError(f"{problem['code']}: {problem['detail']}") attachment = response.json() ``` The answer is `201 Created` with the attachment: ```http HTTP/1.1 201 Created Content-Type: application/json Location: /api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 { "object": "attachment", "id": "att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718", "taskId": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718", "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718", "name": "launch-plan.pdf", "size": 482133, "mimeType": "application/pdf", "kind": "file", "status": "ready", "width": null, "height": null, "durationSeconds": null, "preview": { "status": "none" }, "createdBy": { "userId": "usr_kq3Xb1W9pZ0aLm7c", "name": "Maya Chen" }, "createdAt": "2026-11-18T10:00:00.123Z", "contentUrl": "https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/content", "downloadUrl": "https://taskloader.com/api/v1/attachments/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/content?exp=1794996600&cred=key_0b6f1d2a8c9e4f00a1b2c3d4e5f60718&sig=Xq3…", "previewUrl": null, "urlsExpireAt": "2026-11-18T10:10:00.000Z" } ``` The file appears on the task at once, and the task's history says who attached it and through what. ## Multipart uploads For files over 8 MiB, or whenever you want to resume after a broken connection, upload in parts: 1. **Start** with the file's name, size and type: `POST /tasks/{taskId}/uploads`. The answer lists the parts to send, each with its exact `size` and an `uploadUrl`. 2. **Send each part** with `PUT` to its `uploadUrl`. Parts can go in any order and in parallel; sending a part again replaces it. 3. **Complete** with `POST /uploads/{uploadId}/complete`. The answer is the attachment. The answer to the first step: ```http HTTP/1.1 201 Created Content-Type: application/json Location: /api/v1/uploads/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 { "object": "upload", "id": "att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718", "taskId": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718", "name": "product-demo.mp4", "size": 20971520, "mimeType": "video/mp4", "partSize": 8388608, "partCount": 3, "parts": [ { "partNumber": 1, "size": 8388608, "uploadUrl": "/api/v1/uploads/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/parts/1" }, { "partNumber": 2, "size": 8388608, "uploadUrl": "/api/v1/uploads/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/parts/2" }, { "partNumber": 3, "size": 4194304, "uploadUrl": "/api/v1/uploads/att_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/parts/3" } ], "receivedParts": [], "status": "uploading", "expiresAt": "2026-11-18T11:00:00.123Z" } ``` Part _n_ is the bytes from `(n − 1) × partSize` to `n × partSize` of the file, and must be exactly as many bytes as its `size` says (only the last part is smaller); a part of another length answers `400 part_length_mismatch` with `expectedBytes`. Use the numbers in the answer rather than assuming a part size (today 8 MiB). A file over 100 MiB answers `413 file_too_large`, and a `size` of 0 `400 validation_failed`. Treat `uploadUrl` as opaque, and resolve it against `https://taskloader.com`: today it is a path such as `/api/v1/uploads/att_…/parts/2`, but it may become a full address, possibly on another host. Parts sent to `https://taskloader.com` take your `Authorization` header, like any other request. Send that header only to `https://taskloader.com` addresses. ```curl # Start: name, size in bytes and type. curl https://taskloader.com/api/v1/tasks/$TASK_ID/uploads \ -H "Authorization: Bearer $TASKLOADER_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d "{\"name\":\"product-demo.mp4\",\"size\":$(wc -c < product-demo.mp4),\"type\":\"video/mp4\"}" \ | tee upload.json # Send every part, cut at the partSize the answer gives, then complete. UPLOAD_ID=$(jq -r .id upload.json) PART_SIZE=$(jq -r .partSize upload.json) for N in $(jq -r '.parts[].partNumber' upload.json); do dd if=product-demo.mp4 of=part.bin bs="$PART_SIZE" skip=$((N - 1)) count=1 2>/dev/null URL=$(jq -r --argjson n "$N" '.parts[] | select(.partNumber == $n) | .uploadUrl' upload.json) case "$URL" in /*) URL="https://taskloader.com$URL" ;; esac # A path: resolve it. AUTH=() # Your key goes only to taskloader.com. case "$URL" in https://taskloader.com/*) AUTH=(-H "Authorization: Bearer $TASKLOADER_API_KEY") ;; esac curl -sf -X PUT "$URL" "${AUTH[@]}" \ -H "Content-Type: application/octet-stream" \ -H "Content-Digest: sha-256=:$(openssl dgst -sha256 -binary part.bin | base64):" \ --data-binary @part.bin > /dev/null || { echo "Part $N failed; send it again." >&2; break; } done curl -X POST https://taskloader.com/api/v1/uploads/$UPLOAD_ID/complete \ -H "Authorization: Bearer $TASKLOADER_API_KEY" ``` ```js // upload.mjs: node upload.mjs task_… ./product-demo.mp4 video/mp4 (Node.js 20 or later) import { createHash, randomUUID } from 'node:crypto'; import { open, stat } from 'node:fs/promises'; import { basename } from 'node:path'; const ORIGIN = 'https://taskloader.com'; const auth = { Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}` }; const [taskId, path, type] = process.argv.slice(2); async function read(response) { const body = await response.json(); if (!response.ok) throw new Error(`${response.status} ${body.code}: ${body.detail}`); return body; } const { size } = await stat(path); const upload = await read( await fetch(`${ORIGIN}/api/v1/tasks/${taskId}/uploads`, { method: 'POST', headers: { ...auth, 'Content-Type': 'application/json', 'Idempotency-Key': randomUUID() }, body: JSON.stringify({ name: basename(path), size, type }), }), ); const file = await open(path); try { for (const part of upload.parts) { if (upload.receivedParts.includes(part.partNumber)) continue; const bytes = Buffer.alloc(part.size); await file.read(bytes, 0, part.size, (part.partNumber - 1) * upload.partSize); const url = new URL(part.uploadUrl, ORIGIN); await read( await fetch(url, { method: 'PUT', headers: { ...(url.origin === ORIGIN ? auth : {}), 'Content-Type': 'application/octet-stream', 'Content-Digest': `sha-256=:${createHash('sha256').update(bytes).digest('base64')}:`, }, body: bytes, }), ); } } finally { await file.close(); } const attachment = await read( await fetch(`${ORIGIN}/api/v1/uploads/${upload.id}/complete`, { method: 'POST', headers: auth }), ); console.log(attachment.id, attachment.name, attachment.size); ``` ```python # upload.py: python3 upload.py task_… ./product-demo.mp4 video/mp4 import base64, hashlib, os, sys, uuid from urllib.parse import urljoin, urlsplit import requests ORIGIN = "https://taskloader.com" session = requests.Session() auth = {"Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}"} task_id, path, file_type = sys.argv[1:4] def read(response): body = response.json() if not response.ok: raise RuntimeError(f"{response.status_code} {body['code']}: {body['detail']}") return body upload = read(session.post( f"{ORIGIN}/api/v1/tasks/{task_id}/uploads", headers={**auth, "Idempotency-Key": str(uuid.uuid4())}, json={"name": os.path.basename(path), "size": os.path.getsize(path), "type": file_type}, timeout=30, )) with open(path, "rb") as file: for part in upload["parts"]: if part["partNumber"] in upload["receivedParts"]: continue file.seek((part["partNumber"] - 1) * upload["partSize"]) data = file.read(part["size"]) url = urljoin(ORIGIN, part["uploadUrl"]) same_origin = f"{urlsplit(url).scheme}://{urlsplit(url).netloc}" == ORIGIN digest = base64.b64encode(hashlib.sha256(data).digest()).decode() read(session.put( url, headers={**(auth if same_origin else {}), "Content-Type": "application/octet-stream", "Content-Digest": f"sha-256=:{digest}:"}, data=data, timeout=120, )) attachment = read(session.post(f"{ORIGIN}/api/v1/uploads/{upload['id']}/complete", headers=auth, timeout=30)) print(attachment["id"], attachment["name"], attachment["size"]) ``` ### Resuming An upload stays open while its parts keep arriving: it is canceled when no part arrives for an hour, and 24 hours after it started at the latest. `expiresAt` says when, and each part moves it on. Once it is canceled, every request about it answers `404`, and the file needs a new upload. If your program stops halfway, come back within the hour, ask which parts arrived and send only the rest: ```bash curl https://taskloader.com/api/v1/uploads/$UPLOAD_ID \ -H "Authorization: Bearer $TASKLOADER_API_KEY" | jq '{receivedParts, partCount}' ``` `GET /uploads/{uploadId}` returns the same upload, with `receivedParts` read from storage. Completing before every part arrived answers `409 upload_incomplete` with `missingParts` and `receivedParts`: send the missing parts, then complete again. (`missingParts` can be empty when storage refused to join parts that were being sent again at that moment: complete again.) Completing twice, even at the same moment, is safe: the file is attached once, and both get the same attachment. To give up, cancel with `DELETE /uploads/{uploadId}`. Unfinished uploads are canceled automatically an hour after their last part arrived (or after they started, before the first part), and 24 hours after they started at the latest. A canceled upload no longer counts toward your 12 unfinished uploads. Once an upload is complete, the attachment has the same id. `GET /uploads/{uploadId}`, a part and a cancel then answer `404` with a `detail` that says so: read it with `GET /attachments/{attachmentId}`, or delete the attachment instead. If storage has already joined the parts, a part answers that you should complete the upload. If storage no longer holds an upload, every request about it answers `404`: cancel it and start again. Only the person who started an upload can continue, complete or cancel it, and continuing or completing also needs them to still be able to edit the task. Anyone else gets `404 not_found`. ### Retrying uploads - **One-shot uploads:** send an `Idempotency-Key`, and with it a `Content-Digest: sha-256=::` header (RFC 9530). The digest is required whenever you send a key with file bytes; without it you get `400 invalid_request`. A retry with the same key and the same bytes returns the first answer; the same key with other bytes is refused. - **Starting a session:** send an `Idempotency-Key`, as with any create. - **Parts:** just send the part again; it replaces the earlier one. A `Content-Digest` on a part is optional and checked before the part is stored: a mismatch answers `400 digest_mismatch` and nothing is kept. - **Completing:** safe to repeat. - **Canceling:** send an `Idempotency-Key`: a retry with the same key gets the first answer for 24 hours. Without one, a cancel sent again answers the same only until the stored parts are freed, then `404`. ## Previews An attachment's `preview.status` says whether it has a preview image: `none`, `queued`, `running`, `ready` or `failed`. - **Images** get one automatically: after a JPEG, PNG, WebP, GIF or AVIF upload of up to 25 MiB without a preview of its own, Taskloader renders an upright WebP preview, at most 960 pixels on its long edge, without the photo's metadata. When it is ready, the changes feed sends `attachment.preview_ready`. An image Taskloader cannot read ends as `failed`; a storage hiccup may show `failed` briefly while Taskloader tries again. - **Videos, HEIC and HEIF images** get no automatic preview. If your program can make one (a video's poster frame, say), upload it. Upload your own preview with `PUT /attachments/{attachmentId}/preview`: a WebP or JPEG body up to 1 MiB, with its type as `Content-Type` and `width`, `height` and, for videos only, `duration` (seconds) in the query string, all three optional. You can send it while the upload is still in progress or after it completed. Only the person who uploaded the file can, while they can edit the task. Your preview always wins: it replaces one Taskloader made, and for a finished file the changes feed sends `attachment.preview_ready`. ```bash curl -X PUT "https://taskloader.com/api/v1/attachments/$ATTACHMENT_ID/preview?width=960&height=540&duration=42.5" \ -H "Authorization: Bearer $TASKLOADER_API_KEY" \ -H "Content-Type: image/webp" \ --data-binary @poster.webp ``` A preview over 1 MiB answers `413 payload_too_large`. A body that is not WebP or JPEG, a `Content-Type` that does not match it, a `duration` for a file that is not a video, or a file that cannot have a preview answers `400 invalid_preview`. ## Downloads | Request | Returns | | ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | | `GET /tasks/{taskId}/attachments` | The task's files, oldest first | | `GET /projects/{projectId}/attachments` | Every file in the project; filter with `taskId` (a task of this project: another answers `400 validation_failed`) and `kind` | | `GET /attachments/{attachmentId}` | One attachment, with fresh signed links | | `GET /attachments/{attachmentId}/content` | The file's bytes | | `GET /attachments/{attachmentId}/preview` | The preview image (WebP or JPEG); `404` when there is none | `GET /attachments/{attachmentId}/content` streams the file with `Content-Length`, an `ETag` of the form `"att_…-"` (files never change), `Cache-Control: private, no-store`, and `Content-Disposition: attachment` with the file's name. It answers as `application/octet-stream`, so a browser saves the file instead of opening it. For images and videos, `?disposition=inline` answers with the file's own type instead, to show it. The preview image answers with `Cache-Control: private, max-age=3600`, or `private, no-store` when it is fetched through a signed `previewUrl`. Downloads support one byte range per request, to resume a download or read part of a file: ```bash curl https://taskloader.com/api/v1/attachments/$ATTACHMENT_ID/content \ -H "Authorization: Bearer $TASKLOADER_API_KEY" \ -H "Range: bytes=0-1048575" \ -o first-mebibyte.bin ``` The answer is `206 Partial Content` with `Content-Range`. A range outside the file, `bytes=-0`, or several ranges at once answer `416 range_not_satisfiable`, with `Content-Range: bytes */` and the file's `size` in the problem. A range in a unit other than bytes is ignored: you get the whole file. ### Signed links Some things cannot send an `Authorization` header: an `` tag, a link a person clicks, an AI client showing a file. For them, each attachment carries signed links: - `downloadUrl` downloads the file, and `previewUrl` shows its preview (or is `null`). For images and videos, `downloadUrl` opens in the browser and may be embedded in another site's page; every other file downloads. - They look like `…/attachments/att_…/content?exp=&cred=&sig=`, and work without a header until `urlsExpireAt`, at most **10 minutes** after you read the attachment. Read the attachment again for fresh ones; do not store them, and do not take them apart: their form may change. - They are bound to you, the credential that asked for them, and the file. They stop working at once when that API key is revoked or expires, when that app is disconnected or loses its tokens (a password reset does that; approving the app again does not bring old links back), or when you lose access to the task (then they answer `404`). - A link that expired, was changed or belongs to a revoked credential answers `401 invalid_token` with `reason` `expired` or `invalid`; a forged link and a revoked one look the same on purpose. `contentUrl` is the plain API address of the file, for requests that send your `Authorization` header. Link previews of bookmarks carry signed `cover.url` and `icon.url` the same way. Taskloader never hands out permanent or public links to files. ## Errors | Status and code | Meaning | What to do | | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | | `413 file_too_large` | Over 100 MiB, or over 8 MiB for a one-shot upload (`limitBytes` says which) | Use a multipart upload; files over 100 MiB cannot be attached | | `413 payload_too_large` | A preview over 1 MiB | Send a smaller preview | | `400 invalid_preview` | A preview that is not WebP or JPEG, a `Content-Type` that does not match it, a `duration` for a file that is not a video, or a file that cannot have one | Send a WebP or JPEG | | `400 invalid_request` | `?name=` and `Content-Disposition` both sent, or a key with file bytes but no `Content-Digest` | Send one name; add the digest | | `415 unsupported_file_type` | Not one of the 19 types | See `accepted` | | `422 file_type_mismatch` | The bytes are not the declared type (text must be UTF-8, or UTF-16 with a byte-order mark); the upload was canceled | Check the file and its type, then start again | | `429 too_many_open_uploads` | You have 12 unfinished uploads | Complete or cancel some first | | `413 storage_quota_exceeded` | The file would take your files, or the organization's, past the [storage quota](https://taskloader.com/docs/api/files.md#storage-quotas-and-transfers-at-once) (`limitBytes`) | Delete files or cancel unfinished uploads first | | `429 too_many_transfers` | Too many of your downloads or upload bodies at once | Wait `Retry-After` seconds, then send it again | | `400 part_out_of_range` | No such part number | Use 1 to `partCount` | | `400 part_length_mismatch` | The part is not exactly its expected size | Send exactly `expectedBytes` bytes | | `400 digest_mismatch` | The bytes do not match `Content-Digest` | Send the part (or file) again | | `409 upload_incomplete` | Completing before every part arrived | Send `missingParts`, then complete again | | `416 range_not_satisfiable` | The `Range` does not fit the file | Ask for a range within its size | | `503 storage_unavailable` | File storage is busy or unavailable right now | Wait `Retry-After` seconds (also in `retryAfter`), then send the same request again | Uploads also count against your upload limit: parts per hour, per person, shared by all your credentials. The [limits page](https://taskloader.com/docs/api/limits.md) has the numbers. # Account Source: https://taskloader.com/docs/api/reference/account Who the credential belongs to and what it may do. Endpoints, parameters, examples and errors. This API reference page is not repeated here. Read it at https://taskloader.com/docs/api/reference/account.md, or take every endpoint, parameter and schema from the OpenAPI document: https://taskloader.com/api/v1/openapi.json # Organizations Source: https://taskloader.com/docs/api/reference/organizations An organization holds projects and the people in them. Endpoints, parameters, examples and errors. This API reference page is not repeated here. Read it at https://taskloader.com/docs/api/reference/organizations.md, or take every endpoint, parameter and schema from the OpenAPI document: https://taskloader.com/api/v1/openapi.json # Projects Source: https://taskloader.com/docs/api/reference/projects A project is a board of tasks with its own members and roles (owner, admin, editor, viewer). Endpoints, parameters, examples and errors. This API reference page is not repeated here. Read it at https://taskloader.com/docs/api/reference/projects.md, or take every endpoint, parameter and schema from the OpenAPI document: https://taskloader.com/api/v1/openapi.json # People Source: https://taskloader.com/docs/api/reference/people The members of a project and their roles. Endpoints, parameters, examples and errors. This API reference page is not repeated here. Read it at https://taskloader.com/docs/api/reference/people.md, or take every endpoint, parameter and schema from the OpenAPI document: https://taskloader.com/api/v1/openapi.json # Invitations Source: https://taskloader.com/docs/api/reference/invitations Invitation links bring people into a project or an organization. Endpoints, parameters, examples and errors. This API reference page is not repeated here. Read it at https://taskloader.com/docs/api/reference/invitations.md, or take every endpoint, parameter and schema from the OpenAPI document: https://taskloader.com/api/v1/openapi.json # Tasks Source: https://taskloader.com/docs/api/reference/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. This API reference page is not repeated here. Read it at https://taskloader.com/docs/api/reference/tasks.md, or take every endpoint, parameter and schema from the OpenAPI document: https://taskloader.com/api/v1/openapi.json # Comments Source: https://taskloader.com/docs/api/reference/comments Comments on tasks. Endpoints, parameters, examples and errors. This API reference page is not repeated here. Read it at https://taskloader.com/docs/api/reference/comments.md, or take every endpoint, parameter and schema from the OpenAPI document: https://taskloader.com/api/v1/openapi.json # Activity Source: https://taskloader.com/docs/api/reference/activity The lasting history of a project and its tasks: who changed what, when, and through which app (`via`). Endpoints, parameters, examples and errors. This API reference page is not repeated here. Read it at https://taskloader.com/docs/api/reference/activity.md, or take every endpoint, parameter and schema from the OpenAPI document: https://taskloader.com/api/v1/openapi.json # Events Source: https://taskloader.com/docs/api/reference/events The changes feed: every change in a project, in a stable order without gaps, for keeping a copy in sync. Endpoints, parameters, examples and errors. This API reference page is not repeated here. Read it at https://taskloader.com/docs/api/reference/events.md, or take every endpoint, parameter and schema from the OpenAPI document: https://taskloader.com/api/v1/openapi.json # Insights Source: https://taskloader.com/docs/api/reference/insights Counts, weekly trends and a one-call project overview, computed by Taskloader with the same filters as task search. Endpoints, parameters, examples and errors. This API reference page is not repeated here. Read it at https://taskloader.com/docs/api/reference/insights.md, or take every endpoint, parameter and schema from the OpenAPI document: https://taskloader.com/api/v1/openapi.json # Bookmarks Source: https://taskloader.com/docs/api/reference/bookmarks Tasks that bookmark a web page, and the previews Taskloader makes of linked pages: title, summary, picture and icon. Endpoints, parameters, examples and errors. This API reference page is not repeated here. Read it at https://taskloader.com/docs/api/reference/bookmarks.md, or take every endpoint, parameter and schema from the OpenAPI document: https://taskloader.com/api/v1/openapi.json # Files Source: https://taskloader.com/docs/api/reference/files Files attached to tasks. Endpoints, parameters, examples and errors. This API reference page is not repeated here. Read it at https://taskloader.com/docs/api/reference/files.md, or take every endpoint, parameter and schema from the OpenAPI document: https://taskloader.com/api/v1/openapi.json # Assistant Source: https://taskloader.com/docs/api/reference/assistant Questions to Taskloader’s assistant about a project. Endpoints, parameters, examples and errors. This API reference page is not repeated here. Read it at https://taskloader.com/docs/api/reference/assistant.md, or take every endpoint, parameter and schema from the OpenAPI document: https://taskloader.com/api/v1/openapi.json # Sync tasks Source: https://taskloader.com/docs/guides/sync-tasks Mirror a project's tasks in your own system. Take a cursor, list the tasks, follow the changes feed, handle deletions, and resync after a 410. This guide keeps a local copy of a project's tasks up to date: for a search index, a data warehouse, a report or another tool. It uses two things: the task list for the starting state, and the [changes feed](https://taskloader.com/docs/api/changes-feed.md) for everything after. You need a credential with `tasks:read`. The full program is at the end, in JavaScript and Python. ## The plan 1. **Take a cursor first.** `GET /projects/{projectId}/events?after=now` returns a `nextCursor` that marks this moment. 2. **List every task.** Page through `GET /projects/{projectId}/tasks?sort=createdAt` and store each task by `id`. 3. **Follow the feed** from the cursor of step 1. For each event, fetch what it points to. 4. **Store the cursor** after each page of events, so a restart carries on where it stopped. 5. **Resync** if the cursor ever expires (`410`). Taking the cursor **before** listing is what makes this correct: a task that changes while you are still listing also produces an event after your cursor, so you catch it either way. ## 1. Take a cursor ```bash curl "https://taskloader.com/api/v1/projects/$PROJECT_ID/events?after=now" \ -H "Authorization: Bearer $TASKLOADER_API_KEY" | jq -r .nextCursor ``` The answer has no events (`after=now` starts at the present), but its `nextCursor` is where you will start following. ## 2. List the tasks ```bash curl "https://taskloader.com/api/v1/projects/$PROJECT_ID/tasks?sort=createdAt&limit=100" \ -H "Authorization: Bearer $TASKLOADER_API_KEY" ``` Follow `nextCursor` until `hasMore` is `false`. Store every task by its `id`, with its `version`. Sort by `createdAt`, which never changes. With a sort value that changes, such as `position` (the default) or `updatedAt`, a task edited while you page can move past your position and be left out of the list. Keep `id` as your reference: keys can be read by people, but ids are what the API resolves directly. ## 3. Follow the feed Long-poll the feed from your cursor with `wait=25`. Each event names a `subject`. For a copy of the tasks: | Event | Do | | -------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `task.created`, `task.updated`, `task.moved` | Fetch `GET /tasks/{subject.id}` and replace your copy. If `data.version` is not newer than the version you have, skip the fetch: you already have it, often because you made the change yourself. | | `task.deleted` | Remove `subject.id`. `data.key` and `taskKey` still say which task it was. | | `tasks.reordered` | If you keep board order, list the tasks again for their new `position` values. Nothing else changed. | | `attachment.created`, `attachment.deleted` | Fetch `GET /tasks/{data.taskId}` and replace your copy: its `attachmentCount` changed, without a new `version`. | | `link_preview.updated` | Fetch again each task whose `bookmark.previewId` is `data.previewId`: its `bookmark.preview` changed, without a new `version`. It is recorded only in the projects that asked for the read (a task there linked the page, or someone there looked at the preview 14 days after the project was last told of it), when their own turn comes, once per change: an event in every project that links the page would tell each one when another read it. A preview can therefore change without an event; read it again when you show it, or on your periodic resync. | | Anything else | Ignore it, or refresh what else you mirror (`comment.created`: the task's comments; `member.*`: the member list; `attachment.*`: the task's files; `project.updated`: the project). | A fetch that answers `404` means the task was deleted after the event, or you can no longer see it. Remove it either way; if it was deleted, its own `task.deleted` follows. A task's `version` covers what people edit in it. Computed fields, such as an assignee's display name, can change with no event for the task: if you show them, refresh your copy now and then. Unknown event types will appear over time. Skip them. ## 4. Store the cursor Write the cursor and your changes together, after each page. If your program stops between the two, it will see a few events again on restart, which is harmless: fetching a task twice changes nothing. ## 5. Resync after a 410 The feed keeps events for 7 days. If your program was stopped for longer, the next request answers `410 cursor_expired`. Start again from step 1: take a new cursor, list every task sorted by `createdAt`, and replace your copy. Tasks in your copy that the list no longer has were deleted. If you only need to catch up on changes (not deletions), `GET /projects/{projectId}/tasks?updatedSince=