What it is for
APITemplate.io generates PDFs and images from templates built in its editor, from HTML or from a URL. With flooows you can create invoices, certificates, reports or social images with your flow data.
APITemplate.io has no triggers: use it as an action inside flows started by other events, such as a new order or a submitted form.
Set up the connection
Authentication type: Custom credentials
- 1Sign in to app.apitemplate.io.
- 2Open the API Integration section and copy your API key.
- 3In flooows, add an APITemplate.io step and click "Connect".
- 4Paste the key into "API Key" and choose the closest "Region" (for example, Europe) for better speed.
- 5Save the connection.
| Connection field | Type | Required |
|---|---|---|
| Region | Fixed list | Yes |
| API Key | Text | Yes |
Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.
How to use it in a flow
- Create PDF: set your template's "Template ID" and, in "Template Data", a JSON with the values mapped from earlier steps.
- Create Image works the same for image templates; use "External Reference ID" to tag each document.
- Create PDF From HTML takes "HTML Content" and "CSS Styles", with configurable margins and page size.
- Create PDF From URL turns a public web page into a PDF.
- List Objects and Delete Object let you review and clean up generated documents via "Transaction Reference".
Tips
- •Make the keys in "Template Data" match the template variables exactly.
- •Adjust "Expiration (minutes)" if you will download the file later in the flow.
Actions (8)
Operations available as flow steps. Expand each one to see its fields.
Create Image4 fields
| Field | Type | Required |
|---|---|---|
| Template ID | List (from your account) | Yes |
| Template Data | JSON | Yes |
| Generation Delay (ms) | Number | No |
| External Reference ID | Text | No |
Create PDF From HTML18 fields
| Field | Type | Required |
|---|---|---|
| HTML Content | Long text | Yes |
| CSS Styles | Long text | No |
| Data for Templating | JSON | No |
| Expiration (minutes) | Number | No |
| Page Size | Fixed list | No |
| Page Orientation | Fixed list | No |
| Margin Top (mm) | Number | No |
| Margin Bottom (mm) | Number | No |
| Margin Left (mm) | Number | No |
| Margin Right (mm) | Number | No |
| Print Background | Yes / No | No |
| Header Font Size | Text | No |
| Display Header/Footer | Yes / No | No |
| Custom Header HTML | Long text | No |
| Custom Footer HTML | Long text | No |
| Scale | Number | No |
| Wait Timeout (ms) | Number | No |
| External Reference ID | Text | No |
Create PDF From URL20 fields
| Field | Type | Required |
|---|---|---|
| URL | Text | Yes |
| Expiration (minutes) | Number | No |
| Page Size | Fixed list | No |
| Page Orientation | Fixed list | No |
| Margin Top (mm) | Number | No |
| Margin Bottom (mm) | Number | No |
| Margin Left (mm) | Number | No |
| Margin Right (mm) | Number | No |
| Print Background | Yes / No | No |
| Header Font Size | Text | No |
| Display Header/Footer | Yes / No | No |
| Custom Header HTML | Long text | No |
| Custom Footer HTML | Long text | No |
| Scale | Number | No |
| Wait Timeout (ms) | Number | No |
| Wait for Selector | Text | No |
| Viewport Width | Number | No |
| Viewport Height | Number | No |
| Full Page | Yes / No | No |
| External Reference ID | Text | No |
Create PDF5 fields
| Field | Type | Required |
|---|---|---|
| Template ID | List (from your account) | Yes |
| Template Data | JSON | Yes |
| Expiration (minutes) | Number | No |
| Generation Delay (ms) | Number | No |
| External Reference ID | Text | No |
Delete Object1 fields
| Field | Type | Required |
|---|---|---|
| Transaction Reference | List (from your account) | No |
Get Account Information0 fields
No fields to configure.
List Objects7 fields
| Field | Type | Required |
|---|---|---|
| Limit | Number | No |
| Offset | Number | No |
| Template ID | Text | No |
| Transaction Reference | Text | No |
| Date From | Text | No |
| Date To | Text | No |
| Meta Filter | Text | No |
Custom API Call10 fields
| Field | Type | Required |
|---|---|---|
| url | Dynamic fields | Yes |
| Method | Fixed list | Yes |
| Headers | Key / value pairs | No |
| Query Parameters | Key / value pairs | No |
| Body Type | List (from your account) | No |
| Body | Dynamic fields | No |
| Response is Binary | Yes / No | No |
| Return Error as Output | Yes / No | No |
| Timeout | Number | No |
| Follow redirects | Yes / No | No |
Common errors
401 or invalid key
Copy the key again and confirm the chosen region matches your account.
Blank fields in the PDF
Check that the JSON is valid and names match the template.
Quota exceeded
Check your plan's document limit.
Field types
"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps
