Diro icon

Diro

Generate PDF/PNG documents from templates using Diro API

Actions6

Document → Get Many

AI-generated

Summary

Retrieves a list of documents from the Diro API, optionally filtered by template ID and limited to a specific count or all results.

Inputs

  • returnAll — If true, retrieves all available documents. If false, limits results based on the 'Limit' parameter.
  • limit — Maximum number of documents to return. Only applicable when 'Return All' is false. Must be between 1 and 100.
  • filters — Optional collection of filters. Currently supports 'Template ID' to filter documents by their associated template.

Output shape

a list of items, each containing the document data from the Diro API

When 'Return All' is true, the operation uses internal pagination (limit 100 per request) until all documents are fetched. The API response may include a 'pagination.total' field to track progress.

Examples

Example 1: Retrieve the first 50 documents

Return All: false, Limit: 50

Example 2: Retrieve all documents for a specific template

Return All: true, Filters: Template ID set to a specific ID

Links

Discussion