Limit/offset pagination
When using limit/offset pagination, two parameters are used to provide pagination functionality:limitcontrols the maximum number of results that an endpoint can return. The default value for limit is documented on each specific endpoint.offsetcontrols how many values to skip over in the result set. By default, it is always 0.
offset value of 0. If the number of results you
receive is less than the value of the limit parameter (or the default limit if none was passed explicitly), you have
reached the end of the result set and can end pagination. Otherwise, make another API call with a new
offset value set to the previous offset + limit to get the next page, and then repeat until
you are at the end of the list.
For example, if there were 122 records available, your queries would look something like this for a GET endpoint using query parameters.
POST endpoint using a body, your requests would look like this.
Cursor-based pagination
Cursor-based pagination is implemented through thelimit and cursor parameters. You will also
receive a next_cursor value in the API response.
cursorshould only be set to the opaque cursor value provided in the API response and will be used to get the next page of results.limitis the same as in limit/offset pagination; it controls the maximum number of results that an endpoint can return.
cursor parameter and specify a limit value (or rely on the
endpoint’s default). Your response will include pagination.next_cursor which you should use in
your next request by passing it as the cursor parameter. It is important to keep the limit as
well as any filter parameters consistent between requests to avoid receiving unexpected results.
For example, to call our list meetings endpoint, you would do the following: