Actions14
Document → Get Many
AI-generatedSummary
Retrieves documents from a collection in the IONOS Cloud AI Model Hub. When Return All is false, returns up to Limit documents (default 50); when true, returns up to 1000 documents.
Inputs
- apiType (required) — The type of API to use for AI Model Hub. Options: Native API (native) or OpenAI Compatible (openai). Default: native.
- region (required) — The region for AI Model Hub API. Only option: Berlin (de-txl). Default: de-txl.
- collectionId (required) — The ID of the collection from which to fetch documents.
- returnAll — Whether to return all results or only up to a given limit. Default: false.
- limit — Maximum number of results to return when Return All is false. Ignored when Return All is true. Default: 50. Minimum: 1, Maximum: 100.
Output shape
Array of document objects
Each item in the output array corresponds to a document returned by the API, containing the document’s properties as a JSON object.
Examples
Example 1: Fetch first 20 documents from a collection
Set collectionId to the target collection UUID, Return All to false, Limit to 20.
Example 2: Fetch all documents (up to 1000) from a collection
Set collectionId to the target collection UUID and Return All to true.