Skip to content

API Reference

Headless Code Intelligence Engine — Build Knowledge Graphs, Let AI Agents Consume Them

Base URL

http://localhost:3000/api/v1

OpenAPI Spec

The live OpenAPI 3.1 specification is available at runtime:

GET /api/v1/openapi.json

You can import this into tools like Postman, Insomnia, or any OpenAPI-compatible client.

Authentication

Most endpoints require a Bearer token (API key). See Authentication for full details.

http
Authorization: Bearer nxg_<your-key>

Endpoints

SectionEndpointsDescription
System1Health check and system info
Projects5Project CRUD — top-level organizational unit
API Keys3API key creation, listing, and revocation
Repositories5Repository management and source configuration
Indexing3Trigger, monitor, and cancel indexing jobs
Graph16Graph queries, node/edge browsing, Cypher, impact analysis, dependencies, architecture check, communities, processes, diff-impact
Search3Multi-mode search (BM25 keyword, semantic, hybrid), regex grep, cross-repo search
Files2File tree browsing and file content retrieval
Export4Export graph data as JSON, CSV, Cypher, or full project bundle
Connections9Cross-repo connection rules and resolution
Cross-Repo Graph3Cross-repo tracing, impact analysis, statistics

Error Format

All error responses return JSON with a consistent shape:

json
{
  "error": "Human-readable error message"
}

Common HTTP status codes:

CodeMeaning
400Invalid request body or parameters
401Missing or invalid API key
403Insufficient permissions or wrong project
404Resource not found
409Conflict (duplicate resource)
500Internal server error

Released under the MIT License.