API Reference
Get the file-level dependency view
Every relationship aggregated into file-to-file edges, internal files only.
GET
/graph/{project}/filesanyEach edge endpoint is mapped to the file it belongs to; edges between the same pair of files are aggregated into one edge with a total weight and a per relationship-type types breakdown. Self-loops and external dependencies are excluded.
Path parameters
projectstringrequiredThe project_name.
Responses
200The file-level dependency view
json
{
"project": "your-repo",
"files": [ { "path": "src/http/request_handler.py", "name": "request_handler.py" } ],
"edges": [ { "source": "src/a.ts", "target": "src/b.ts", "weight": 4, "types": { "CALLS": 3, "IMPORTS": 1 } } ],
"stats": { "files": 120, "edges": 340 }
}404No graph ingested
json
{ "detail": "no graph found for project 'your-repo' — run POST /instances/pipeline to ingest it" }