API Reference

Complete REST API reference for the barkcli web server. All endpoints require authentication when --token is used.

Board Endpoints

MethodEndpointDescription
GET/api/boardsList all board names
POST/api/boards/createCreate a new board
DELETE/api/boards/:nameDelete a board
GET/api/board?name=Get board YAML
PUT/api/boardSave board YAML

Card Endpoints

MethodEndpointDescription
POST/api/board/cards/:id/commentsAdd comment to card

Memory Endpoints

MethodEndpointDescription
GET/api/memory?q=&tier=&limit=List/search memories
POST/api/memoryAdd memory entry
DELETE/api/memory/:idDelete memory
GET/api/memory/statsMemory statistics
POST/api/memory/factAdd project fact
GET/api/memory/factsList project facts

Specs Endpoints

MethodEndpointDescription
GET/api/specs?name=List specs
POST/api/specsCreate spec
GET/api/specs/:idGet spec details
PUT/api/specs/:idUpdate spec
DELETE/api/specs/:idDelete spec
POST/api/specs/:id/requirementsAdd requirement
PUT/api/specs/:id/requirements/:req_idUpdate requirement
GET/api/specs/:id/traceTraceability view
GET/api/specs/coverageCoverage report
POST/api/specs/scan-staleScan for stale requirements

Checkpoint Endpoints

MethodEndpointDescription
GET/api/checkpointsList checkpoints
POST/api/checkpointsSave checkpoint
POST/api/checkpoints/:id/restoreRestore checkpoint

Undo/Diff/Blame Endpoints

MethodEndpointDescription
POST/api/undoUndo last change
GET/api/diffShow diff from last state
GET/api/blame/:card_idCard change history
POST/api/snapshotSave named snapshot

Import/Export Endpoints

MethodEndpointDescription
GET/api/export?name=&format=Export board (yaml/json)
POST/api/importImport board

Validate/Doctor Endpoints

MethodEndpointDescription
GET/api/validateValidate all boards
POST/api/doctorAuto-fix board issues

Management Endpoints

MethodEndpointDescription
GET/api/tasksList tasks
POST/api/tasksCreate task
GET/api/tasks/:idGet task
PUT/api/tasks/:idUpdate task
DELETE/api/tasks/:idDelete task
POST/api/tasks/:id/claimClaim task for agent
POST/api/tasks/:id/completeComplete task
POST/api/tasks/:id/failFail task
GET/api/agentsList agents
POST/api/agentsRegister agent
GET/api/agents/:idGet agent
DELETE/api/agents/:idRemove agent
GET/api/agents/:id/statusAgent status
POST/api/orchestrate/nextDispatch next task
POST/api/orchestrate/cycleRun orchestration cycle
GET/api/orchestrate/statusOrchestration status

Sprints Endpoints

MethodEndpointDescription
GET/api/sprintsList sprints
POST/api/sprintsStart sprint
POST/api/sprints/endEnd sprint

Autopilot Endpoints

MethodEndpointDescription
GET/api/autopilot/status?name=Loop phase, human gates, agent next action
POST/api/intakeSubmit intent → card + spec
POST/api/autopilot/proposePropose plan (creates approval gate)
POST/api/autopilot/approveApprove plan (human gate)
POST/api/autopilot/rejectReject plan (human gate)
POST/api/reviewRun review (auto-move passes)

Mind & Skills Endpoints

MethodEndpointDescription
GET/api/mindMind snapshot (health, blockers, next)
GET/api/mind/digestMind digest markdown
GET/api/skillsList BMAD skills
GET/api/skills/:idGet skill by id
GET/api/docsList bundled docs
GET/api/docs/:fileGet doc file

Other Endpoints

MethodEndpointDescription
GET/api/history?card=&limit=&since=Operation history
GET/api/sessions?limit=&since=Agent sessions
GET/api/context?name=Code context
POST/api/context/syncGit-aware context refresh
POST/api/context/clearClear code context
GET/api/code?q=&top=Symbol search
GET/api/configAI configuration
GET/api/checkpoints?name=List checkpoints (see Timeline)
GET/api/diff?name=Show diff (see Timeline)
WS/wsWebSocket for live reload

Authentication

When the server is started with --token, all API endpoints require:

  • Query parameter: ?token=mysecret
  • Header: Authorization: Bearer mysecret

Static assets (HTML, JS, CSS) are always public.