Pagination
To efficiently handle large datasets, BoldSales API supports pagination for most endpoints that return lists of records, such as List Contacts, List Companies, and List Deals. Instead of returning all records at once, the API delivers results in smaller, manageable pages.
You can specify the following parameters to control pagination:
| Parameter | Description |
| page | The page number to retrieve. Starts from 1. Default is 1. |
| pageSize | Number of records per page. Default is 10, maximum is 100. |
| includeTotalCount | If set to true, the response includes metadata such as totalRecords and totalPages. |
Example Request
get /api/v1/contacts?page=1&pageSize=50&includeTotalCount=true
This request retrieves the first page of contacts, with 50 records per page. If includeTotalCount=true is included, the response will also contain metadata such as the total number of records and total pages available.
Assume there are 135 contact records available. You can retrieve them in pages of 50 like this:
GET /api/v1/contacts?page=1&pageSize=50 # Records 1 to 50
GET /api/v1/contacts?page=2&pageSize=50 # Records 51 to 100
GET /api/v1/contacts?page=3&pageSize=50 # Records 101 to 135 (last page with fewer records)