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/specsList 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

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?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
POST/api/orchestrate/cycleRun orchestration cycle
GET/api/orchestrate/statusOrchestration status

Other Endpoints

MethodEndpointDescription
GET/api/historyOperation history
GET/api/sessionsAgent sessions
GET/api/contextCode context
POST/api/context/syncGit-aware context refresh
GET/api/code?q=Symbol search
GET/api/configAI configuration
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.