Actions13
Overview
This node integrates with a PDF Generator API to manage PDF templates. Specifically, the Template - List operation retrieves a list of PDF templates available in the connected account. This is useful for workflows that need to display, select, or process existing templates, such as generating documents based on predefined layouts or managing template inventories.
Common scenarios include:
- Fetching all available PDF templates to present options to users.
- Filtering templates by access type, name, or tags to find specific templates.
- Paginating through large sets of templates when many exist.
Example: A workflow that automatically generates reports might first list templates to select the appropriate one based on user input or metadata.
Properties
Name | Meaning |
---|---|
Access Type | Filter templates by access type. Options: All, Organization, Private |
Name Filter | Filter templates by matching template names (string search) |
Page | Page number of results to return (pagination) |
Per Page | Number of templates to return per page (max 100) |
Tags Filter | Filter templates by tags (comma-separated string or tag query) |
Output
The output is a JSON array where each item represents a template object returned from the API. Each template object typically includes details such as template ID, name, tags, access type, and other metadata provided by the PDF Generator API.
Example output structure (simplified):
[
{
"id": 12345,
"name": "Invoice Template",
"tags": ["invoice", "finance"],
"access": "organization",
...
},
{
"id": 67890,
"name": "Report Template",
"tags": ["report", "annual"],
"access": "private",
...
}
]
No binary data is produced by this operation; it purely returns JSON metadata about templates.
Dependencies
- Requires an API key credential for the PDF Generator API service.
- The node uses authenticated HTTP requests to the API endpoint
https://us1.pdfgeneratorapi.com/api/v4/templates
. - No additional environment variables are needed beyond the configured API credentials.
Troubleshooting
- Empty results: If no templates are returned, verify that the filters (access type, name, tags) are correct and that the API key has access to the expected templates.
- API authentication errors: Ensure the API key credential is valid and has permissions to list templates.
- Pagination issues: If you expect more templates, check the
Page
andPer Page
settings to paginate through all results. - Invalid filter values: Using unsupported values for filters may cause errors or empty responses; use only documented options.
Common error messages:
"The operation "list" is not supported for resource "template"
: Indicates a misconfiguration or unsupported operation/resource combination.- Authentication failures: Check API key validity and connectivity.