Hitting a 400 Bad Request when querying agentStateHistory for the last 24 hours via the CXone Reporting API (v2). The endpoint is GET /api/v2/reporting/agents/{agentId}/statehistory?from={startTime}&to={endTime}. Passing ISO 8601 strings like 2023-10-27T10:00:00Z but getting back a generic bad request error with no useful details in the response body. Using com.genesiscloud:genesys-cloud-platform-client:2.0.0 in Kotlin. The time window shouldn’t be an issue since the docs allow up to 30 days. Here’s the request config: