Skip to content
DocsQuickstart

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.

Updated View as Markdown

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

#
  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:

Shell
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"

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": "[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')
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.

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'

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 -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}'
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 -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}'

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

#