templates_validate
POST
/templates/validate
const url = 'https://example.com/templates/validate';const options = {method: 'POST', headers: {'Content-Type': 'text/plain'}, body: 'example'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/templates/validate \ --header 'Content-Type: text/plain' \ --data exampleCompile 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.
Request Body required
Section titled “Request Body required ” Media type text/plain
string
Responses
Section titled “ Responses ”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"}