Skip to main content

API Reference

The ArchGraph REST API is available at api.archgraph.dev.

Authentication

All API requests require authentication via one of:

  • API Key: Authorization: Bearer ag_... header
  • Clerk JWT: For web dashboard sessions

Endpoints

Tools

MethodEndpointDescription
POST/api/tools/searchSearch code nodes
POST/api/tools/statsGraph statistics
POST/api/tools/impactBlast radius analysis
POST/api/tools/contextNode context
POST/api/tools/sourceSource code retrieval
POST/api/tools/queryRaw Cypher (read-only)
POST/api/tools/search_callsFind callers/callees
POST/api/tools/detect_changesRecent changes
POST/api/tools/find_vulnerabilitiesSecurity scan

Repositories

MethodEndpointDescription
GET/api/reposList connected repos
POST/api/reposConnect a repo
DELETE/api/repos/:idRemove a repo
POST/api/repos/:id/extractTrigger extraction
GET/api/repos/:id/statusExtraction status
GET/api/repos/publicBrowse public catalog

API Keys

MethodEndpointDescription
GET/api/keysList API keys
POST/api/keysCreate API key
DELETE/api/keys/:idRevoke API key

Account

MethodEndpointDescription
GET/api/auth/meCurrent user profile
DELETE/api/auth/meDelete account (GDPR)

Health

MethodEndpointDescription
GET/healthService health check