REST API

Use the KanbanWP REST API under kanbanwp/v1: authentication with cookies or application passwords, the main routes, and example curl requests.

All routes use the namespace kanbanwp/v1, for example https://example.com/wp-json/kanbanwp/v1/boards. Request and response bodies are JSON.

Authentication

Most routes need a logged-in WordPress user, and what that user can do depends on their board role.

Cookie and nonce. Code running in the browser while someone is logged in must send the X-WP-Nonce header with a wp_rest nonce. Without it, WordPress treats the request as logged out and returns 401.

Application passwords. For scripts and servers, create an application password under Users → Profile and use HTTP Basic authentication with your username. WordPress only offers application passwords on HTTPS sites, or on local environments.

curl -u "USERNAME:APPLICATION_PASSWORD" \
  https://example.com/wp-json/kanbanwp/v1/boards

The MCP endpoint is separate and uses its own bearer token. See Connecting an agent.

Boards

Method and routePurpose
GET /boardsList every board you can see, with no page limit. Archived boards are left out unless you send include_archived=true (since 1.0.7).
POST /boardsCreate a board. name is required. Optional: description, folder, template.
GET /boards/templatesList board templates.
GET, PUT/PATCH, DELETE /boards/{id}Read, update or delete a board.
POST /boards/{id}/duplicateDuplicate a board. Needs edit rights on the board and the right to create boards (since 1.0.7).
POST /boards/{id}/archiveArchive a board.
GET /boards/{id}/activityRead the board activity feed.

Creating a board needs the kanbanwp_manage capability or the WordPress edit_posts capability.

Stages, tasks and comments

Method and routePurpose
GET, POST /boards/{board_id}/stagesList or create stages (name required).
POST /boards/{board_id}/stages/reorderReorder stages with ordered_ids.
GET, PUT/PATCH, DELETE /stages/{id}Read, update or delete a stage.
GET, POST /boards/{board_id}/tasksList or create tasks (title required). Listing accepts filters such as stage_id, assignee and search, plus orderby (position, due_date, priority, updated_at or title), order (asc or desc), limit (1 to 500, default 200) and offset. Since 1.0.7 an invalid value for these four returns 400. The X-WP-Total header gives the number of matching tasks across all pages. Creating a task with a stage_id from another board fails. Assignees who can’t view the board are left out. Since 1.0.11, creating a task ignores an id in the body.
POST /boards/{board_id}/tasks/bulkBulk actions. Send task_ids and an action: archive, unarchive, delete, move, set_priority, add_label or assign. All actions need edit rights, and delete needs board admin rights. Since 1.0.11, task_ids takes at most 200 IDs, and more returns 400. A move skips tasks that are already in the target stage: their result is skipped, and no activity or notification is created for them.
GET, PUT/PATCH, DELETE /tasks/{id}Read, update or delete a task.
POST /tasks/{id}/moveMove a task. stage_id required, position optional.
POST /tasks/{id}/watchToggle watching a task.
GET, POST /tasks/{task_id}/commentsList or add comments. Since 1.0.11, content can be at most 20,000 characters and mentions at most 50 items. Only the first 50 distinct @mentions in a comment are looked up and notified.
PUT/PATCH, DELETE /comments/{id}Edit or delete a comment. Since 1.0.11, content can be at most 20,000 characters.

Other resources

  • Labels: /boards/{board_id}/labels (GET, POST) and /labels/{id} (GET, PUT/PATCH, DELETE).
  • Members: /boards/{board_id}/members (GET, POST) and /boards/{board_id}/members/{user_id} (PUT/PATCH, DELETE).
  • Saved views: /boards/{board_id}/views and /views/{id}.
  • Webhooks: /boards/{board_id}/webhooks (GET, POST) and /webhooks/{id} (PUT, DELETE). Board ID 0 holds the site-wide webhooks, which only site admins can manage. Each webhook includes created_by, the user ID of its owner. Since 1.0.11, a board can have at most 10 webhooks by default, and the same URL only once. Going over the limit returns kanbanwp_webhook_limit, and a repeated URL returns kanbanwp_webhook_duplicate, both with HTTP 400. See Webhooks.
  • Notifications: GET /notifications, POST /notifications/{id}/read, POST /notifications/read-all.
  • Reports: GET /reports/overview, /reports/workload, /reports/flow.
  • Import: POST /import/trello, /import/csv, /import/json, /import/legacy (needs kanbanwp_manage). Export: GET /export/board/{id}. Since 1.0.11, /import/json restores members, assignees, watchers, comment authors and view owners only when you send restore_users=true and the file comes from this site. The users given a board role are listed in report.members_granted. See Exporting and importing.
  • Linked posts: /tasks/{id}/link-post, /unlink-post, /create-draft, /post, and /post/{id}/task, /post/{id}/create-task.
  • Public links: POST and GET /portal/token (board managers) and GET /portal/board/{id} (token required). The public board response holds the board, its stages, labels and non-internal tasks. Since 1.0.7 it has no member list.
  • AI (all POST, need AI configured and allowed): /ai/text-to-tasks, /breakdown, /summarize, /post-outline, /post-draft, /post-seo, /board-summary, /generate-board, /command, /client-update. Since 1.0.11, text for /ai/text-to-tasks can be at most 20,000 characters, command for /ai/command 2,000 and goal for /ai/generate-board 4,000. Longer input returns 400. A request that would go over the user’s monthly token cap returns 429 with kanbanwp_ai_cap_reached. See Usage and limits.

Examples

Create a task:

curl -u "USERNAME:APPLICATION_PASSWORD" \
  -H "Content-Type: application/json" \
  -d '{"title":"Draft launch post","stage_id":12,"priority":"high"}' \
  https://example.com/wp-json/kanbanwp/v1/boards/3/tasks

Move it to another stage:

curl -u "USERNAME:APPLICATION_PASSWORD" \
  -H "Content-Type: application/json" \
  -d '{"stage_id":14}' \
  https://example.com/wp-json/kanbanwp/v1/tasks/57/move

Errors

Errors use standard HTTP codes: 401 when not logged in, 403 when your board role is too low, 404 when a board or task does not exist, and 400 for missing parameters.

Last updated November 24, 2026

Get KanbanWP updates

Release notes, new features and kanban guides, straight to your inbox. We write when something ships, not on a schedule.