CXone Reporting API v2: Agent State History Query

Quick question about fetching agent state history for the last 24 hours via the CXone Reporting API v2.

getting 400 Bad Request when trying to query agent state history. tried filtering with ?timeRange=last24h&agentIds=12345 but the response just says ‘Invalid time range format’. any idea what the exact ISO 8601 string looks like for this operation? need to map it to a data action.