v1

latestOpenAPI 3.0.12026-07-17238.4 KB

Generates a PDF document from a published document template.

post/api/documents/{documentId}

Path parameters

documentIdstring required

UUID or custom ID of the document template

Request body

propsobject required

Props to pass to the document component

format'pdf' | 'base64' | 'json'

Response format. pdf returns a binary PDF file, base64 returns the PDF encoded as base64 in JSON, json returns a URL to download the PDF. Defaults to pdf

sizestring

Page size (A3, A4, A5, letter, legal, or custom size like '8.5in 11in')

orientation'portrait' | 'landscape'

Response

Generated document in requested format

OR