API reference
Assistant
Questions to Taskloader’s assistant about a project. Endpoints, parameters, examples and errors.
On this page
Questions to Taskloader’s assistant about a project. ask_assistant answers 202 at once; read the answer with get_assistant_message (its wait returns as soon as it is ready). Changes the assistant suggests are made only when you call apply_assistant_changes.
More in Assistant from code.
Ask the assistant
#Asks Taskloader’s assistant a question about a project; the answer follows.
POST /api/v1/projects/{projectId}/assistant/questions- Scopes:
assistant,projects:read,tasks:read - Who: Viewer or above in the project
- 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, and theassistantcap (at most 30 in any hour, at most 15 at once, per credential) - MCP tool:
ask_assistant
Asks the assistant a question about one project, in a new conversation or, with threadId, as a follow-up. Answers 202 at once with the queued answer, its Location and Retry-After: 2; read it with get_assistant_message (wait up to 25 s returns as soon as it is ready). The answer reads the project as you, so asking needs projects:read and tasks:read besides assistant; without files:read it reads no file names, nor hears earlier answers in the conversation that did. The question and the project’s data go to Taskloader’s AI provider. Answers count toward the person’s 60 questions an hour across every app, and one API key or connected app can ask at most 30 an hour (15 at once). A viewer’s answers never propose changes. today (or timeZone) makes "this week" and "overdue" the asker’s; taskKey says which task they have open. Send an Idempotency-Key so a retry never asks twice.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
projectId | path | id (prj_…) | Yes | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
Idempotency-Key | header | string | No | Makes a retry safe: the same key with the same request within 24 hours returns the first answer (with Idempotent-Replayed: true) instead of acting twice. 1 to 255 printable ASCII characters; a UUID works well. Keys belong to the credential that sent them. |
Request body
#A JSON object. Fields not listed are refused.
| Field | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The question, 1–4,000 characters of plain text (line breaks and tabs are fine; other control characters are not), for example "What is overdue this week?". |
threadId | id (thr_…) | No | Ask in this conversation (thr_…); a new one starts when left out. |
today | date (YYYY-MM-DD) | No | The asker’s date (YYYY-MM-DD), within a day of the UTC date. |
timeZone | string | No | Your IANA time zone, for example Europe/Berlin, when today is not given. Up to 64 characters. |
taskKey | string | No | Only the key of the task the asker has open, for example TL-012, so "this task" is clear; not a ref or URL (the project is the one this question is about). |
Response
#202 with an AssistantMessage object. Location is its address. The work goes on after the answer: read it again after Retry-After seconds.
| Field | Type | Description |
|---|---|---|
object | "assistant_message" | |
id | id (msg_…) | Assistant message id: msg_ followed by 32 lowercase hex digits, for example msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
threadId | id (thr_…) | Assistant thread id: thr_ followed by 32 lowercase hex digits, for example thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
projectId | id (prj_…) | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
role | "user" or "assistant" | A question (user) or an answer (assistant). |
status | "queued" or "running" or "ready" or "failed" | Answers are queued, then running, then ready or failed. Questions are ready. |
steps | array of string | What the assistant did while answering, for example "Counted open tasks". |
question | object or null | Set on questions. |
answer | object or null | Set on ready answers. |
proposal | object or null | Changes the answer proposes. Nothing changes until someone applies them. |
error | string or null | Why a failed answer did not finish. |
model | string or null | |
usage | object or null | Tokens the answer used. |
createdAt | string (date-time) | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z. |
completedAt | string (date-time) or null |
Headers it sends: Location, Retry-After, 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 | assistant_busy | The assistant is busy |
| 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 | assistant_hourly_limit | Assistant limit reached |
| 503 | assistant_unavailable | The assistant is not available |
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/assistant/questions \
-H "Authorization: Bearer $TASKLOADER_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"text":"What is overdue this week?"}'const response = await fetch('https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/assistant/questions', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({ text: 'What is overdue this week?' }),
});
if (!response.ok) {
const problem = await response.json();
throw new Error(`${problem.code}: ${problem.detail}`);
}
const assistant = await response.json();import os
import uuid
import requests
response = requests.post(
"https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/assistant/questions",
headers={
"Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
"Content-Type": "application/json",
"Idempotency-Key": str(uuid.uuid4()),
},
json={"text": "What is overdue this week?"},
timeout=30,
)
if not response.ok:
problem = response.json()
raise RuntimeError(f"{problem['code']}: {problem['detail']}")
assistant = response.json()HTTP/1.1 202 Accepted
Content-Type: application/json
Location: /api/v1/assistant/messages/msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718
Retry-After: 2
{
"object": "assistant_message",
"id": "msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"threadId": "thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"role": "assistant",
"status": "queued",
"steps": [],
"question": null,
"answer": null,
"proposal": null,
"error": null,
"model": "openai/gpt-6-luna",
"usage": null,
"createdAt": "2026-11-18T10:00:00.123Z",
"completedAt": null
}List assistant conversations
#Lists your conversations with the assistant in a project, latest first.
GET /api/v1/projects/{projectId}/assistant/threads- Scopes:
assistant,projects:read,tasks: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 - MCP tool:
list_assistant_threads
Lists your own conversations with the assistant in one project, the most recently active first (its latest question or answer), a page at a time (up to 100). Each names its latest answer (latestAnswer.id, for get_assistant_message) and what became of the changes it proposes. Conversations are private to the person who started them. Like asking, listing them needs projects:read and tasks:read besides assistant; reading an answer that read file names needs files:read too.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
projectId | path | id (prj_…) | Yes | Project id: prj_ followed by 32 lowercase hex digits, for example prj_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 AssistantThread 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 AssistantThread |
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/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/assistant/threads \
-H "Authorization: Bearer $TASKLOADER_API_KEY"const response = await fetch('https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/assistant/threads', {
headers: {
Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
},
});
if (!response.ok) {
const problem = await response.json();
throw new Error(`${problem.code}: ${problem.detail}`);
}
const assistantThreads = await response.json();import os
import requests
response = requests.get(
"https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/assistant/threads",
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']}")
assistant_threads = response.json()HTTP/1.1 200 OK
Content-Type: application/json
{
"object": "list",
"data": [
{
"object": "assistant_thread",
"id": "thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"title": "What is overdue this week?",
"createdAt": "2026-11-18T10:00:00.123Z",
"updatedAt": "2026-11-18T10:00:09.456Z",
"latestAnswer": {
"id": "msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"status": "ready",
"proposalStatus": "pending"
}
}
],
"hasMore": false,
"nextCursor": null
}Get an assistant conversation
#Returns one of your conversations with its latest 20 messages.
GET /api/v1/assistant/threads/{threadId}- Scopes:
assistant,projects:read,tasks:read - Who: The person who started the conversation
- 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 one of your own conversations with its latest 20 messages, oldest first. When there are earlier ones, messagesCursor reads them with list_assistant_messages (order=newest). Like asking, reading answers needs projects:read and tasks:read besides assistant. Answers that read file names (every answer to a question asked in Taskloader) are left out without files:read.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
threadId | path | id (thr_…) | Yes | Assistant thread id: thr_ followed by 32 lowercase hex digits, for example thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
Response
#200 with an AssistantThreadDetail object.
| Field | Type | Description |
|---|---|---|
object | "assistant_thread" | |
id | id (thr_…) | Assistant thread id: thr_ followed by 32 lowercase hex digits, for example thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
projectId | id (prj_…) | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
title | string | The first line of the first question. |
createdAt | string (date-time) | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z. |
updatedAt | string (date-time) | When the conversation last changed: its latest question or answer. |
latestAnswer | object or null | The latest answer: read it with get_assistant_message (id), with any changes it proposes. |
messages | array of AssistantMessage | The latest 20 messages, oldest first. |
messagesCursor | string or null | When there are earlier messages: pass it as cursor to list_assistant_messages with order=newest to read them, newest first. |
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/assistant/threads/thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 \
-H "Authorization: Bearer $TASKLOADER_API_KEY"const response = await fetch('https://taskloader.com/api/v1/assistant/threads/thr_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 assistantThread = await response.json();import os
import requests
response = requests.get(
"https://taskloader.com/api/v1/assistant/threads/thr_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']}")
assistant_thread = response.json()HTTP/1.1 200 OK
Content-Type: application/json
{
"object": "assistant_thread",
"id": "thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"title": "What is overdue this week?",
"createdAt": "2026-11-18T10:00:00.123Z",
"updatedAt": "2026-11-18T10:00:09.456Z",
"latestAnswer": {
"id": "msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"status": "ready",
"proposalStatus": "pending"
},
"messages": [
{
"object": "assistant_message",
"id": "msg_1b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"threadId": "thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"role": "user",
"status": "ready",
"steps": [],
"question": {
"text": "What is overdue this week?"
},
"answer": null,
"proposal": null,
"error": null,
"model": null,
"usage": null,
"createdAt": "2026-11-18T10:00:00.123Z",
"completedAt": "2026-11-18T10:00:00.123Z"
},
{
"object": "assistant_message",
"id": "msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"threadId": "thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"role": "assistant",
"status": "ready",
"steps": [
"Read the project",
"Counted overdue tasks",
"Wrote the answer"
],
"question": null,
"answer": {
"title": null,
"report": false,
"blocks": [
{
"type": "text",
"markdown": "Two tasks are overdue. TL-012 is the one to unblock first."
},
{
"type": "metrics",
"items": [
{
"label": "Overdue",
"value": 2,
"tone": "risk"
}
]
}
],
"suggestions": [
"Who has the most open tasks?"
],
"asOf": "2026-11-18T10:00:09.456Z"
},
"proposal": {
"summary": "Move the launch announcement forward",
"status": "pending",
"digest": "fypj2kPMwmILmn_PgaKh7xKt7SHYIPJzRlmmloEhZv0",
"changes": [
{
"index": 0,
"operation": "update_task",
"preview": {
"kind": "update",
"task": {
"number": 12,
"key": "TL-012",
"title": "Write the launch announcement",
"ref": "northwind/website-launch/TL-012"
},
"fields": [
{
"field": "priority",
"from": "Normal",
"to": "High",
"fromValue": "normal",
"toValue": "high"
}
],
"links": []
},
"result": null
}
]
},
"error": null,
"model": "openai/gpt-6-luna",
"usage": {
"inputTokens": 5210,
"outputTokens": 640
},
"createdAt": "2026-11-18T10:00:00.123Z",
"completedAt": "2026-11-18T10:00:09.456Z"
}
],
"messagesCursor": null
}List a conversation’s messages
#Lists the questions and answers of one of your conversations, a page at a time.
GET /api/v1/assistant/threads/{threadId}/messages- Scopes:
assistant,projects:read,tasks:read - Who: The person who started the conversation
- Project-limited credentials: allowed inside the credential’s projects; anything else is
not_found - Retries: a read; safe to repeat
- Rate limit: the
readbucket - MCP tool:
get_assistant_answer
Lists the messages of one of your own conversations, oldest first (or newest first with order=newest), up to 100 a page. A cursor remembers its order, so messagesCursor from get_assistant_thread (newest first) works with or without order=newest. Like asking, reading answers needs projects:read and tasks:read besides assistant. Answers that read file names (every answer to a question asked in Taskloader) are left out without files:read, so a page can hold fewer messages than limit.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
threadId | path | id (thr_…) | Yes | Assistant thread id: thr_ followed by 32 lowercase hex digits, for example thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
order | query | "oldest" or "newest" | No | oldest (the default) reads the conversation in order; newest reads it back. With a cursor, the cursor’s own order when left out. |
limit | query | integer, 1–100 | No | How many to return, 1–100, for example 50. Defaults to 50 (25 over MCP). |
cursor | query | string | No | The nextCursor from the previous page, to read the next one. Leave it out for the first page; start again without it when you change filters. Up to 2,048 characters. |
Response
#200 with a list of AssistantMessage 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 AssistantMessage |
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/assistant/threads/thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/messages?limit=50' \
-H "Authorization: Bearer $TASKLOADER_API_KEY"const response = await fetch('https://taskloader.com/api/v1/assistant/threads/thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/messages?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 assistantMessages = await response.json();import os
import requests
response = requests.get(
"https://taskloader.com/api/v1/assistant/threads/thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/messages",
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']}")
assistant_messages = response.json()HTTP/1.1 200 OK
Content-Type: application/json
{
"object": "list",
"data": [
{
"object": "assistant_message",
"id": "msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"threadId": "thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"role": "assistant",
"status": "ready",
"steps": [
"Read the project",
"Counted overdue tasks",
"Wrote the answer"
],
"question": null,
"answer": {
"title": null,
"report": false,
"blocks": [
{
"type": "text",
"markdown": "Two tasks are overdue. TL-012 is the one to unblock first."
},
{
"type": "metrics",
"items": [
{
"label": "Overdue",
"value": 2,
"tone": "risk"
}
]
}
],
"suggestions": [
"Who has the most open tasks?"
],
"asOf": "2026-11-18T10:00:09.456Z"
},
"proposal": {
"summary": "Move the launch announcement forward",
"status": "pending",
"digest": "fypj2kPMwmILmn_PgaKh7xKt7SHYIPJzRlmmloEhZv0",
"changes": [
{
"index": 0,
"operation": "update_task",
"preview": {
"kind": "update",
"task": {
"number": 12,
"key": "TL-012",
"title": "Write the launch announcement",
"ref": "northwind/website-launch/TL-012"
},
"fields": [
{
"field": "priority",
"from": "Normal",
"to": "High",
"fromValue": "normal",
"toValue": "high"
}
],
"links": []
},
"result": null
}
]
},
"error": null,
"model": "openai/gpt-6-luna",
"usage": {
"inputTokens": 5210,
"outputTokens": 640
},
"createdAt": "2026-11-18T10:00:00.123Z",
"completedAt": "2026-11-18T10:00:09.456Z"
}
],
"hasMore": false,
"nextCursor": null
}Get an assistant message
#Returns a question or an answer; with wait, holds until the answer is ready.
GET /api/v1/assistant/messages/{messageId}- Scopes:
assistant,projects:read,tasks:read - Who: The person who started the conversation
- Project-limited credentials: allowed inside the credential’s projects; anything else is
not_found - Retries: a read; safe to repeat
- Rate limit: the
searchbucket - MCP tool:
get_assistant_answer
Returns one message of your own conversation: a question, or an answer with its steps, blocks (text, metrics, charts, task lists, callouts, tables, every number computed by Taskloader), suggestions, proposed changes and token usage. With wait (0–25 seconds) the request holds until the answer is ready or failed, re-reading every half second, and returns as soon as it is. While it is queued or running the response carries Retry-After: 2. Like asking, reading answers needs projects:read and tasks:read besides assistant. An answer can quote anything it read, so one that read file names (every answer to a question asked in Taskloader) also needs files:read, else insufficient_scope.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
messageId | path | id (msg_…) | Yes | Assistant message id: msg_ followed by 32 lowercase hex digits, for example msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
wait | query | integer, 0–25 | No | Seconds to wait for the answer to finish, 0–25; it returns as soon as it does. Over MCP up to 20, and 20 when left out. |
Response
#200 with an AssistantMessage object.
| Field | Type | Description |
|---|---|---|
object | "assistant_message" | |
id | id (msg_…) | Assistant message id: msg_ followed by 32 lowercase hex digits, for example msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
threadId | id (thr_…) | Assistant thread id: thr_ followed by 32 lowercase hex digits, for example thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
projectId | id (prj_…) | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
role | "user" or "assistant" | A question (user) or an answer (assistant). |
status | "queued" or "running" or "ready" or "failed" | Answers are queued, then running, then ready or failed. Questions are ready. |
steps | array of string | What the assistant did while answering, for example "Counted open tasks". |
question | object or null | Set on questions. |
answer | object or null | Set on ready answers. |
proposal | object or null | Changes the answer proposes. Nothing changes until someone applies them. |
error | string or null | Why a failed answer did not finish. |
model | string or null | |
usage | object or null | Tokens the answer used. |
createdAt | string (date-time) | RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z. |
completedAt | string (date-time) or null |
Headers it sends: Retry-After.
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/assistant/messages/msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718?wait=25' \
-H "Authorization: Bearer $TASKLOADER_API_KEY"const response = await fetch('https://taskloader.com/api/v1/assistant/messages/msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718?wait=25', {
headers: {
Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
},
});
if (!response.ok) {
const problem = await response.json();
throw new Error(`${problem.code}: ${problem.detail}`);
}
const assistantMessage = await response.json();import os
import requests
response = requests.get(
"https://taskloader.com/api/v1/assistant/messages/msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
params={"wait": "25"},
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']}")
assistant_message = response.json()HTTP/1.1 200 OK
Content-Type: application/json
{
"object": "assistant_message",
"id": "msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"threadId": "thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"role": "assistant",
"status": "ready",
"steps": [
"Read the project",
"Counted overdue tasks",
"Wrote the answer"
],
"question": null,
"answer": {
"title": null,
"report": false,
"blocks": [
{
"type": "text",
"markdown": "Two tasks are overdue. TL-012 is the one to unblock first."
},
{
"type": "metrics",
"items": [
{
"label": "Overdue",
"value": 2,
"tone": "risk"
}
]
}
],
"suggestions": [
"Who has the most open tasks?"
],
"asOf": "2026-11-18T10:00:09.456Z"
},
"proposal": {
"summary": "Move the launch announcement forward",
"status": "pending",
"digest": "fypj2kPMwmILmn_PgaKh7xKt7SHYIPJzRlmmloEhZv0",
"changes": [
{
"index": 0,
"operation": "update_task",
"preview": {
"kind": "update",
"task": {
"number": 12,
"key": "TL-012",
"title": "Write the launch announcement",
"ref": "northwind/website-launch/TL-012"
},
"fields": [
{
"field": "priority",
"from": "Normal",
"to": "High",
"fromValue": "normal",
"toValue": "high"
}
],
"links": []
},
"result": null
}
]
},
"error": null,
"model": "openai/gpt-6-luna",
"usage": {
"inputTokens": 5210,
"outputTokens": 640
},
"createdAt": "2026-11-18T10:00:00.123Z",
"completedAt": "2026-11-18T10:00:09.456Z"
}Delete an assistant conversation
#Deletes one of your conversations with all its messages.
DELETE /api/v1/assistant/threads/{threadId}- Scopes:
assistant - Who: The person who started the conversation
- Project-limited credentials: allowed inside the credential’s projects; anything else is
not_found - Retries: naturally idempotent: repeating it changes nothing more
- Rate limit: the
writebucket - MCP tool:
delete_assistant_thread
Deletes one of your own conversations with every question, answer and unapplied proposal in it. It cannot be undone. Questions already asked still count toward the hourly limit. While changes it proposed are being applied, it answers 409 assistant_busy with the answer’s messageId and deletes nothing: delete it once they are done. Needs only assistant; the answer gives the conversation’s title (the start of its first question) only to a credential that may read conversations (projects:read and tasks:read), and null to any other.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
threadId | path | id (thr_…) | Yes | Assistant thread id: thr_ followed by 32 lowercase hex digits, for example thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
Response
#200 with an assistant_thread object.
| Field | Type | Description |
|---|---|---|
object | "assistant_thread" | |
id | id (thr_…) | Assistant thread id: thr_ followed by 32 lowercase hex digits, for example thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
title | string or null | The conversation’s title (the start of its first question); null for a credential without projects:read and tasks:read, which reading conversations needs. |
deleted | true |
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 | assistant_busy | The assistant is busy |
| 413 | payload_too_large | The request body is too large |
| 415 | unsupported_media_type | Unsupported media type |
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 DELETE https://taskloader.com/api/v1/assistant/threads/thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718 \
-H "Authorization: Bearer $TASKLOADER_API_KEY"const response = await fetch('https://taskloader.com/api/v1/assistant/threads/thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
},
});
if (!response.ok) {
const problem = await response.json();
throw new Error(`${problem.code}: ${problem.detail}`);
}
const assistantThread = await response.json();import os
import requests
response = requests.delete(
"https://taskloader.com/api/v1/assistant/threads/thr_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']}")
assistant_thread = response.json()HTTP/1.1 200 OK
Content-Type: application/json
{
"object": "assistant_thread",
"id": "thr_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"title": "What is overdue this week?",
"deleted": true
}Apply assistant changes
#Applies chosen changes an answer proposed, once, and returns each result.
POST /api/v1/assistant/messages/{messageId}/proposal/apply- Scopes:
assistant - Who: Editor or above in the project, in their own conversation
- 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:
apply_assistant_changes
Applies the changes of an answer’s proposal chosen by their index (1 to 40 distinct indexes), in order, as you: each runs as the operation it names (create_task, update_task, …), recorded in history as applied through the assistant. Needs assistant and every chosen change’s own scopes (checked first), and an editor’s role in your own conversation’s project. A change is left as it is (version_conflict) when the fields it edits or moves changed since it was proposed (edits to other fields do not block it), when the task it deletes changed at all, or when a checklist item it names was renamed; a vanished checklist item is checklist_item_not_found. Taskloader then fetches the pages new tasks and edits link to (links), for previews. A result that changed a task has its ref and new version; without tasks:read, no result names its task. A proposal can be applied once: changes left out cannot be applied later, and afterwards (or while it is being applied, or after a dismissal) this answers proposal_closed, as when proposalDigest no longer matches. An answer still being written answers assistant_busy, and one that proposes no changes validation_failed. A retry with the same Idempotency-Key answers 409 idempotency_key_in_progress until every chosen change has a result, then the results. A 503 service_unavailable means Taskloader finishes the changes on its own within a minute or two: then read the answer for each result; never apply them again.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
messageId | path | id (msg_…) | Yes | Assistant message id: msg_ followed by 32 lowercase hex digits, for example msg_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 |
|---|---|---|---|
changes | array of integer, 0–39 | Yes | The indexes of the changes to apply, each once, for example [0, 2]. Up to 40 items. At least 1 item. |
proposalDigest | string | No | The proposal.digest of the answer the person reviewed. Send it: nothing is applied (proposal_closed) unless the proposed changes are still exactly those. Up to 64 characters. |
Response
#200 with an AssistantProposalResult object.
| Field | Type | Description |
|---|---|---|
object | "proposal_result" | |
messageId | id (msg_…) | Assistant message id: msg_ followed by 32 lowercase hex digits, for example msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
status | "applied" | Always applied: every chosen change has its result. A retry with the same Idempotency-Key while the changes are still being applied answers 409 idempotency_key_in_progress. |
results | array of object | One per chosen change that finished, in index order. |
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 |
| 403 | forbidden_role | Your role does not allow this |
| 404 | not_found | Not found |
| 409 | proposal_closed | The proposed changes are closed |
| 409 | assistant_busy | The assistant is busy |
| 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 |
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/assistant/messages/msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/proposal/apply \
-H "Authorization: Bearer $TASKLOADER_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"changes": [
0
],
"proposalDigest": "fypj2kPMwmILmn_PgaKh7xKt7SHYIPJzRlmmloEhZv0"
}'const response = await fetch('https://taskloader.com/api/v1/assistant/messages/msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/proposal/apply', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
changes: [0],
proposalDigest: 'fypj2kPMwmILmn_PgaKh7xKt7SHYIPJzRlmmloEhZv0',
}),
});
if (!response.ok) {
const problem = await response.json();
throw new Error(`${problem.code}: ${problem.detail}`);
}
const assistantChanges = await response.json();import os
import uuid
import requests
response = requests.post(
"https://taskloader.com/api/v1/assistant/messages/msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/proposal/apply",
headers={
"Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
"Content-Type": "application/json",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"changes": [0],
"proposalDigest": "fypj2kPMwmILmn_PgaKh7xKt7SHYIPJzRlmmloEhZv0",
},
timeout=30,
)
if not response.ok:
problem = response.json()
raise RuntimeError(f"{problem['code']}: {problem['detail']}")
assistant_changes = response.json()HTTP/1.1 200 OK
Content-Type: application/json
{
"object": "proposal_result",
"messageId": "msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"status": "applied",
"results": [
{
"index": 0,
"ok": true,
"ref": "northwind/website-launch/TL-012",
"version": 4
}
]
}Dismiss assistant changes
#Leaves an answer’s proposed changes unapplied, for good.
POST /api/v1/assistant/messages/{messageId}/proposal/dismiss- Scopes:
assistant - Who: The person who started the conversation
- 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:
dismiss_assistant_changes
Dismisses the changes an answer proposed, so none of them can be applied. A proposal that was already applied, is being applied or was dismissed answers proposal_closed; an answer still being written answers assistant_busy, and one that proposes no changes validation_failed.
Parameters
#| Name | In | Type | Required | Description |
|---|---|---|---|---|
messageId | path | id (msg_…) | Yes | Assistant message id: msg_ followed by 32 lowercase hex digits, for example msg_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 proposal object.
| Field | Type | Description |
|---|---|---|
object | "proposal" | |
messageId | id (msg_…) | Assistant message id: msg_ followed by 32 lowercase hex digits, for example msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718. |
status | "dismissed" |
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 | proposal_closed | The proposed changes are closed |
| 409 | assistant_busy | The assistant is busy |
| 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 |
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/assistant/messages/msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/proposal/dismiss \
-H "Authorization: Bearer $TASKLOADER_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"const response = await fetch('https://taskloader.com/api/v1/assistant/messages/msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/proposal/dismiss', {
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 assistantChanges = await response.json();import os
import uuid
import requests
response = requests.post(
"https://taskloader.com/api/v1/assistant/messages/msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/proposal/dismiss",
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']}")
assistant_changes = response.json()HTTP/1.1 200 OK
Content-Type: application/json
{
"object": "proposal",
"messageId": "msg_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
"status": "dismissed"
}