Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

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 ​

  1. Create a template in APITemplate.io.
  2. Connect APITemplate.io in the Integrations tab.
  3. Create an API that sends data to APITemplate.io.
  4. Return the PDF URL (or file) to your interface.

1) Create a template ​

  1. In APITemplate.io, create a template for your PDF.
  2. Open the JSON tab and copy the example JSON (this shows the exact field names your template expects).
  3. Note the template ID.

2) Connect the integration ​

  1. Open the Integrations tab.
  2. Connect APITemplate.io.
  3. Store the API key in an environment variable.

3) Generate a PDF from an API ​

  1. Open Data & API → APIs.
  2. Create an endpoint like POST /pdf.
  3. 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)
  4. 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.