For the complete documentation index, see llms.txt. This page is also available as Markdown.

Action API v2 Reference

The Action API v2 sends each operation as a POST to a named endpoint. Read the calls, limits and errors, then make your first call.

The Action API v2 is an action-based API. Each operation sends a JSON body with POST to a named endpoint.

It is not a REST API. It has no GET /workspaces or PUT /tasks/{id} endpoints.

Three parts use REST-style endpoints: media downloads, bundle downloads, and webhook registration.

To make your first call now, save a token as shown in Before you start. Then run the listMyProjects call in Calling convention.

v2 is in beta (2.0.0-beta) and runs alongside v1. It adds promptAgent and signed webhook registration.

In v2, you can create, change and delete tasks.

Content: createTask, updateTask, deleteTask, moveTask, completeTask, uncompleteTask.

Metadata: assignTask, unassignTask, setTaskDate, deleteTaskDate, setTaskNote, deleteTaskNote, setTaskFieldValue, deleteTaskFieldValue.

v1 is the older and more stable API. Only v1 reads a single task, at GET /projects/{projectId}/tasks/{taskId}.

v2 renames, archives, and exports a project with renameProject, archiveProject, and exportProject. Neither version deletes a project. See Choose an API.

Taskade publishes the live OpenAPI spec at taskade.com/api/documentation/v2.

Before you start

  • A Taskade account with a verified email address.

  • A personal access token from taskade.com/settings/api, or an OAuth 2.0 access token. See Authentication.

  • curl in a terminal. The tabbed examples also show Python 3 with requests and TypeScript on Node.js 18 or later.

Save the token in your terminal. Every example on this page reads it from TASKADE_TOKEN:


Choose an API

Taskade has two public HTTP APIs. Both use the same authentication.

REST API v1

Action API v2

Base URL

https://www.taskade.com/api/v1

https://www.taskade.com/api/v2

Style

RESTful: GET, POST, PUT, DELETE

Action / RPC: POST /{operation}

Status

Stable (GA)

Beta (2.0.0-beta)

Task create / update / delete

✅ Full CRUD

✅ Create, update, delete, move

Task assignees / dates / notes / fields

✅

✅

Read a single task, date, note or field

✅ GET …/tasks/{taskId}, …/date, …/note, …/fields/{fieldId}

❌ list-only (listTasks, listBlocks, listFields)

Project rename, archive, or export

❌ (GET /projects/{projectId} is read-only)

✅ renameProject, archiveProject, exportProject

Project delete

❌

❌

Prompt an agent

❌

✅ promptAgent

Agent lifecycle (create/update/delete)

✅

✅

Bundles (export/import Taskade Genesis apps)

✅

✅

Signed webhook registration

❌

✅ POST /webhooks

Reference

This page

The v2 task operations are createTask, updateTask, deleteTask and moveTask, plus assignTask, setTaskDate, setTaskNote, setTaskFieldValue and more.

Use v2 for LLM tools, agent prompts, or webhook registration. Each endpoint does one action, so each endpoint maps to one tool definition.

Use v1 when you need the more stable API. Also use v1 to read one task, date, note, or field directly, with GET /projects/{projectId}/tasks/{taskId} and its /date, /note and /fields/{fieldId} sub-paths.

Each row in this table comes from the two live OpenAPI documents. Taskade builds the Action API reference and the REST API reference from the same specs.


Base URL and authentication

All v2 operations use this base URL:

Send your token in the Authorization header. Use a personal access token, or an OAuth 2.0 access token for an app that acts for other users:

See the Authentication guide for personal tokens and OAuth 2.0 with PKCE.


Calling convention

Every v2 call sends a JSON body with POST to an operation name. The API returns JSON.

A successful response has "ok": true. A list operation adds an items array, and a single-item operation adds an item object.

This diagram shows one Action API v2 call, from authentication to the JSON response.

The call below lists the projects that your account can open. It needs no IDs:

Receiving events: Register a signed outbound webhook with POST /api/v2/webhooks.

Taskade signs every delivery with an HMAC secret. Make sure that each signature is valid.

See the Webhook Registration API. The older subscribeWebhook and unsubscribeWebhook operations are deprecated.


Endpoints

The examples below read IDs from shell variables. Save each ID when a response gives it to you:

List spaces (workspaces)

POST /listSpaces is the first call of most integrations. Send a JSON body. All fields in the body are optional, so send {} when you do not filter.

Response:

To filter by name, send { "filterBy": { "name": { "operator": "contains", "value": "Marketing" } } }.


List folders in a space

POST /listFolders returns { ok, items: [{ id, name }] }.


List projects in a space

POST /listProjects takes { spaceId, completed? } and returns { ok, items: [{ id, name?, icon?, completed?, archived?, color?, tags? }] }. Set completed to false to list only open projects, or to true to list only completed projects. Leave it out to list both. Archived projects are not in the list.


Get a project

POST /getProject returns { ok, item: { id, name?, icon?, completed?, archived?, color?, tags? } }.


Create a project

POST /createProject creates a project from Markdown content.

Response:


List tasks

POST /listTasks returns tasks in pages. Use the after and before cursors to move between pages. Each task is { id, text, parentId?, completed }. Set completed to false to list only open tasks, or to true to list only completed tasks. The cursors and limit apply to the filtered list.

Response:

v2 reads and writes tasks.

To change a task, see createTask, updateTask, and moveTask.

To set metadata, see assignTask, setTaskDate, setTaskNote, and setTaskFieldValue.

To read one task, use the REST API v1 Tasks endpoints.

If an eligible workspace connects Google Calendar, dates from setTaskDate can sync like dates that you set in Taskade.


Prompt an agent

POST /promptAgent sends one prompt to a workspace agent. The endpoint returns a synchronous text response. Only v2 has this operation.

Each call uses AI credits from the workspace, the same as an agent chat in the app. If the workspace has no AI credits left, the call fails before the agent runs.

Response:

If the agent is not in that space, the call returns 404:

To list past conversations, use POST /listConversations with { agentId, limit?, page? }.

To read one, use POST /getConversation with { agentId, convoId, includeTranscript? }.

Pass "includeTranscript": true to add a Markdown transcript field to the response.


Manage agents

Operation
Body

POST /listAgents

{ spaceId, filterBy? }

POST /getAgent

{ agentId }

POST /createAgent

{ folderId, name, data }

POST /updateAgent

{ agentId, name?, data? }

POST /deleteAgent

{ agentId }

POST /generateAgent

{ folderId, text } - generate an agent from a description

POST /enablePublicAgentAccess

{ agentId } → { ok, publicUrl }


Attach knowledge to an agent

POST /addKnowledgeProject adds a project to the knowledge of an agent. removeKnowledgeProject, addKnowledgeMedia and removeKnowledgeMedia work the same way.

The response returns the updated agent as { ok, item: { id, name, space_id, data } }.


Export / import a bundle

POST /exportBundle returns a portable Taskade Genesis app bundle. POST /importBundle installs one. Export needs the Pro plan or higher.

See Bundles & App Kits for the full schema, the binary .tsk variants, and the plan errors.

The response is { "ok": true, "item": { "version": "1", "items": { ... } } }.


Full operation list

  • Workspaces & structure: listSpaces, listFolders, listMyProjects, listTemplates, listMedia.

  • Projects: listProjects, getProject, createProject, createProjectFromTemplate, copyProject, completeProject, restoreProject, archiveProject, renameProject, exportProject, listBlocks, listFields, listProjectMembers, getShareLink, enableShareLink.

  • Tasks, content: listTasks, createTask, updateTask, deleteTask, moveTask, completeTask, uncompleteTask.

  • Tasks, metadata: assignTask, unassignTask, setTaskDate, deleteTaskDate, setTaskNote, deleteTaskNote, setTaskFieldValue, deleteTaskFieldValue.

  • Agents, lifecycle: listAgents, getAgent, createAgent, updateAgent, deleteAgent, promptAgent, generateAgent.

  • Agents, conversations: listConversations, getConversation.

  • Agents, knowledge: addKnowledgeProject, removeKnowledgeProject, addKnowledgeMedia, removeKnowledgeMedia.

  • Agents, public access: enablePublicAgentAccess, getPublicAgent, updatePublicAgent.

  • Media: uploadMedia, getMedia, deleteMedia, plus GET /media/{mediaId}/content and GET /media/spaces/{spaceId}/content for downloads.

  • Bundles: exportBundle, importBundle, importBundleZip, plus GET /bundles/{spaceId}/export/zip.

  • Webhooks: POST /webhooks, GET /webhooks, GET /webhooks/{id}, DELETE /webhooks/{id}. See Webhooks. subscribeWebhook and unsubscribeWebhook are deprecated.

The live v2 spec always has the complete, current list.


Pagination

listTasks and listBlocks use cursor pagination with after and before. listProjectMembers, listConversations, listMyProjects, listMedia, and listTemplates use page pagination with page and limit.


Rate limits

Each response with a rate limit shows the current budget in two sets of headers. Header names are not case-sensitive:

Header
Meaning

RateLimit-Limit and X-Rate-Limit-Limit

Your total budget for the current window

RateLimit-Remaining and X-Rate-Limit-Remaining

Requests left in the window (0 when you are blocked)

RateLimit-Reset

Whole seconds until the window reopens

X-Rate-Limit-Reset

Seconds until the window reopens. This value can be fractional

Retry-After

Sent on a 429 response only. Whole seconds to wait before you retry

v2 operations share one budget for each IP address with all other public API requests. The budget is 40 requests per 60 seconds for each IP address, as the live v2 spec states. Taskade can change it without a docs release. Read the headers for the live values.

A 429 response carries Retry-After, in whole seconds. Wait that number of seconds before you retry. The API also rejects a retry that comes earlier.

To send many requests over a long time, do these steps:

  • Send items in batches. For example, /createTask takes a tasks array.

  • Poll less frequently.

  • Start scheduled jobs at different times.


Errors

Every error response has ok: false, message, code, and statusMessage. A missing or wrong token returns 401:

A schema validation failure returns 400 with code: "FST_ERR_VALIDATION" and the same four fields. Its message names each field that failed, then the reason.

Branch on ok and code. Do not parse the human-readable message.

Fix common errors

What you see
Status
Retry?
Fix

"code": "FST_ERR_VALIDATION"

400

No

Read message, fix each field that it names, then send the request again

"code": "BAD_REQUEST"

400

No

Read message and correct the request body

"code": "UNAUTHORIZED"

401

No

Send Authorization: Bearer $TASKADE_TOKEN, or refresh the OAuth access token

"code": "PAYMENT_REQUIRED"

402

No

Upgrade the plan. If the body has featureId, it names the missing entitlement

"code": "FORBIDDEN"

403

No

Use an account with the correct role in that workspace

"message": "Agent not found" with "code": "NOT_FOUND"

404

No

Make sure that the ID and the spaceId are correct

"code": "TOO_MANY_REQUESTS"

429

Yes

Wait for the number of seconds in the Retry-After header, then retry

5xx status

5xx

Yes

Retry up to 3 times with backoff


Security best practices

  • Never commit tokens. Use environment variables or a secret manager.

  • Use OAuth, not personal tokens, for multi-user applications.

  • Replace personal tokens at regular intervals. You can have up to 5 at a time.

  • Encrypt stored refresh tokens. They stay valid for a long time.

Next steps


This page is also published at taskade.com/docs/getting-started/action-api-guide.

Last updated