dokkaiv0.1.0
API Reference

List a project's git branches

Local branches plus the resolved default base branch.

GET/routines/git/branchesany

Local branches (refs/heads), current and most-recently-committed first, plus the resolved default_base (origin/HEAD's target if set, else the first of main/master that exists locally).

Query parameters

projectstringrequired
The project_name.

Responses

200Branches and default base
json
{
  "branches": [ { "name": "feature/x", "is_current": true, "last_commit_date": "2026-07-10T..." } ],
  "default_base": "main"
}
400Not a git repo / no default base
json
{ "detail": "could not determine a default base branch for repository '/path/to/repo'" }
404Project has no ingested graph
json
{ "detail": "no graph found for project 'your-repo' — run POST /instances/pipeline to ingest it" }