Test-render a template
Test-render a template
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
id
Request
This endpoint expects an object.
data
projectId
recordId
Response
The rendered preview document.
document
Base64-encoded rendered PDF.
mimeType
filename
warnings
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