# RestPaginationOptions (/docs/rest/api/interfaces/RestPaginationOptions)



[@kysoql/rest](/docs/rest/api) / RestPaginationOptions

Safety limits applied while following Salesforce query pagination.

## Properties [#properties]

| Property                                         | Modifier   | Type     | Description                                                                    |
| ------------------------------------------------ | ---------- | -------- | ------------------------------------------------------------------------------ |
| <a id="api-property-batchsize" /> `batchSize?`   | `readonly` | `number` | Requested batch size (200-2000), not a guaranteed page size.                   |
| <a id="api-property-maxpages" /> `maxPages?`     | `readonly` | `number` | Query-page budget across root and relationship continuations. Default: 10,000. |
| <a id="api-property-maxrecords" /> `maxRecords?` | `readonly` | `number` | Optional root-record budget. Exceeding it throws, never silently truncates.    |
