API Reference
The Startrag REST API
A small, predictable surface. Authenticate with a bearer token and start mapping knowledge.
curl https://api.startrag.com/v1/query \
-H "Authorization: Bearer sk_live_..." \
-d '{ "q": "What changed in the Q3 policy?" }'POST
/v1/ingestAdd documents to the index. Each chunk becomes a star and is auto-linked into clusters.
POST
/v1/queryRun a graph-aware retrieval and return a grounded answer with citations.
GET
/v1/constellationsList discovered constellations (semantic clusters) in your knowledge graph.
GET
/v1/stars/:id/edgesTraverse the edges of a single star to inspect related context.
DELETE
/v1/stars/:idRemove a star and re-balance its constellation.