Logo
Anvil API Documentation

PDF APIs

Number of APIs: 3


Our REST APIs that facilitate filling and generating PDFs.

All examples require an APIKEY variable set here, at the collection level. Click on the 'Variables' tab and set the APIKEY variable with your API key from your Anvil organization settings. More info on API keys here.

There is one example on how to fill a PDF, but first you need to upload a PDF to Anvil and create a PDF Template (also known as a Cast). Your API information will be there as well.

There is also two examples on how to generate a PDF. The first takes HTML & CSS - so you have complete control over the structure. The second takes content in rows of data that is formatted with markdown.


1. Download Documents

GET {{url}}/api/document-group/{{documentGroupEid}}.zip



2. Send JSON to fill a PDF

POST {{url}}/api/v1/fill/{{templateEid}}.pdf



3. Send Markdown to generate a PDF Copy

POST {{url}}/api/v1/generate-pdf



ENDPOINTS