Skip to main content

Validate PDF Template

POST 

/api/pdf-templates/:id/validate

Validates draft template content against the template type's schema without rendering it. Use this to surface unknown variables, unbalanced sections, and non-blocking warnings before saving.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Authentication: Bearer Personal Access Token with the settings scope (read access).

Fields:

  • content (required): the draft markup to validate.

The response data contains ok (true when there are no errors), an errors array, and a warnings array.

Request

Responses

OK

Response Headers
    Content-Type