Template → Get Many
AI-generatedSummary
Fetches multiple templates from the Diro API, optionally filtered by a specific template ID or limited to a specific count.
Inputs
- returnAll — Whether to return all results or only up to a given limit. If true, the node will paginate through results until the total is reached; if false, the limit parameter controls the result count.
- limit — Max number of results to return. This parameter is only applicable when returnAll is false. Default is 20, with a valid range of 1 to 100.
- templateId — Filter documents by template ID. When provided, the API returns only templates matching this identifier.
Output shape
a list of items, each containing a template object with its fields and metadata
If returnAll is true, the node handles automatic pagination (fetching in batches of 100). The response wraps the results in a 'data' property containing either 'templates' or 'documents' arrays depending on the API response structure.
Examples
Example 1: Fetch the first 10 templates from the list
Resource: Template, Operation: Get Many, Return All: false, Limit: 10
Example 2: Retrieve all templates with a specific ID
Resource: Template, Operation: Get Many, Template ID: [specific-id]
Example 3: Get every available template without pagination limits
Resource: Template, Operation: Get Many, Return All: true