Automette docs

Validate a template

POST
/api/v1/templates/{id}/validate

Authorization

ApiKeyAuth
AuthorizationBearer <token>

API key from Settings → API Keys.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/templates/string/validate" \  -H "Content-Type: application/json" \  -d '{}'
{  "ok": false,  "engine": "canvas",  "counts": {    "errors": 1,    "warnings": 1,    "suggestions": 0  },  "findings": [    {      "severity": "error",      "code": "canvas.text.unknown_font",      "message": "Font \"Helvetica Neue\" is not available. It will be substituted at render time.",      "location": {        "componentId": "title"      },      "fix": "Use one of the built-in families, or upload the font to your Brand Kit."    },    {      "severity": "warning",      "code": "canvas.text.placeholder",      "message": "Component \"byline\" still contains placeholder text: \"Author Name\".",      "location": {        "componentId": "byline"      }    }  ]}