Test-render a template

View as Markdown

Ephemerally renders a DOCX/Liquid template to a base64 PDF (no R2 write, no quota, no file rows). Renders from { data }, a { projectId, recordId } record, or the template’s saved sample data. Rendering from a record additionally requires data-record:read. Requires playbook:create.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Path parameters

idstringRequired

Request

This endpoint expects an object.
datamap from strings to anyOptional
projectIdstringOptional>=1 character
recordIdstringOptional>=1 character

Response

The rendered preview document.
documentstring

Base64-encoded rendered PDF.

mimeTypestring
filenamestring
warningslist of maps from strings to any

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
503
Service Unavailable Error