API Endpoints

Interact with the Linear Canal API server programmatically.

Base URL

The API server runs on port 3001 by default.

bash
http://localhost:3001/api/v1

Projects

bash
GET    /api/v1/projects              # list all projects
POST   /api/v1/projects              # create a project
GET    /api/v1/projects/:id          # project details
DELETE /api/v1/projects/:id          # delete project

Context & Graph

bash
GET /api/v1/projects/:id/ctx            # list ctx files
GET /api/v1/projects/:id/ctx/:doc       # read a ctx file
GET /api/v1/projects/:id/graph          # full knowledge graph
GET /api/v1/projects/:id/graph/modules  # module list
GET /api/v1/projects/:id/graph/impact   # impact subgraph

Search

bash
curl "http://localhost:3001/api/v1/projects/:id/search?q=authentication+middleware"
API Endpoints | Linear Canal Docs | Linear Canal