Skip to main content

Use pagination in the Sitecore CDP REST APIs

Abstract

Provides attributes and a cURL command for using pagination in the Sitecore CDP REST APIs (Data model 2.1).

If a collection resource represents a large enough number of resource instances, it does not include them all in a single response. You can apply pagination to break up the results of the JSON response into one or more pages of data. You can request additional pages as separate requests.

To control pagination, use the following query parameters:

Name

Description

Type

Example(s)

Optional/required

offset

The zero-based starting index in the entire collection of the first item to return.

number (default is 0)

10

Optional

limit

The maximum number of collection items to return for a single request. Minimum value: is 1. Maximum value: 100. Default is 10.

number (default: 10, minimum: 1, maximum:100)

40

Optional