Skip to main content
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

boolean
true if the template is valid.
object
The normalized template (sugar expanded into canonical form). Present when ok is true.
array
Present when ok is false. Each entry pinpoints one problem.

Example

Response - valid

Response - invalid

Authorizations

Authorization
string
header
required

API key authentication. Get your key at orgo.ai/workspaces

Body

The body is of type string.

Response

Validation result

ok
boolean
template
object

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.

errors
object[]