Appearance
Return
Generating a PDF with APITemplate.io
Connect APITemplate.io and generate a PDF from an API.
TEMPLATE AVAILABLE
If you wish to skip the manual setup, there is a workflow template available called Generate Invoice PDF (APITemplate.io) or Generate Certificate PDF (APITemplate.io). You can find it inside the templates available when creating an API workflow.
Steps at a glance ​
- Create a template in APITemplate.io.
- Connect APITemplate.io in the
Integrationstab. - Create an API that sends data to APITemplate.io.
- Return the PDF URL (or file) to your interface.
1) Create a template ​
- In APITemplate.io, create a template for your PDF.
- Open the
JSONtab and copy the example JSON (this shows the exact field names your template expects). - Note the template ID.
2) Connect the integration ​
- Open the
Integrationstab. - Connect
APITemplate.io. - Store the API key in an environment variable.
3) Generate a PDF from an API ​
- Open
Data & API → APIs. - Create an endpoint like
POST /pdf. - Add the APITemplate.io action and pass:
- Template ID
- Template data (paste the JSON you copied from APITemplate, then replace the example values with your own)
- Return the generated file URL.
Common pitfalls ​
The PDF is generated but shows empty fields ​
- Confirm the field names you send match the fields expected by your template.

