Skip to main content
All list endpoints support pagination to help manage large datasets. Use pagination parameters to control the number of results and navigate through pages.

Overview

The Intermezzo API uses cursor-based pagination for list endpoints to efficiently handle large result sets. Pagination parameters are passed as query parameters in your requests.

Pagination Parameters

The maximum page size is 100 items. Requests with size greater than 100 will return an error.

Making Paginated Requests

Response Structure

All paginated responses include two main sections:

items

An array containing the actual data for the current page.

meta

Pagination metadata containing:
  • total: Total number of items across all pages
  • page: Current page number
  • size: Number of items per page
  • pages: Total number of pages
  • has_next: Boolean indicating if there’s a next page
  • has_prev: Boolean indicating if there’s a previous page

Advanced Filtering

You can combine pagination with search and filtering capabilities:

Best Practices

  • Start with smaller page sizes (10-25) and increase as needed
  • Always check has_next before requesting the next page
  • Use sorting to ensure consistent pagination results
  • Cache pagination metadata to reduce API calls

Error Handling

The API will return appropriate errors for invalid pagination parameters:
Invalid Page Size
Invalid Sort Order