Pagination

How to use pagination query parameters for graphiteConnect APIs that return large result sets.

Pagination

Some graphiteConnect public APIs may return large numbers of results. To ensure integrations run efficiently, APIs that can return large amounts of data support pagination via standard query parameters.

Pagination Parameters

ParameterDescription
limitMaximum number of results to return per request. Maximum value: 1000.
pageWhich page of results to return. Pages are 0-indexed: page=0 returns results 1–1000, page=1 returns results 1001–2000, and so on.
totalReturned in the response body. Indicates the total number of results available across all pages.

Example Request

To fetch the second page of users with a page size of 500:

GET /api/public/api/v1/users?limit=500&page=1
Authorization: Bearer <your_access_token>

Example Response

Paginated responses include a total field alongside the results array:

{
  "total": 1250,
  "results": [ ... ]
}

Use total to determine how many pages are needed:

totalPages = Math.ceil(total / limit)

APIs That Support Pagination

The following graphiteConnect public APIs support pagination:

APIDescription
GET /usersRetrieve graphiteConnect users
GET /users/rolesRetrieve user roles
GET /tasksRetrieve open tasks for supplier connections
GET /users/eventsRetrieve audit events for your organization

When integrating with any of these APIs for organizations with large user bases or high activity volumes, always implement pagination to avoid timeouts or incomplete data sets.

Related Documentation