Get started
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.
On this page
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 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
#- Open Taskloader and choose Account settings in your account menu.
- Open API keys and choose Create key.
- Name it
Quickstart, choose the Work with tasks preset, keep All my projects, including new ones, and pick an expiry. - 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:
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 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 https://taskloader.com/api/v1/me \
-H "Authorization: Bearer $TASKLOADER_API_KEY"// 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);# 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/1.1 200 OK
Content-Type: application/json
{
"object": "me",
"user": {
"id": "usr_kq3Xb1W9pZ0aLm7c",
"name": "Ana Lima",
"email": "[email protected]",
"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.
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 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')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);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/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.
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'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 trueidempotency_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 TrueThe 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/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 -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}'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 2updated = 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{ "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 -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}'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
}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 3The 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/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: ids, pagination, filters, errors and limits in one page.
- Concepts: organizations, projects, members, tasks and how the board works.
- Conflicts and retries: a retry policy for every status.
- Sync tasks: keep a copy of a project up to date with the changes feed.
- Authentication: scopes, project-limited keys, expiry, and OAuth for apps other people use.
- Prefer working from an AI assistant? Connect Taskloader over MCP.