API Endpoints

Base URL: https://dash.kafe.studio

Endpoints

Method Path Description Body Response
GET /api/projects/ List all projects -- { data: Project[] }
POST /api/projects/ Create a new project { id, name, repo, color? } { data: Project }
GET /api/projects/:id/bugs List open bugs for a project -- { data: Bug[], count: number }
GET /api/sessions/ List all sessions with project info -- { data: Session[] }
POST /api/sessions/ Create a new session { projectId, branch, commit?, description? } { data: Session }
PATCH /api/sessions/:id Update session status { status: "open" | "reviewed" | "closed" } { data: { id, status } }
GET /api/checklists/ List all checklist items with session/project info -- { data: ChecklistItem[] }
POST /api/checklists/ Create checklist items for a session { sessionId, items: { label, category? }[] } { data: { sessionId, count: number } }
PUT /api/checklists/ Update a checklist item status { id, status: "ok" | "bug", note? } { data: { id, status } }
PATCH /api/checklists/:id Update a checklist item by ID { status: "ok" | "bug" | "pending", note? } { data: { id, status } }
GET /api/health/ Health check -- { status: "ok", timestamp }

Error format

All errors return JSON with an error field:

{ "error": "Error message here" }
400 Validation error 404 Not found 500 Database/internal error