API overview¶
Base URL for the hosted service: https://api.cutweaver.io
Dedicated deployments expose the same JSON contract on your private base URL.
All public endpoints return JSON. Request bodies for POST endpoints should be sent as application/json.
The public contract is versioned under /api/v1/... and evolves additively.
Endpoints¶
| Method | Path | Auth | Purpose |
|---|---|---|---|
| GET | /health |
none | Liveness probe |
| GET | /api/v1/info |
none | Service metadata and endpoint catalog |
| GET | /api/v1/schema |
none | Machine-readable discovery document |
| GET | /api/v1/runtime |
none | Active host/port and supported CLI flags |
| POST | /api/v1/request-key |
none | Issue or reuse the free evaluation key |
| POST | /api/v1/solve |
optional | Solve a cutting request; anonymous access is quota-limited |
| GET | /api/v1/usage |
required | Current quota state for a keyed plan |
Versioning policy¶
- Current public contract version:
v1. - New optional fields can be added without changing the version.
- Breaking changes require a new contract version.
- Request payloads remain strict for the target contract version: undocumented fields are rejected.
Discovery¶
Use GET /api/v1/schema when you need machine-readable metadata for:
- canonical top-level request fields,
- supported strategies,
- transport limits,
- hosted auth and quota tiers.
The human-readable JSON contract page is rendered from the canonical public contract source.