Pagination
Learn how to use cursor-based pagination in the Sprinto Developer API to efficiently fetch and navigate large datasets.
The Sprinto Developer API uses cursor-based pagination to help you efficiently work with large datasets. Pagination allows you to fetch smaller, manageable subsets of data, improving response time and overall API performance.
Sprinto’s pagination model aligns with the Relay Cursor Pagination specification, making it predictable and easy to work with in GraphQL-based integrations.
For a hands-on experience, Sprinto recommends using the API Playground to explore paginated queries interactively.
Important notes
The Sprinto Developer API is currently in beta, and pagination behaviour may evolve as new features are introduced.
API requests are rate-limited to 10 requests per minute. Exceeding this limit results in an error response.
Pagination parameters and response structures are enforced at the schema level.
Pagination model
Sprinto uses cursor-based pagination, where each record is associated with a unique cursor. Instead of relying on page numbers, cursors allow you to reliably navigate forward and backward through a dataset.
This approach ensures consistency even when underlying data changes.
Supported pagination arguments
The following pagination arguments are supported across paginated queries.
first
Specifies the number of records to fetch in a single request.
after
Fetches records that appear after the specified cursor. Used for forward navigation.
before
Fetches records that appear before the specified cursor. Used for backward navigation.
Pagination response structure
Paginated responses follow a consistent structure based on connections and edges.
edges
A list representing individual records in the result set.
cursor
A unique identifier for each edge, used for pagination navigation.
node
The actual data object returned by the API.
totalCount
The total number of records available for the query.
Example: Paginated query
The following example retrieves the first five workflow checks that appear after a specific cursor.
How pagination works in practice
Use the
firstargument to define how many records you want to retrieve.Extract the
cursorvalue from the last edge in the response.Pass that cursor value as the
afterargument in the next request to fetch the next set of records.Repeat the process until all required records are retrieved.
For backward navigation, use the before argument with the cursor from the first edge in the current response.
Next steps
After understanding pagination, you can:
Combine pagination with filters and arguments for more precise queries
Use pagination consistently when building reports or dashboards
Explore paginated queries directly in the API Playground
Last updated

