Example: Including Null Values in a Response
This example demonstrates how to use a GET request to retrieve interactions and include parameters with null values in the response.
Request
Sample Request
The request below returns interactions and includes parameters with null responses:
curl GET https://api.cxengage.net/v1/tenants/0e73a980-6557-11e6-b1b9-ca81484488df/interactions?green=false
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. |
Response
Sample Response
The request returns JSON structured like the example below:
{ "tenantId": "0e73a980-6557-11e6-b1b9-ca81484488df", "customerAbandonTime": null, "monitors": [], "ivrAbandoned": null, "thirdPartyTime": null, "hooks": [], "campaignId": null, "flagged": null, "customerHoldTime": null, "endTimestamp": "2017-12-07T19:27:48.405Z", "flowId": "f3207a30-1a2a-11e7-9873-1b92cd79a0c3", "customerTransfers": null, "leadId": null, "customerConversationTime": 22.72, "customerTalkTime": 22.72, "interactionTime": 46.578, "segments": [ { "segmentConsultTime": null, "segmentNumber": 0, "segmentCancelled": null, "interactionSegmentId": "99a96130-db84-11e7-b86d-6aa612aefe9d", "agentId": null, "interactionAgentId": null, "transfer": null, "segmentStartType": "interaction", "addParticipantTime": null, "addParticipant": null, "segmentToAgentId": "0383c270-6b93-11e6-83b4-ca81484488df", "endTimestamp": "2017-12-07T19:27:34.792Z", "segmentEndType": "success", "transferTime": null, "segmentExtensionValue": null, "segmentCancelTime": null, "segmentExtensionType": null, "addParticipantHandedOff": null, "startTimestamp": "2017-12-07T19:27:01.827Z", "segmentTime": 32.965, "segmentThirdParty": null } ], "interactionId": "9998bf60-db84-11e7-9709-c2b07aa3bee9", "contactPoint": "+15065551234", "customerResponseTimes": [], "customer": "+15065551235", "customerSatisfactionScore": 10, "customerHolds": 0, "campaignVersion": null, "campaignRunId": null, "details": { "endTimestamp": "2017-12-07T19:27:48.405Z", "interactionId": "9998bf60-db84-11e7-9709-c2b07aa3bee9", "contactPoint": "+15065551234", "customer": "+15062618924", "csat": 10, "startTimestamp": "2017-12-07T19:27:01.827Z", "agents": [ { "conversationStartTimestamp": "2017-12-07T19:27:10.779Z", "conversationEndTimestamp": "2017-12-07T19:27:34.144Z", "agentId": "0383c270-6b93-11e6-83b4-ca81484488df", "agentName": "Betty Agent", "dispositionId": "89c2d1d0-332d-11e6-8dd4-c88eee4d9f61", "dispositionName": "Issue resolved", "noteTitle": null } ], "direction": "inbound", "contactId": null, "channelType": "voice" }, "customerHoldAbandoned": null, "messagingTranscript": null, "notes": [], "startTimestamp": "2017-12-07T19:27:01.827Z", "ivrAbandonTime": null, "ivrTime": 0.216, "audioRecording": null, "dispositionName": "Issue resolved", "noEnqueuement": null, "dispositionId": "89c2d1d0-332d-11e6-8dd4-c88eee4d9f61", "agents": [ { "responseTimes": [], "platformAgentId": 71, "agentWorkAccepted": true, "agentName": "Betty Agent", "agentWorkOfferTime": 7.023, "agentWrapUpTime": null, "sessionId": "6f145920-db84-11e7-80f5-bb59d9e3b1bd", "interactionSegmentId": "99a96130-db84-11e7-b86d-6aa612aefe9d", "agentId": "0383c270-6b93-11e6-83b4-ca81484488df", "interactionAgentId": "9a9ebdb0-db84-11e7-816a-c7c1ef97bf27", "agentReplyTime": null, "agentWorkRejectedTime": null, "endTimestamp": "2017-12-07T19:27:34.792Z", "agentHandleTime": 23.365, "agentWorkCancelTime": null, "agentInitiatedHoldTime": null, "agentNoReply": null, "agentHolds": null, "agentHoldTime": null, "agentFocusTime": null, "startTimestamp": "2017-12-07T19:27:03.435Z", "dispositionName": "Issue resolved", "tenantAgentId": 419, "agentConversationTime": 23.365, "dispositionId": "89c2d1d0-332d-11e6-8dd4-c88eee4d9f61", "agentInReplyTime": null, "agentReadTime": null, "agentInitiatedHolds": null, "queueId": "da75d1d0-686c-11e6-bab5-2a8ecd302b89", "agentTalkTime": 23.365, "agentWorkAcceptedTime": 7.023, "agentCustomerHoldAbandon": null } ], "flowName": "Voice Flow with Script", "queues": [ { "queueCallbackRequested": null, "queueEntryLength": 1, "interactionSegmentId": "99a96130-db84-11e7-b86d-6aa612aefe9d", "agentId": "0383c270-6b93-11e6-83b4-ca81484488df", "queueCallbackAnswered": null, "queueAbandonTime": null, "platformQueueId": 40, "queueAbandoned": null, "endTimestamp": "2017-12-07T19:27:10.779Z", "slaAbandoned": null, "queueCallbackUnanswered": null, "queueCancelTime": null, "queueExitType": "success", "queueCallbackTime": null, "queueEntryType": "ivr", "interactionQueueId": "99c96c50-db84-11e7-95f3-204e8fcfa723", "queueType": "queue", "startTimestamp": "2017-12-07T19:27:02.043Z", "queueExitLength": null, "queueName": "Sales", "queueTime": 8.736, "slaTime": 8.736, "queueId": "da75d1d0-686c-11e6-bab5-2a8ecd302b89", "timeToAnswer": 8.736 } ], "direction": "inbound", "contactId": null, "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:
|