https://github.com/supermodeltools/openapi-spec
Spec for Supermodel public API in OpenAPI YAML. Use as a reference or generate your own clients.
https://github.com/supermodeltools/openapi-spec
api call-graph call-graph-analysis code-analysis code-graph dependency-graph openapi openapi-spe openapi-spec static-analysis supermodel
Last synced: 1 day ago
JSON representation
Spec for Supermodel public API in OpenAPI YAML. Use as a reference or generate your own clients.
- Host: GitHub
- URL: https://github.com/supermodeltools/openapi-spec
- Owner: supermodeltools
- Created: 2025-12-23T17:04:50.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-01-30T05:02:02.000Z (9 days ago)
- Last Synced: 2026-01-30T21:10:24.186Z (8 days ago)
- Topics: api, call-graph, call-graph-analysis, code-analysis, code-graph, dependency-graph, openapi, openapi-spe, openapi-spec, static-analysis, supermodel
- Homepage: https://docs.supermodeltools.com
- Size: 27.3 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Supermodel OpenAPI Specification
[](https://www.npmjs.com/package/@supermodeltools/openapi-spec)
[](https://spec.openapis.org/oas/v3.0.0)
[](https://github.com/supermodeltools/openapi-spec/actions/workflows/validate.yml)
OpenAPI 3.0 specification for the [Supermodel API](https://docs.supermodeltools.com) - code graphing and static analysis.
## Install
```bash
npm install @supermodeltools/openapi-spec
```
The spec is available at `node_modules/@supermodeltools/openapi-spec/openapi.yaml`.
## Endpoints
| Method | Path | Description |
|--------|------|-------------|
| POST | `/v1/graphs/dependency` | File-level dependency graph |
| POST | `/v1/graphs/call` | Function-level call graph |
| POST | `/v1/graphs/domain` | Domain model classification |
| POST | `/v1/graphs/parse` | AST parse tree relationships |
| POST | `/v1/graphs/supermodel` | Full Supermodel IR bundle |
All endpoints accept a zipped repository snapshot and return graph data as JSON.
## Authentication
Requests require an API key via `X-Api-Key` header. Get your key from the [Supermodel Dashboard](https://dashboard.supermodeltools.com).
## Links
- [API Documentation](https://docs.supermodeltools.com)
- [API Terms of Service](https://supermodeltools.com/legal/api-terms)