Skip to content
APITemplate.io

How to use APITemplate.io

Content & filesProductivityCost: 1 credit per runTop 100 · #80Full guide

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

  1. 1Sign in to app.apitemplate.io.
  2. 2Open the API Integration section and copy your API key.
  3. 3In flooows, add an APITemplate.io step and click "Connect".
  4. 4Paste the key into "API Key" and choose the closest "Region" (for example, Europe) for better speed.
  5. 5Save the connection.
Connection fieldTypeRequired
RegionFixed listYes
API KeyTextYes

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
FieldTypeRequired
Template IDList (from your account)Yes
Template DataJSONYes
Generation Delay (ms)NumberNo
External Reference IDTextNo
Create PDF From HTML18 fields
FieldTypeRequired
HTML ContentLong textYes
CSS StylesLong textNo
Data for TemplatingJSONNo
Expiration (minutes)NumberNo
Page SizeFixed listNo
Page OrientationFixed listNo
Margin Top (mm)NumberNo
Margin Bottom (mm)NumberNo
Margin Left (mm)NumberNo
Margin Right (mm)NumberNo
Print BackgroundYes / NoNo
Header Font SizeTextNo
Display Header/FooterYes / NoNo
Custom Header HTMLLong textNo
Custom Footer HTMLLong textNo
ScaleNumberNo
Wait Timeout (ms)NumberNo
External Reference IDTextNo
Create PDF From URL20 fields
FieldTypeRequired
URLTextYes
Expiration (minutes)NumberNo
Page SizeFixed listNo
Page OrientationFixed listNo
Margin Top (mm)NumberNo
Margin Bottom (mm)NumberNo
Margin Left (mm)NumberNo
Margin Right (mm)NumberNo
Print BackgroundYes / NoNo
Header Font SizeTextNo
Display Header/FooterYes / NoNo
Custom Header HTMLLong textNo
Custom Footer HTMLLong textNo
ScaleNumberNo
Wait Timeout (ms)NumberNo
Wait for SelectorTextNo
Viewport WidthNumberNo
Viewport HeightNumberNo
Full PageYes / NoNo
External Reference IDTextNo
Create PDF5 fields
FieldTypeRequired
Template IDList (from your account)Yes
Template DataJSONYes
Expiration (minutes)NumberNo
Generation Delay (ms)NumberNo
External Reference IDTextNo
Delete Object1 fields
FieldTypeRequired
Transaction ReferenceList (from your account)No
Get Account Information0 fields

No fields to configure.

List Objects7 fields
FieldTypeRequired
LimitNumberNo
OffsetNumberNo
Template IDTextNo
Transaction ReferenceTextNo
Date FromTextNo
Date ToTextNo
Meta FilterTextNo
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

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