Skip to content

Validate template code​

POST
/api/v1/templates/validate

Checks code-mode content and returns the diagnostics a write would, without storing anything and without touching any template. Use it to find out whether generated Handlebars compiles before replacing a template that is being rendered. Any valid credential may call it.

Authorizations​

ApiKeyAuth

Long-lived account credential. Create one from the dashboard.

Type
API Key (header: x-api-key)
or
BearerAuth

Short-lived presigned token scoped to a single template (minted via /presigned-url).

Type
HTTP (bearer)

Request Body​

application/json

Structural JSON value: object or array. Scalars and null are rejected.

Email subject line, as Handlebars rendered against the render context. null removes it; omit it to keep the stored one.

Max Length998

Responses​

The content was checked.

application/json

Problems found in the template. Advisory rather than fatal: a template that renders can still carry warnings, while an error severity is one that will not.

Playground​

Authorization
Body

Samples​