Supermodel Public OpenAPI Specification
npm install @supermodeltools/openapi-spec


OpenAPI 3.0 specification for the Supermodel API - code graphing and static analysis.
``bash`
npm install @supermodeltools/openapi-spec
The spec is available at node_modules/@supermodeltools/openapi-spec/openapi.yaml.
| Method | Path | Description |
|--------|------|-------------|
| POST | /v1/graphs/dependency | File-level dependency graph |/v1/graphs/call
| POST | | Function-level call graph |/v1/graphs/domain
| POST | | Domain model classification |/v1/graphs/parse
| POST | | AST parse tree relationships |/v1/graphs/supermodel
| POST | | Full Supermodel IR bundle |
All endpoints accept a zipped repository snapshot and return graph data as JSON.
Requests require an API key via X-Api-Key` header. Get your key from the Supermodel Dashboard.