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.
On this page
A project is a board of tasks with its own members and roles (owner, admin, editor, viewer). A project has a version: send it as If-Match to change its name or description. project_overview (under Insights) sums a project up in one call.
List your projects
#Lists the projects you are in, oldest first, optionally in one organization.
GET /api/v1/projects- Scopes:
projects:read - Who: Any signed-in person
- Project-limited credentials: allowed; results include only the credential’s projects
- Retries: a read; safe to repeat
- Rate limit: the
readbucket - MCP tool:
list_projects
Returns the projects you are a member of, oldest first, with your role in each (currentMember.role) and a human ref (northwind/website-launch) to use in other calls. Filter by organizationId. A credential limited to some projects lists only those. total counts every match. Organization admins can see the projects they are not in with list_organization_projects.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | query | id (org_…) | No | Organization id: org_ followed by 32 lowercase hex digits, for example org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
limit | query | integer, 1–100 | No | How many to return, 1–100, for example 50. Defaults to 50 (25 over MCP). |
cursor | query | string | No | The nextCursor from the previous page, to read the next one. Leave it out for the first page; start again without it when you change filters. Up to 2,048 characters. |
Response
#200 with a list of Project objects; while hasMore is true, pass nextCursor back as cursor (with the same filters) for the next page.
| Field | Type | Description |
|---|---|---|
object | "list" | |
hasMore | boolean | True when there is a next page. |
nextCursor | string or null | Pass it as cursor to read the next page; null on the last page. |
data | array of Project | |
total | integer, at least 0 | How many match in all (every page), counted up to 10,000; see totalIsLowerBound past that. |
totalIsLowerBound | boolean | True when there are more than total (the count stops at 10,000). |
Headers it sends: Link.
Errors
#| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_id | The id is for a different kind of resource |
| 400 | invalid_cursor | The cursor is not valid |
| 403 | insufficient_scope | The credential lacks the required access |
| 404 | not_found | Not found |
And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.
Example
#curl 'https://taskloader.com/api/v1/projects?limit=50' \
-H "Authorization: Bearer $TASKLOADER_API_KEY"const response = await fetch('https://taskloader.com/api/v1/projects?limit=50', {
headers: {
Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
},
});
if (!response.ok) {
const problem = await response.json();
throw new Error(`${problem.code}: ${problem.detail}`);
}
const projects = await response.json();import os
import requests
response = requests.get(
"https://taskloader.com/api/v1/projects",
params={"limit": "50"},
headers={
"Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
},
timeout=30,
)
if not response.ok:
problem = response.json()
raise RuntimeError(f"{problem['code']}: {problem['detail']}")
projects = response.json()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
}Create a project
#Creates a project in an organization you are a member of; you become its owner.
POST /api/v1/organizations/{organizationId}/projects- Scopes:
projects:write - Who: Any member in the organization
- Project-limited credentials: refused with
credential_restricted; use a credential with access to all projects - Retries: send
Idempotency-Keyto make retries safe - Rate limit: the
writebucket, and thecreate_projectdaily cap (at most 50 in any 24 hours, at most 25 at once, per person) - MCP tool:
create_project
Creates a project in the organization. Any member of the organization can; guests cannot. You become its owner. Its link and ref come from its name (website-launch, or website-launch-2 when taken in the organization). examples: true fills it with nine example tasks, due relative to today. At most 50 new projects a day through the API and MCP (daily_limit_reached). Send an Idempotency-Key so a retry cannot create it twice.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | path | id (org_…) | Yes | Organization id: org_ followed by 32 lowercase hex digits, for example org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
Idempotency-Key | header | string | No | Makes a retry safe: the same key with the same request within 24 hours returns the first answer (with Idempotent-Replayed: true) instead of acting twice. 1 to 255 printable ASCII characters; a UUID works well. Keys belong to the credential that sent them. |
Request body
#A JSON object. Fields not listed are refused.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The project’s name: one line, up to 100 characters, for example "Website launch". |
description | string | No | What the project is for, up to 1,000 characters. Line breaks and tabs are kept; other control characters are refused. |
examples | boolean | No | true fills the project with nine example tasks. Defaults to false. |
today | date (YYYY-MM-DD) | No | Your own date (YYYY-MM-DD), for example 2026-11-18: example tasks are due relative to it. |
Response
#201 with the new Project object. Location is its address.
| Field | Type | Description |
|---|---|---|
object | "project" | |
id | id (prj_…) | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
organization | object | The organization the project belongs to. |
name | string | The project’s name, on one line. |
slug | string | The second part of its link, made from its name, for example website-launch. |
ref | string | A human reference, "org/project" (for example northwind/website-launch). Pass it back wherever a project is asked for. |
url | string | Where the project opens in Taskloader. |
description | string | What the project is for, written by its admins. |
version | integer | Raised by every change to its name or description, and by archiving or restoring it. Send it back (If-Match or version) to change the project. |
archived | boolean | Whether its owner or an admin archived it (update_project with archived). An archived project leaves the app’s sidebar and keeps working as before: everything in it can still be read and changed. A project of an archived organization is shown as archived in the app too, whatever this says (see the organization’s archived). |
currentMember | object or null | Your own membership and role. Null only for a project you are not in, which organization admins see in list_organization_projects. |
createdAt | string (date-time) | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z. |
Headers it sends: ETag, Location, Idempotent-Replayed.
Errors
#| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_id | The id is for a different kind of resource |
| 400 | invalid_idempotency_key | The Idempotency-Key header is not valid |
| 403 | insufficient_scope | The credential lacks the required access |
| 403 | credential_restricted | The credential is limited to some projects |
| 404 | not_found | Not found |
| 409 | idempotency_key_in_progress | The original request is still running |
| 413 | payload_too_large | The request body is too large |
| 415 | unsupported_media_type | Unsupported media type |
| 422 | idempotency_key_reused | The Idempotency-Key was used for another request |
| 429 | daily_limit_reached | Daily limit reached |
| 429 | too_many_projects | Too many projects |
And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.
Example
#curl https://taskloader.com/api/v1/organizations/org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/projects \
-H "Authorization: Bearer $TASKLOADER_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"name": "Website launch",
"description": "Everything for the new website, from copy to launch day."
}'const response = await fetch('https://taskloader.com/api/v1/organizations/org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/projects', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
name: 'Website launch',
description: 'Everything for the new website, from copy to launch day.',
}),
});
if (!response.ok) {
const problem = await response.json();
throw new Error(`${problem.code}: ${problem.detail}`);
}
const project = await response.json();import os
import uuid
import requests
response = requests.post(
"https://taskloader.com/api/v1/organizations/org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/projects",
headers={
"Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
"Content-Type": "application/json",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"name": "Website launch",
"description": "Everything for the new website, from copy to launch day.",
},
timeout=30,
)
if not response.ok:
problem = response.json()
raise RuntimeError(f"{problem['code']}: {problem['detail']}")
project = response.json()HTTP/1.1 201 Created
Content-Type: application/json
ETag: "1"
Location: /api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718
{
"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": 1,
"archived": false,
"currentMember": {
"memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"role": "owner"
},
"createdAt": "2026-11-18T10:00:00.123Z"
}Get a project
#Returns one project you are in, with your role and its version.
GET /api/v1/projects/{projectId}- Scopes:
projects:read - Who: Viewer or above in the project
- Project-limited credentials: allowed inside the credential’s projects; anything else is
not_found - Retries: a read; safe to repeat
- Rate limit: the
readbucket
Returns the project with its organization, ref, url, description, version and your own membership (currentMember). Its ETag (W/"<version>-<digest>") changes with anything the answer shows: send it back as If-None-Match to get 304 Not Modified while nothing changed. A project you are not in, one outside your credential’s projects, and one that does not exist all answer 404 not_found.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
projectId | path | id (prj_…) | Yes | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
If-None-Match | header | string | No | The ETag of your last read of this resource. The answer is 304 with no body while everything that read showed is unchanged, including what changes without a new version (a renamed project’s ref, your role). |
Response
#200 with a Project object.
| Field | Type | Description |
|---|---|---|
object | "project" | |
id | id (prj_…) | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
organization | object | The organization the project belongs to. |
name | string | The project’s name, on one line. |
slug | string | The second part of its link, made from its name, for example website-launch. |
ref | string | A human reference, "org/project" (for example northwind/website-launch). Pass it back wherever a project is asked for. |
url | string | Where the project opens in Taskloader. |
description | string | What the project is for, written by its admins. |
version | integer | Raised by every change to its name or description, and by archiving or restoring it. Send it back (If-Match or version) to change the project. |
archived | boolean | Whether its owner or an admin archived it (update_project with archived). An archived project leaves the app’s sidebar and keeps working as before: everything in it can still be read and changed. A project of an archived organization is shown as archived in the app too, whatever this says (see the organization’s archived). |
currentMember | object or null | Your own membership and role. Null only for a project you are not in, which organization admins see in list_organization_projects. |
createdAt | string (date-time) | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z. |
Headers it sends: ETag.
304: Not modified: the ETag you sent in If-None-Match is still current. No body.
Errors
#| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_id | The id is for a different kind of resource |
| 403 | insufficient_scope | The credential lacks the required access |
| 404 | not_found | Not found |
And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.
Example
#curl https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 \
-H "Authorization: Bearer $TASKLOADER_API_KEY"const response = await fetch('https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718', {
headers: {
Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
},
});
if (!response.ok) {
const problem = await response.json();
throw new Error(`${problem.code}: ${problem.detail}`);
}
const project = await response.json();import os
import requests
response = requests.get(
"https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
headers={
"Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
},
timeout=30,
)
if not response.ok:
problem = response.json()
raise RuntimeError(f"{problem['code']}: {problem['detail']}")
project = response.json()HTTP/1.1 200 OK
Content-Type: application/json
ETag: W/"3-8faa37f6d1ee"
{
"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"
}Update a project
#Renames a project, changes its description, or archives or restores it, if it is still at the version you read.
PATCH /api/v1/projects/{projectId}- Scopes:
projects:write - Who: Admin or owner in the project
- Project-limited credentials: allowed inside the credential’s projects; anything else is
not_found - Retries: versioned: a retry with the same version gets
version_conflict, never a second change - Version: required: send
If-Match: "<version>"orversionin the body - Rate limit: the
writebucket - MCP tool:
update_project
Changes the name, the description, or whether it is archived (project owner and admins). Send the version you read as If-Match: "<version>" (or version); if someone changed the project since, nothing is saved and you get 412 version_conflict with the current project. null or "" clears the description (it becomes ""); the name refuses null. A new name gives the project a new slug and ref; links with the old one keep working. archived: true archives the project: it leaves the app’s sidebar for everyone in it, and everything in it keeps working; false restores it. Projects cannot be deleted through the API; their owner deletes them in the app. Saving the same details again changes nothing and keeps the version.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
projectId | path | id (prj_…) | Yes | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
If-Match | header | string | No | The version you last read: the ETag you got with it, as it came (W/"8-3f2a9c1d0b7e" from a read, "8" from a change), or "<version>". Only the version is compared: the change is refused with 412 version_conflict if the resource changed since. Instead of this header you can send version in the body; when both are sent they must agree. * is not accepted. |
Request body
#A JSON object. Fields not listed are refused.
| Field | Type | Required | Description |
|---|---|---|---|
version | integer | No | The version you read, for example 3: list_projects, the project overview (project_overview over HTTP, get_project_overview over MCP) and every project result have it. Required: if the project changed since, nothing is saved and the error carries the current project. Over HTTP you may send If-Match: "3" instead. |
name | string | No | The project’s name: one line, up to 100 characters, for example "Website launch". |
description | string or null | No | What the project is for, up to 1,000 characters. Line breaks and tabs are kept; other control characters are refused. null or "" clears it. |
archived | boolean | No | true archives the project (it leaves the app’s sidebar and keeps working); false restores it. |
Response
#200 with a Project object.
| Field | Type | Description |
|---|---|---|
object | "project" | |
id | id (prj_…) | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
organization | object | The organization the project belongs to. |
name | string | The project’s name, on one line. |
slug | string | The second part of its link, made from its name, for example website-launch. |
ref | string | A human reference, "org/project" (for example northwind/website-launch). Pass it back wherever a project is asked for. |
url | string | Where the project opens in Taskloader. |
description | string | What the project is for, written by its admins. |
version | integer | Raised by every change to its name or description, and by archiving or restoring it. Send it back (If-Match or version) to change the project. |
archived | boolean | Whether its owner or an admin archived it (update_project with archived). An archived project leaves the app’s sidebar and keeps working as before: everything in it can still be read and changed. A project of an archived organization is shown as archived in the app too, whatever this says (see the organization’s archived). |
currentMember | object or null | Your own membership and role. Null only for a project you are not in, which organization admins see in list_organization_projects. |
createdAt | string (date-time) | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z. |
Headers it sends: ETag.
Errors
#| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_id | The id is for a different kind of resource |
| 400 | invalid_idempotency_key | The Idempotency-Key header is not valid |
| 403 | insufficient_scope | The credential lacks the required access |
| 403 | forbidden_role | Your role does not allow this |
| 404 | not_found | Not found |
| 412 | version_conflict | The resource changed since you read it |
| 413 | payload_too_large | The request body is too large |
| 415 | unsupported_media_type | Unsupported media type |
| 428 | precondition_required | A version is required |
And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.
Example
#curl -X PATCH https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 \
-H "Authorization: Bearer $TASKLOADER_API_KEY" \
-H "Content-Type: application/json" \
-H 'If-Match: "3"' \
-d '{"name":"Website relaunch"}'const response = await fetch('https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
'Content-Type': 'application/json',
'If-Match': '"3"',
},
body: JSON.stringify({ name: 'Website relaunch' }),
});
if (!response.ok) {
const problem = await response.json();
throw new Error(`${problem.code}: ${problem.detail}`);
}
const project = await response.json();import os
import requests
response = requests.patch(
"https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
headers={
"Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
"Content-Type": "application/json",
"If-Match": '"3"',
},
json={"name": "Website relaunch"},
timeout=30,
)
if not response.ok:
problem = response.json()
raise RuntimeError(f"{problem['code']}: {problem['detail']}")
project = response.json()HTTP/1.1 200 OK
Content-Type: application/json
ETag: "4"
{
"object": "project",
"id": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"organization": {
"id": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"name": "Northwind",
"slug": "northwind"
},
"name": "Website relaunch",
"slug": "website-relaunch",
"ref": "northwind/website-relaunch",
"url": "https://taskloader.com/northwind/website-relaunch",
"description": "Everything for the new website, from copy to launch day.",
"version": 4,
"archived": false,
"currentMember": {
"memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"role": "admin"
},
"createdAt": "2026-09-14T08:30:00.000Z"
}When the version is stale:
HTTP/1.1 412 Precondition Failed
Content-Type: application/problem+json
ETag: "5"
{
"type": "https://taskloader.com/docs/api/errors#version_conflict",
"title": "The resource changed since you read it",
"status": 412,
"code": "version_conflict",
"detail": "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.",
"instance": "/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"requestId": "req_0K7ZQ4M9TN2V6B8C1D3E5F7G9H",
"currentVersion": 5,
"current": {
"object": "project",
"id": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"organization": {
"id": "org_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"name": "Northwind",
"slug": "northwind"
},
"name": "Website relaunch",
"slug": "website-relaunch",
"ref": "northwind/website-relaunch",
"url": "https://taskloader.com/northwind/website-relaunch",
"description": "Everything for the new website, from copy to launch day.",
"version": 5,
"archived": false,
"currentMember": {
"memberId": "mem_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"role": "admin"
},
"createdAt": "2026-09-14T08:30:00.000Z"
}
}Leave a project
#Takes you out of a project; your tasks there become unassigned.
POST /api/v1/projects/{projectId}/leave- Scopes:
projects:write - Who: Viewer or above in the project, except the owner
- Project-limited credentials: allowed inside the credential’s projects; anything else is
not_found - Retries: send
Idempotency-Keyto make retries safe - Rate limit: the
writebucket - MCP tool:
remove_member
You leave the project. Your tasks in it become unassigned, each with a line in its history, and tasksUnassigned says how many. Your conversations with Taskloader’s assistant in it are deleted. Its owner cannot leave (owner_immutable). To take someone else out, use remove_project_member. Send an Idempotency-Key to retry safely: without one, a retry after success answers 404, since you are no longer in the project.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
projectId | path | id (prj_…) | Yes | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
Idempotency-Key | header | string | No | Makes a retry safe: the same key with the same request within 24 hours returns the first answer (with Idempotent-Replayed: true) instead of acting twice. 1 to 255 printable ASCII characters; a UUID works well. Keys belong to the credential that sent them. |
Response
#200 with a membership object.
| Field | Type | Description |
|---|---|---|
object | "membership" | |
projectId | id (prj_…) | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
left | true | |
tasksUnassigned | integer, at least 0 | How many of your tasks in the project are now unassigned. |
Headers it sends: Idempotent-Replayed.
Errors
#| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_id | The id is for a different kind of resource |
| 400 | invalid_idempotency_key | The Idempotency-Key header is not valid |
| 403 | insufficient_scope | The credential lacks the required access |
| 404 | not_found | Not found |
| 409 | idempotency_key_in_progress | The original request is still running |
| 413 | payload_too_large | The request body is too large |
| 415 | unsupported_media_type | Unsupported media type |
| 422 | owner_immutable | The owner cannot be changed |
| 422 | idempotency_key_reused | The Idempotency-Key was used for another request |
And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.
Example
#curl -X POST https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/leave \
-H "Authorization: Bearer $TASKLOADER_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"const response = await fetch('https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/leave', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
},
});
if (!response.ok) {
const problem = await response.json();
throw new Error(`${problem.code}: ${problem.detail}`);
}
const project = await response.json();import os
import uuid
import requests
response = requests.post(
"https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/leave",
headers={
"Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
timeout=30,
)
if not response.ok:
problem = response.json()
raise RuntimeError(f"{problem['code']}: {problem['detail']}")
project = response.json()HTTP/1.1 200 OK
Content-Type: application/json
{
"object": "membership",
"projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"left": true,
"tasksUnassigned": 2
}