Chuyển tới nội dung chính
Phiên bản: 1.1

API hay dùng — tra cứu

Thay <host>, <spaceId>, <taskId> bằng giá trị thật. Ma trận quyền của từng endpoint: Phân quyền Board.

Task & agent (member+; approve/rework cần admin + human)

ViệcEndpoint
Liệt kê / tạo taskGET·POST /api/tasks?projectId=<spaceId>
Tạo task hàng loạtPOST /api/tasks/batch (kiểm quyền mọi Space tham chiếu)
Chạy / dừng agentPOST /api/tasks/:id/run · POST /api/tasks/:id/stop
Nhắn cho agent đang chạyPOST /api/tasks/:id/message (tab Follow-up)
Ghi checks (lint/test/typecheck)POST /api/tasks/:id/checks
Xem verdict / activities / eventsGET /api/tasks/:id/reviews · .../activities · .../events
Approve / Request ChangesPOST /api/tasks/:id/approve · POST /api/tasks/:id/rework
Dọn worktree bẩnPOST /api/tasks/:id/cleanup-worktree
Archive (thay Delete)PATCH /api/tasks/:id/archive
Quan hệ phụ thuộcPOST /api/tasks/<blocker>/links {"relatedId":"<task>","linkType":"blocks"}
Agent khả dụng trên PATHGET /api/agents

Plan, Group, Template

ViệcEndpoint
Tạo / sửa planPOST·PATCH /api/plans*
Apply Plan (1 transaction)POST /api/plans/:id/apply
Tạo / chạy / dừng GroupPOST /api/groups* · POST /api/groups/:id/run · POST /api/groups/:id/stop
Template dùng lạiGET·POST /api/templates

Space & Wiki

ViệcEndpoint
Tạo Space (người tạo thành owner)POST /api/projects
Sửa / xoá SpacePATCH·DELETE /api/projects/:id (owner)
Quản thành viênGET·POST /api/spaces/:id/members · DELETE /api/spaces/:id/members/:email (owner; 409 nếu xoá owner cuối)
Ghi / duyệt Wiki draftPOST /api/wiki/drafts (member) · POST /api/wiki/drafts/:id/approve / .../reject (admin + human)
Danh tính của tôiGET /api/me (type: human, email)

Cờ tính năng & realtime theo Space

ViệcEndpoint
Xem cờ server đang bật (palette, mention-subtask, auto-retro, ws-topics, …)GET /api/features (trả boolean thuần, không lộ giá trị cấu hình)
Vào / rời phòng realtime của Space qua WebSocket /wsGửi { "type": "subscribe", "spaceId": "<spaceId>" } → nhận { "type": "subscribed", ... }; rời bằng { "type": "unsubscribe", ... }
# Sysadmin kiểm cờ trong container (server là nguồn chân lý, client chỉ đọc)
docker exec agentjira_server sh -c 'env | grep AGENTBOARD_'
curl -s http://<host>/api/features | jq .