Get engagement queue

get

/engagement/api/consumer/{fqSiteName}/v1/getEngagementQueue

This operation is used to retrieve engagement queue and queue statistics.
The JSON object passed as the URL parameter is defined as follows and must be URL encoded -
{
"interfaceId": 0,
"interfaceName":"string",
"productId": 0,
"categoryId": 0,
"organizationId": 0,
"customFields": [{"name":"STRING", "type":"", "value":"STRING"}]
}
All fields in the custom field object are optional, however if a 'value' is supplied, the 'type' must be one of the following...
BOOLEAN, DATE, DATETIME, INTEGER, LONG, STRING, DECIMAL

Request

Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

The request completed successfully.
Body ()
Root Schema : com.rightnow.chat.rest.consumer_api.model.responses.v1.GetEngagementQueueResponse
Type: object
Show Source

400 Response

The validation of the request object failed.
Body ()
Root Schema : schema
Type: object

404 Response

The resource was not found.
Body ()
Root Schema : schema
Type: object

500 Response

An error occurred in the chat server while processing the request.
Body ()
Root Schema : schema
Type: object
Back to Top

Examples

The following example shows how to retrieve engagement queue and queue statistics.

cURL Command Example

curl -X GET https://chat_rest_server_domain.com/engagement/api/agent/day001_221100_sql_001h/v1/getEngagementQueue?request=%7B%0D%0A%22interfaceId%22%3A1%2C%0D%0A%22interfaceName%22%3Anull%2C%0D%0A%22productId%22%3Anull%2C%0D%0A%22categoryId%22%3Anull%2C%0D%0A%22organizationId%22%3Anull%2C%0D%0A%22customFields%22%3Anull%0D%0A%7D -H 'Content-Type: application/json; charset=UTF-8'

Response Header Example

The following shows an example of the response header.

Status: 200 OK
Content-Type: application/json;charset=utf-8

Response Body Example

The following shows an example of the response body in JSON format.

{
  "queueId": 1,
  "queueIdString": "1",
  "expectedWaitSeconds": 0,
  "expectedWaitSecondsString": "0",
  "availableAgentSessions": 0,
  "totalAvailableAgents": 0,
  "totalUnavailableAgents": 0,
  "totalAgentsRequestingNewEngagement": 0,
  "outsideOperatingHours": false,
  "engagementsInQueue": 0
}
Back to Top