Get a Specific Interaction
Use a GET request to retrieve the details of a specific interaction. For example, IDs, names, timestamps, and statistics relevant to the interaction. You must have the INTERACTIONS_API_READ_ALL permission to retrieve the interaction details.
Request
Sample Request
curl GET https://api.cxengage.net/v1/tenants/<tenantID>/interactions/<interactionID>
Request Parameters
The table below lists and describes the parameters that you can include in the request.
| Parameter | Description |
|---|---|
tenantID required UUID | The tenant's unique identifier. |
interactionID required UUID | The interaction's unique identifier. |
Response
Sample Response
The request returns JSON structured like the example below:
{
"tenantId": "2336d1ec-c956-47e1-b3b1-fe8fde81b2b4",
"customerAbandonTime": 94.166,
"endTimestamp": "2017-12-07T19:22:07.638Z",
"flowId": "28219e00-82b6-11e7-b08f-6e56a766befb",
"interactionTime": 94.244,
"segments": [
{
"segmentNumber": 0,
"segmentCancelled": true,
"interactionSegmentId": "b2233520-db83-11e7-b86d-6aa612aefe9d",
"segmentStartType": "interaction",
"endTimestamp": "2017-12-07T19:22:07.560Z",
"segmentEndType": "customer-disconnect",
"segmentCancelTime": 94.166,
"startTimestamp": "2017-12-07T19:20:33.394Z",
"segmentTime": 94.166
}
],
"interactionId": "b2109780-db83-11e7-9709-c2b07aa3bee9",
"contactPoint": "+15065551111",
"customer": "+15065552222",
"customerHolds": 0,
"details": {
"endTimestamp": "2017-12-07T19:22:07.638Z",
"interactionId": "b2109780-db83-11e7-9709-c2b07aa3bee9",
"contactPoint": "+15065551111",
"customer": "+15065552222",
"csat": null,
"startTimestamp": "2017-12-07T19:20:33.394Z",
"agents": [],
"direction": "inbound",
"contactId": null,
"channelType": "voice"
},
"startTimestamp": "2017-12-07T19:20:33.394Z",
"ivrTime": 0.173,
"flowName": "Basic Flow",
"queues": [
{
"queueEntryLength": 1,
"interactionSegmentId": "b2233520-db83-11e7-b86d-6aa612aefe9d",
"queueAbandonTime": 93.993,
"platformQueueId": 743,
"queueAbandoned": true,
"endTimestamp": "2017-12-07T19:22:07.560Z",
"slaAbandoned": true,
"queueExitType": "abandon",
"queueEntryType": "ivr",
"interactionQueueId": "b23cb090-db83-11e7-95f3-204e8fcfa723",
"queueType": "queue",
"startTimestamp": "2017-12-07T19:20:33.567Z",
"queueName": "Support",
"queueTime": 93.993,
"slaTime": 93.993,
"queueId": "3703e470-834a-11e7-b08f-6e56a766befb"
}
],
"direction": "inbound",
"channelType": "voice"
} Response Parameters
For an overview of the structure of the JSON response, see Response Structure.
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.
For each interaction, the following parameters might be returned:
| Parameter | Description |
|---|---|
| tenantID | The unique identifier of the tenant. |
| flagged | Flagged interactions may have missing data associated with them. Valid values are true or null. |
| endTimestamp | The date and time, in UTC, that the interaction ended. |
| flowId | The unique identifier of the flow. |
| interactionId | The unique identifier of the interaction.. |
| contactPoint | The phone number or email address that the customer contacted. |
| customer | The phone number or email address of the customer. |
| messagingTranscript | The transcript of the SMS conversation. |
| notes | The note that the agent wrote for the interaction. |
| startTimestamp | The date and time, in UTC, that the interaction started. |
| audioRecording | A link to the audio recording if recording was enabled for the flow that received the interaction. |
| dispositionName | The human-readable description of the disposition assigned to the interaction. |
| dispositionId | The unique identifier of the disposition assigned to the interaction. |
| flowName | The human-readable name of the flow. |
| direction | The direction of the interaction, either inbound or outbound. |
| contactId | The contact's unique identifier. |
| channelType | The channel of the interaction such as voice, email, or SMS. |
| hooks | If the interaction is linked with a record from a third-party Customer Relationship Manager (CRM) or ticketing system, the following attributes are returned:
|
| segments | Each entry in this object provides data about the segments of the customer interaction. The following attributes are returned for each segment:
|
| agents | Each entry in this object includes agent-related data. Each entry provides data from when an agent is allocated until the agent is deallocated in the interaction. The following attributes are returned for each agent:
|
| queues | Each entry in this object provides queue-related data when a customer enters a queue until an agent accepts the interaction. The following attributes are returned for each queue:
|