Is there a single API in Genesys Cloud that retrieves an agent's actual activity in WFM, without the need to use multiple APIs to gather the information?
That'd be a Nope.
Which APIs may I use to obtain the agents actual activity ?
Thank you.
Depends.
If you want the exact start / stop time of every status change it'd be
POST /api/v2/analytics/users/details/jobs
GET /api/v2/analytics/users/details/jobs/{jobId}
GET /api/v2/analytics/users/details/jobs/{jobId}/results
If you want just the raw totals of specific status codes grouped by agent or similar at a specific interval granularity for a period it'd be
POST /api/v2/analytics/users/aggregates/query
And you may have to iterate through the entire user list to feed whichever route you go the specific list of users you want data for.
And you'd need
GET /api/v2/presence/definitions
To make most of the presences humanly readable.
Could we have an API that pulls all the agents' schedules, not just one agent at a time?
The API below is the one that pulls a single agents schedule :
get/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/history/agents/{agentId}
Loads agent's schedule history.
Have you tried POST /api/v2/workforcemanagement/businessunits/{businessUnitId}/agentschedules/search
It's not much better since you still have to feed it all the IDs, but it does technically do more than one at a time.
Clarifying question - are you wanting their current actual activity? because that is available via the real time adherence API. If you are wanting it historically or for a particular point in the past you'd need to use the historical adherence APIs
GET /api/v2/workforcemanagement/adherence
Note - This assumes the user is in a management unit, which is a prerequisite for getting their adherence information
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.