Ainoflow Storage icon

Ainoflow Storage

Store and retrieve JSON documents in Ainoflow key-value storage

Category → Get Many

AI-generated

Summary

Fetch multiple categories with pagination and optional aggregation.

Inputs

  • returnAll — Whether to return all results or only up to a given limit
  • limit — Max number of results to return; shown when returnAll is false
  • page — Page number to return (starts from 1); shown when returnAll is false
  • aggregate — Whether to return a single object with items array and pagination info instead of separate items

Output shape

When paginated and not aggregated: array of items from the API response, or response.items if the response is an object. When paginated and aggregated: object containing items array and totalCount. When returnAll and not aggregated: flat array of all items fetched across all pages. When returnAll and aggregated: object containing items array and totalCount of all results.

The API endpoint is GET /api/v1/storage/json with query parameters page, limit, and optionally aggregate. The category parameter is not consumed by this operation; the API operates on the base endpoint.

Examples

Example 1: Retrieve up to 20 categories on page 1

returnAll=false, limit=20, page=1

Links

Discussion