templatepdf
Preview PDF template
Changed onReturns a PDF with fields populated for preview. Sender fields (element_type=admin) are filled with the values you provide. If no values are provided, all fields use lorem ipsum. Use GET /templatepdf/{pdfId}/fields/ and filter by element_type=admin to find valid field labels and UUIDs.
post/templatepdf/{pdfId}/preview/
Request
- Base URLhttps://eu-api.legalesign.com/api/v1
- URLhttps://eu-api.legalesign.com/api/v1/templatepdf/{pdfId}/preview/
- AuthAPI key in header Authorization
Path parameters
pdfIdstring required
Request body
object required
Key-value pairs to populate sender fields. Use the field label or UUID as the key. If omitted, all fields are filled with lorem ipsum values.
Example request
{
"Company Name": "Acme Ltd",
"249590ba-9b25-41cc-a94f-bec7e6a3be21": "2024-01-01"
}Response
A PDF file with fields populated
Changes
- breaking
added the new path request parameter
pdfId
- breaking
- info
endpoint added
- info