Getting WFM Intervals (Queue)
You can use GET request to retrieve historical queue data aggregated in 15-minute intervals. You specify the time range from which you want to retrieve the data. For example, you can specify a three-hour range. The historical data within that time frame is then aggregated into 15-minute intervals.
You'll need the WFM_HISTORICAL role permission to perform this request.
Request
Sample request
The request below gets historical WFM intervals:
curl GET -u <username:password> -H "Content-Type: application/json" https://api.cxengage.net/v1/tenants/<tenant-id>/wfm/intervals/queue?start=<start>&end=<end>&page=<page>&limit=<limit>&offset=<offset>
Request parameters
The table below lists the parameters you can include in a request:
Response parameters
Sample response
The request returns JSON structured like the example below:
{
"tenantId": "2336d1ec-c956-47e1-b3b1-fe8fde81b2b4",
"limit": 1000,
"offset": 0,
"start": "2018-07-12T10:30:00.000Z",
"type": "queue",
"page": 0,
"total": 1,
"end": "2018-07-12T16:45:00.000Z",
"results":
{
"maxAbandonedTime": 0,
"tenantId": "2336d1ec-c956-47e1-b3b1-fe8fde81b2b4",
"wrapUpTime": 0,
"abandonedCallCount": 0,
"agentWrapUpTime": 0,
"platformQueueId": 388,
"queueEndedCount": 0,
"queueIntervalId": "606bcc07-bc80-5637-84ef-88270b912b94",
"queueCallbacksConfirmedCount": 0,
"queueInteractions": 0,
"busyTime": null,
"endTimestamp": "2018-07-12T16:45:00.000Z",
"maxQueueTime": 0,
"maxQueueCount": 1,
"conversationTime": 0,
"offeredCallCount": 0,
"avgHandleTime": 0,
"abandonedTime": 0,
"abandonedInSlaCount": 0,
"workOfferCancelledCount": 0,
"handledCallCount": 0,
"totalServiceLevelContacts": 0,
"idleTime": null,
"answeredCallCount": 0,
"answeredInSlaCount": 0,
"availableAgents": 0,
"startTimestamp": "2018-07-12T10:30:00.000Z",
"shortAbandonsCount": 0,
"queueName": "Sales",
"queueTimeoutCount": 0,
"avgTimeToAnswer": 0,
"workRejectedCount": 0,
"queueTime": 0,
"sla": 0,
"answerTime": 0,
"inServiceLevelContacts": 0,
"queueId": "e31b2400-1cc2-11e8-a4de-115a5b47684f",
"holdTime": 0,
"addParticipantCanceledCount": 0,
"agentTalkTime": 0,
"maxAnswerTime": 0
},...
]
}
Response parameters
The response includes the following parameters. The response only includes the attributes that you included in the request.
| Parameter | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| tenantId | UUID | The unique identifier of the tenant. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| limit | integer | The number of records to return from the specified offset. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| offset | integer | The offset indicates from which page to return intervals. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| start | string |
The date and time, in UTC format, of the start of the time range being requested. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type | string | The type of interval, either agent, queue or agent-queue. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| page | string | The page returned. By default, this is the first page which is page 0. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| total | integer |
Total number of records found for the time range specified for the request. If you include the limit parameter in the request, total could be greater than limit. If total is greater than limit, there are remaining records. To get the remaining records, do the following in the subsequent request:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| end | string |
The date and time, in UTC format, of the end of the time range being requested. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| results | object |
A JSON object containing the following information: Parameters that have null values are filtered out of the response.
|
Copyright © 2025 Enghouse Interactive. All Rights Reserved.