cURL
curl --request POST \ --url https://htmldocs.com/api/documents/{documentId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "props": {}, "format": "pdf", "size": "<string>", "orientation": "portrait" }'
This response does not have an example.
Generates a PDF document from a published document template.
API key or authentication token
UUID or custom ID of the document template
Generated document in requested format
Binary PDF file (when format=pdf)