Example: Searching Interactions for Specific Third-party System
This example demonstrates how to use a GET request to retrieve interactions that are linked to Zendesk ticket records.
Request
Sample Request
The request below returns a list of interactions that are linked to a specific Zendesk ticket:
curl GET https://api.cxengage.net/v1/tenants/0e73a980-6557-11e6-b1b9-ca81484488df/interactions?hookType=zendesk&hookSubType=ticket&hookId=26359162568
Request Parameters
The table below lists the parameters you can include in a request:
Parameter | Required? | Type | Description |
---|---|---|---|
tenantId | yes | UUID | The tenant's unique identifier. |
type | no | string | Type zendesk . |
hookSubType | no | string | Type ticket . |
Response
Sample Response
The request returns JSON structured like the example below:
{ "tenantId": "2336d1ec-c956-47e1-b3b1-fe8fde81b2b4", "limit": 10, "offset": 0, "tenantName": "Your Tenant", "page": null, "hookSubType": "ticket", "total": 1, "tenantTimezone": "US/Eastern", "results": [ { "tenantId": "2336d1ec-c956-47e1-b3b1-fe8fde81b2b4", "hooks": [ { "interactionHookId": "ccf42b31-c557-11e7-9c00-e7ff9ff8d805", "hookSubType": "ticket", "agentId": "e05468e0-82b1-11e7-b08f-6e56a766befb", "hookType": "zendesk", "hookedBy": "26303434627", "hookId": "415", "timestamp": "2017-11-09T14:10:54.947Z" }, { "interactionHookId": "e2494a11-c557-11e7-9c00-e7ff9ff8d805", "hookSubType": "user", "agentId": "e05468e0-82b1-11e7-b08f-6e56a766befb", "hookType": "zendesk", "hookName": "Bob Jones", "hookedBy": "26303434627", "hookId": "26359162568", "timestamp": "2017-11-09T14:11:30.737Z" } ], "endTimestamp": "2017-11-09T14:12:05.323Z", "flowId": "28219e00-82b6-11e7-b08f-6e56a766befb", "customerConversationTime": 102.243, "customerTalkTime": 102.243, "interactionTime": 109.604, "segments": [ { "endTimestamp": "2017-11-09T14:13:07.077Z", "interactionSegmentId": "b5927370-c557-11e7-9c00-e7ff9ff8d805", "segmentEndType": "success", "segmentStartType": "interaction", "segmentToAgentId": "e05468e0-82b1-11e7-b08f-6e56a766befb", "startTimestamp": "2017-11-09T14:10:15.719Z", "segmentNumber": 0, "segmentTime": 171.358 } ], "interactionId": "0d8b3d92-5f24-4ffa-8bbe-cb4aca4240d9", "contactPoint": "+15065551111", "customer": "+15065552222", "customerHolds": 0, "startTimestamp": "2017-11-09T14:10:15.719Z", "ivrTime": 1.138, "dispositionName": "Issue resolved", "dispositionId": "89c2d1d0-332d-11e6-8dd4-c88eee4d9f61", "agents": [ { "platformAgentId": 15184, "agentWorkAccepted": true, "agentName": "Kris Agent", "agentWorkOfferTime": 2.725, "agentWrapUpTime": 61.712, "sessionId": "05200a00-c554-11e7-8aba-0fc9cd50d3ff", "interactionSegmentId": "b5927370-c557-11e7-9c00-e7ff9ff8d805", "agentId": "e05468e0-82b1-11e7-b08f-6e56a766befb", "interactionAgentId": "b79e4900-c557-11e7-b5e2-9a5ac3da6edd", "endTimestamp": "2017-11-09T14:13:07.077Z", "agentHandleTime": 164.262, "startTimestamp": "2017-11-09T14:10:19.152Z", "dispositionName": "Issue resolved", "tenantAgentId": 8376, "agentConversationTime": 102.55, "dispositionId": "89c2d1d0-332d-11e6-8dd4-c88eee4d9f61", "queueId": "3703e470-834a-11e7-b08f-6e56a766befb", "agentTalkTime": 102.55, "agentWorkAcceptedTime": 2.725 } ], "flowName": "Basic Flow", "queues": [ { "queueEntryLength": 1, "interactionSegmentId": "b5927370-c557-11e7-9c00-e7ff9ff8d805", "agentId": "e05468e0-82b1-11e7-b08f-6e56a766befb", "platformQueueId": 743, "endTimestamp": "2017-11-09T14:10:22.129Z", "queueExitType": "success", "queueEntryType": "ivr", "interactionQueueId": "b5a697b0-c557-11e7-a497-576bd37493df", "queueType": "queue", "startTimestamp": "2017-11-09T14:10:16.857Z", "queueName": "Support", "queueTime": 5.272, "slaTime": 5.272, "queueId": "3703e470-834a-11e7-b08f-6e56a766befb", "timeToAnswer": 5.272 } ], "direction": "inbound", "channelType": "voice" } ] } }
Response Parameters
Your response may include statistics that are not described in this reference. For more information about the statistics that are returned, see the Data Dictionary.
The table below lists and describes the parameters that can be returned in the response.
Parameter | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
page | The page number for the page of results returned in the request. | ||||||||||||||||||||||||||||||||||||||||||||
limit | The number of interactions to return per page. The default is 10. The maximum is 1000. | ||||||||||||||||||||||||||||||||||||||||||||
offset | The offset, if specified, from the request. For example, the request might show interactions from page 10. | ||||||||||||||||||||||||||||||||||||||||||||
tenantId | The tenant’s unique identifier. | ||||||||||||||||||||||||||||||||||||||||||||
total | The number of interactions on the tenant. | ||||||||||||||||||||||||||||||||||||||||||||
tenantTimeZone | The human readable name of the time zone for the tenant. | ||||||||||||||||||||||||||||||||||||||||||||
results |
For each interaction, the following parameters might be returned:
|