For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • POSTValidate Liquid template
      • POSTValidate transform code
Dashboard
LogoLogo
Runtype APIValidation

Validate Liquid template

POST
/v1/validate/liquid-template
POST
/v1/validate/liquid-template
$curl -X POST https://api.runtype.com/v1/validate/liquid-template \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "template": "{% if user.premium %}Welcome, premium user {{ user.name }}!{% else %}Welcome, guest!{% endif %}"
>}'
1{
2 "issues": [],
3 "valid": true
4}

Lightweight per-keystroke Liquid template validator for the dashboard template step editor.

Was this page helpful?
Previous

Validate transform code

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Request

This endpoint expects an object.
templatestringRequired>=1 character
Liquid template string to validate
inputsmap from strings to stringsOptional
Template input variables
partialsmap from strings to stringsOptional
Template partials

Response

Validation result
issueslist of objects
validboolean

Errors

400
Bad Request Error
413
Content Too Large Error
500
Internal Server Error