Skip to main content

 

 
8x8 Support

Why does the Contact Center Historical Analytics API return 400 Bad Request when requesting over 10,000 records?

Question

Why does the Contact Center Historical Analytics API return 400 Bad Request with the below body when requesting over 10,000 records?

For example, GET request:

https://api.8x8.com/eu/analytics/cc/v6/historical-metrics/{reportId}/data?page=10&size=1000

Response Body:

{
    "message": "Bad request: Field 'page' must be greater than or equal to 0 and less than the total number of pages, which is 0 for this request"
}

Applies To

  • Contact Center Historical Analytics API
  • Contact Center Historical Analytics Summary Report

Answer

  • The common historical-metrics endpoint has a limitation where the JSON /data response is limited to 10,000 records. The XLSX/CSV download available at historical-metrics/detailed-report does not have this limitation.
  • To overcome this limitation the historical-metrics/detailed-report endpoint is available to allow for consumers to access JSON format data for large result sets expected with detailed reports.
  • Leverage the historical-metrics/detailed-report endpoint and the result set won't be limited to 10,000 records.
  • This guarantees a full result set regardless of the size of the response.