Skip to main content
GET
Get template schema
Returns the complete orgo.ai/v1 template schema as JSON Schema (Draft 2020-12). It covers every field, its type, accepted values, and a description. This is the canonical machine-readable contract for templates, consumed by editors, the CLI, and AI agents.
This endpoint is public. It requires no API key, sets permissive CORS headers, and is cacheable, so any tool can fetch it directly. It serves a static document, so the only status it returns is 200.
The schema models the canonical form only. It requires api_version and template and sets additionalProperties: false, so a document in the sugar form validates as invalid against it: once for the missing template block, and once per sugar key. Sugar is desugared server-side, so check a sugar document with Validate template.

Response

A JSON Schema document. The top-level properties describe each template field; $defs holds the reusable sub-objects (hardware, app, service, trigger, and so on). For a guided walkthrough, see the schema reference.

Example

Response (excerpt)

Point your editor’s YAML language server at this URL for inline autocomplete and validation of a canonical template:

Response

200 - application/schema+json

The orgo.ai/v1 JSON Schema document.

The response is of type object.