REST API
REST API reference
The OpenAPI reference for the public Build REST API under /api/build.
One page per operation, generated from the OpenAPI document that @spinrun/build-contract builds from the same Zod schemas the routes validate with. The REST twin lives under /api/build with the same auth and documents as /mcp/build.
All routes take Authorization: Bearer <token>. Success is {"data": …}; failure is {"error": "…"}, plus current and applied on a 409.