Templates
Validate template
Check a template document for errors without publishing it.
POST
Validate template
Validates a template against the
orgo.ai/v1 schema and returns either the normalized document or a structured list of errors. This endpoint has no side effects — nothing is written, so it is cheap enough to call on every keystroke in an editor.
Request body
The raw template document, as YAML (Content-Type: application/yaml) or JSON.
Response
true if the template is valid.The normalized template (sugar expanded into canonical form). Present when
ok is true.Present when
ok is false. Each entry pinpoints one problem.Example
Response — valid
Response — invalid
Authorizations
API key authentication. Get your key at orgo.ai/workspaces
Body
The body is of type string.
Response
Validation result
An orgo.ai/v1 template document. Only api_version and template are required. See the full JSON Schema at GET /template-schema, or the schema guide at https://docs.orgo.ai/guides/templates/schema.
Validate template