We are building a custom dashboard using the Embeddable Client App SDK and need to fetch conversation metrics via the Analytics API. The documentation mentions pageSize, pageNumber, and pageCount, but the behavior is unclear. When I set pageSize to 100, I get 100 records, but pageCount in the response is 5. Does pageNumber start at 0 or 1? Also, if I request page 2, does it return records 101-200? Here is the query payload we are sending:
{
"pageSize": 100,
"pageNumber": 1,
"dateRange": {
"startDate": "2023-10-01T00:00:00.000Z",
"endDate": "2023-10-31T23:59:59.999Z"
}
}
The response comes back with status 200, but the data feels off.