Skip to content

templates_validate

POST
/templates/validate
curl --request POST \
--url https://example.com/templates/validate \
--header 'Content-Type: text/plain' \
--data example

Compile and validate a template from its source without storing it.

This performs the same compilation validation as template submission, but does not create a template ID or write the compiled template to storage.

Media type text/plain
string

Template is valid

Compilation error

Media type application/json
object
message
required
string
Example generated
{
"message": "example"
}

Internal error

Media type application/json
object
message
required
string
Example generated
{
"message": "example"
}