API ReferenceTemplates
Validate Email AST
Validate a JSON AST email template structure before saving or rendering.
Authorization
apiKey X-API-Key<token>
API key for authentication
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://samva.app/api/v1/templates/validate-ast" \ -H "Content-Type: application/json" \ -d '{ "ast": { "version": 1 } }'{
"valid": true,
"issues": [
"string"
],
"detectedVariables": [
"string"
]
}