APITemplate.io
Generate PDF and image documents from APITemplate.io templates, HTML, Markdown, or a web page, and list, check, or delete the files you generate.
Connectors
Choose the connector that matches your authentication method. The options below use the names shown in StackAI.
APITemplate.io
API Key
APITemplate.io
Connect to APITemplate.io to generate PDF and image documents from templates.
Set up in APITemplate.io
Prepare the APITemplate.io account or service that the workflow will access. Grant access to the required resources and operations.
API Key: Your APITemplate.io API key, from API Integration in the web console. It carries the same privileges as your account and has no narrower scope.
Set up in StackAI
Open Settings → Connections, add a connection, and select APITemplate.io.
Enter the credentials and connection details in the fields below.
Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.
Connection fields
API Key
Yes
Your APITemplate.io API key, from API Integration in the web console. It carries the same privileges as your account and has no narrower scope. Provider instructions.
Region
Optional / as applicable
Where APITemplate.io processes and stores your files: default (Singapore), eu (Frankfurt), us (US East), or au (Sydney). Keep default if unsure.
Verify the connection
Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.
If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.
Use an action
Add the required APITemplate.io action to the workflow.
Select a connection when the action requests one.
Complete the required fields. Use the reference picker when a value comes from another workflow step.
Run the workflow and inspect the action’s output. Check the result before using it in a later step.
Actions
Create PDF from Template
Fill one of your APITemplate.io PDF templates with data and get a link to the finished PDF. The link is public and never expires unless you set an expiry under advanced options.
Inputs
Template
select (string)
Yes
The PDF template to fill in. Options load from the selected connection.
Data
textarea
No
The values to put into the template, as JSON. The keys must match the fields your template uses.
Show advanced options
boolean
No
Reveal file name, link expiry, and reference fields. Default: false.
File Name
string
No
Name for the generated PDF. Leave empty for a random name.
Link Expires After (minutes)
integer
No
How long the public download link works. Leave empty to keep it permanently. Minimum: 1. Maximum: 10080.
Reference
string
No
Your own label for this file, shown when you list generated files.
Outputs
Download URL
string
Link to the generated PDF.
Transaction Reference
string
ID of the generated file.
Total Pages
integer
Page count of the PDF.
Template ID
string
Template used.
Create Image from Template
Fill one of your APITemplate.io image templates with text and pictures and get links to the finished JPEG and PNG. The link is public and never expires unless you set an expiry under advanced options.
Inputs
Template
select (string)
Yes
The image template to fill in. Options load from the selected connection.
Layer Changes
textarea
Yes
Which layers of the image to change and their new values, as JSON.
Show advanced options
boolean
No
Reveal image format, link expiry, and reference fields. Default: false.
Image Format
select (string)
No
Which image files to produce. Available values: JPEG and PNG, JPEG only, PNG only. Default: all.
Link Expires After (minutes)
integer
No
How long the public download links work. Leave empty to keep them permanently. Minimum: 1. Maximum: 10080.
Reference
string
No
Your own label for this file, shown when you list generated files.
Outputs
JPEG URL
string
Link to the JPEG image.
PNG URL
string
Link to the PNG image.
Transaction Reference
string
ID of the generated file.
Create PDF from HTML
Turn HTML (and optional CSS) into a PDF without making a template first. The link is public and never expires unless you set an expiry under advanced options.
Inputs
HTML
textarea
Yes
The page content as HTML.
Show advanced options
boolean
No
Reveal CSS, data, file name, and link expiry fields. Default: false.
CSS
textarea
No
Styles for the page.
Data
textarea
No
Values for placeholders in the HTML, as JSON.
Paper Size
select (string)
No
Page size of the PDF. Available values: Letter, Legal, Tabloid, Ledger, A0, A1, A2, A3, A4, A5, A6.
Orientation
select (string)
No
Portrait or landscape. Available values: Portrait, Landscape.
File Name
string
No
Name for the generated PDF.
Link Expires After (minutes)
integer
No
How long the public download link works. Leave empty to keep it permanently. Minimum: 1. Maximum: 10080.
Outputs
Download URL
string
Link to the generated PDF.
Transaction Reference
string
ID of the generated file.
Total Pages
integer
Page count.
Create PDF from Markdown
Turn Markdown text, such as an AI-written report, into a PDF. The link is public and never expires unless you set an expiry under advanced options.
Inputs
Markdown
textarea
Yes
The document content in Markdown.
Paper Size
select (string)
No
Page size of the PDF. Available values: Letter, Legal, Tabloid, Ledger, A0, A1, A2, A3, A4, A5, A6.
Orientation
select (string)
No
Portrait or landscape. Available values: Portrait, Landscape.
Show advanced options
boolean
No
Reveal CSS, placeholder data, file name, and link expiry fields. Default: false.
CSS
textarea
No
Styles for the page.
Data
textarea
No
Values for placeholders in the Markdown, as JSON.
File Name
string
No
Name for the generated PDF.
Link Expires After (minutes)
integer
No
How long the public download link works. Leave empty to keep it permanently. Minimum: 1. Maximum: 10080.
Outputs
Download URL
string
Link to the generated PDF.
Transaction Reference
string
ID of the generated file.
Total Pages
integer
Page count.
Create PDF from Web Page
Save any public web page as a PDF. The link is public and never expires unless you set an expiry under advanced options.
Inputs
Page URL
string
Yes
Address of the web page to capture.
Paper Size
select (string)
No
Page size of the PDF. Available values: Letter, Legal, Tabloid, Ledger, A0, A1, A2, A3, A4, A5, A6.
Orientation
select (string)
No
Portrait or landscape. Available values: Portrait, Landscape.
Show advanced options
boolean
No
Reveal file name and link expiration fields. Default: false.
File Name
string
No
Name for the generated PDF.
Link Expires After (minutes)
integer
No
How long the public download link works. Leave empty to keep it permanently. Minimum: 1. Maximum: 10080.
Outputs
Download URL
string
Link to the generated PDF.
Transaction Reference
string
ID of the generated file.
Total Pages
integer
Page count.
Merge PDFs
Combine several PDFs into one file, in the order you list them. The link is public and never expires unless you set an expiry under advanced options.
Inputs
PDF URLs
textarea
Yes
Links to the PDFs to combine, one per line or separated by commas.
Show advanced options
boolean
No
Reveal link expiry and reference fields. Default: false.
Link Expires After (minutes)
integer
No
How long the public download link works. Leave empty to keep it permanently. Minimum: 1. Maximum: 43200.
Reference
string
No
Your own label for this file, shown when you list generated files.
Outputs
Download URL
string
Link to the merged PDF.
Transaction Reference
string
ID of the merged file.
Total Pages
integer
Page count.
List Templates
See the PDF and image templates in your account.
Inputs
Template Type
select (string)
No
Only show PDF templates or only image templates. Available values: PDF templates, Image templates.
Show advanced options
boolean
No
Reveal the group filter, result cap, and start offset. Default: false.
Group
string
No
Only show templates in this group.
Max Results
integer
No
Most templates to return. Minimum: 1. Maximum: 300.
Start At
integer
No
Skip this many templates, to continue a previous list. Minimum: 0.
Outputs
Templates
object_array
Your templates.
Next Offset
integer
Where to continue if there are more.
List Generated Files
See the PDFs and images you've generated, with their links.
Inputs
Template
select (string)
No
Only show files made from this template. Options load from the selected connection.
File Type
select (string)
No
Only show one kind of file. Available values: PDF, Image, Merged PDF.
Show advanced options
boolean
No
Reveal max results and start offset fields. Default: false.
Max Results
integer
No
Most files to return. Minimum: 1. Maximum: 300.
Start At
integer
No
Skip this many files, to continue a previous list. Minimum: 0.
Outputs
Files
object_array
Generated files.
Next Offset
integer
Where to continue if there are more.
Delete Generated File
Permanently delete a generated PDF or image so its link stops working.
Inputs
Transaction Reference
string
Yes
The ID of the file to delete, returned when it was created.
Outputs
Transaction Reference
string
The deleted file's ID.
Deleted
boolean
Whether the file was deleted.
Get Account Usage
Check your plan and how many generations and templates you have left.
Inputs
No input fields are required in this catalog entry.
Outputs
Plan
string
Your plan.
Plan Status
string
Plan status.
Generation Quota
integer
Generations included in your plan.
Generations Remaining
integer
Generations you have left.
Template Quota
integer
Templates allowed.
Templates Remaining
integer
Templates you can still add.
Period Ends
string
When your usage resets.
Important behavior
Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.
The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.
Last updated
Was this helpful?

