Validate or list
GET https://repopack.com/api/v0/projects/<key>/blueprints
Authorization: Bearer <token>
With app.read, returns the project's Blueprints sorted by name. POST /api/v0/projects/<key>/blueprints/validate with Content-Type: application/json, bearer token and {"specification":{...}} is a read-like validation operation requiring app.read: success {valid:true,specification:<normalized-v1-object>}; invalid input returns 400 JSON blueprint_invalid. No App, preview or deployment is created. See the version-1 Blueprint format.
Create or update
POST /api/v0/projects/<key>/blueprints with JSON {"name":"preview","specification":{...},"default":false} requires app.write and returns the created Blueprint; default is optional. GET /api/v0/projects/<key>/blueprints/<name> returns the saved Blueprint with app.read or 404 when absent. PATCH that detail URL requires app.write and always takes specification, plus optional default. It replaces the current specification; there is no Blueprint revision history. A validation failure is 400 blueprint_invalid, a duplicate or inconsistent default state is 409 blueprint_conflict. Setting default:false when clearing the existing project default requires human confirmation of the exact specification and update time; clearing a non-default Blueprint returns 409 blueprint_not_default. A changed Blueprint returns 409 blueprint_changed; a mismatched confirmation target or specification returns 403 blueprint_confirmation_mismatch. Do not use a stale confirmation to clear another version. No Blueprint API operation deploys an App.