Fetch Dispositions
The Fetch Dispositions API retrieves the disposition of the given contact.
Endpoint
Method: GET
URL: dispositions/{contactId}
Header Parameter
Authorization Bearer <Token>
Path Parameter
Parameter name | Mandatory/ Optional | Type | Description |
---|---|---|---|
| Mandatory | string | Id of the contact whose disposition needs to be fetched |
Example Request
curl -H “Authorization: Bearer 911999706310ffbcb32981863e23ce72d5e60d7b” -XGET http://host:port/dispositions/{contactId}
Example Response
{ "sessionId": "c4nq0x0o", "startTime": 1595385702431, "lang": "en-us", "metadata": { "agentId": "Agent", "customerId": "customer", "contactType": "voice", "journeyId": "c4nq0x0o", "tenantId": "1", "organizationId": "2", "categoryId": "76" }, "isReviewed": true, "resolution": { "hierarchy": "Hotel/Booking/Inquery/Accepted", "data": "[{\"level\":\"Call Type\",\"value\":\"Hotel\"},{\"level\":\"Service Type\",\"value\":\"Booking\"},{\"level\":\"Issue Type\",\"value\":\"Inquery\"},{\"level\":\"Status\",\"value\":\"\"},{\"level\":\"Level-5\",\"value\":\"\"}]" }, "manualEdits": { "userId": "1", "ts": 1598356053000, "hierarchy": "Hotel/Booking/Inquery/Declined", "data": "[{\"level\":\"Call Type\",\"value\":\"Hotel\"},{\"level\":\"Service Type\",\"value\":\"Booking\"},{\"level\":\"Issue Type\",\"value\":\"Inquery\"},{\"level\":\"Status\",\"value\":\"\"},{\"level\":\"Level-5\",\"value\":\"\"}]" } }
Response and Error Codes
Code | Response |
---|---|
200 | OK – The request was successful |
401 | {“reason”:”Authentication failed”} |
404 | Record Not Found |
500 | {“error”: “Internal server error”} |