So I’m seeing a very odd bug with the CXone Reporting API v2 when querying agent state history. I am using a simple GET request to /api/v2/reporting/agent/state-history with a time filter for the last 24 hours. The authentication is solid, as I can fetch other metrics without issue. However, the response payload consistently returns an empty data array, even for agents who were clearly online and handling calls during the specified window. I have verified the interval parameter is set correctly to PT1H and the since timestamp is in proper ISO 8601 format with UTC timezone. The API returns a 200 OK status, which makes it feel like a silent failure in the query logic rather than an auth error. I have checked the documentation multiple times and cannot find any requirement for additional headers or query parameters beyond the standard ones.
Here is the exact cURL command I am using for testing:
curl -X GET "https://us-1.api.niceincontact.com/api/v2/reporting/agent/state-history?since=2023-10-25T00:00:00Z&until=2023-10-26T00:00:00Z&interval=PT1H" \
-H "Authorization: Bearer <TOKEN>" \
-H "Accept: application/json"
The response is simply {"data": [], "nextPageToken": null}. Is there a known issue with the 24-hour lookback window for state history in the US-1 region, or am I missing a specific filter that forces the engine to populate the results?