Search Live Conversations
Use the live conversations request to search for live conversations happening in realtime, you can use the request body to create complex filters for your search.
Endpoint
Method: POST
URL: /conversation/live
Request Parameter
Parameter Name | Data Type | Description | Required/Optional |
---|---|---|---|
| Number | How many live (active) calls to display per page. | Required |
| String | The token for which page of the response to see, if you want the first page of a search use | Optional |
| Array | Filter your search, the criteria to determine which conversations should be considered a match and be displayed in the response. See Filters for a detailed explanation on how filters work - how to use them in API requests and therefore how to understand them in API responses. | Optional |
For an example request, see Sample Request.
Response and Error Code
Response Code | Condition |
---|---|
200 | OK |
Response Parameters
Parameter Name | Data Type | Description |
---|---|---|
| Array | A list of currently active calls followed by a list of agents and their live monitor status. When a call is live the following sub-parameters will be displayed, When an agent is not in a live call only the following sub-parameters will be displayed, |
| String | The ID of the live conversation, this ID is used to identify the call throughout the system, in realtime and after the call has ended (post call). |
| String | The ID of your tenant. |
| String | The ID of the agent. |
| String | The full name of the agent. |
| String | The email address of the agent. |
| String | Whether the agent is in a live call or not, potential values include |
| String | The Phone number of the agent. |
| Date Time | The date and time that the conversation started, in the format |
| Integer | How long the call has been live for, in seconds. |
| String | The token for the next page of live conversations, use this token as the |
| Integer | The total count of agents in your system, idle agents are listed each page of the response. |
For an example response, see Sample Response.
Sample Request
{ "pageSize": 1, "pageToken": null, "groupFilter": null }
Sample Response
{ "liveCalls": [ { "conversationId": "735e0c4f-7ffd-4553-b82e-13e968bfc2cb", "tenantId": "67hg8362-g3d2-7g92-9273-d9h02kr83736", "agentId": "auth0|735ujf53h235bn09835d984h", "agentName": "John Doe", "agentEmail": "johndoe@domain.com", "liveMonitorStatus": "LIVE_MONITORING_STATUS_ACTIVE", "phoneNumber": "00000000", "callStart": "2024-08-13T11:00:17.861Z", "callDurationSeconds": 15 }, { "agentId": "auth0|737ghf53h235bn09835d466l", "agentName": "Amy Lee", "agentEmail": "amylee@domain.com", "liveMonitorStatus": "LIVE_MONITORING_STATUS_IDLE" } ], "nextPageToken": "eyJwYWdlX3NpemUiOjIsImNoZWNrX3N1bSI6WzEwMCwxNjEsODUsNzAsNCwwLDE5MywxNTQsOTAsMjA1LDQyLDE3OCwxNzcsMTI5LDEwNyw1N10sInRlbmFudF9pZCI6IjY2ZGQ4NDE4LWIxZDEtNGQ0Ny05MjE4LWMwZTI5YmYxMzE3MCIsImNvbnZlcnNhdGlvbl9pZCI6ImU1MmI3ZjE3LTM4ZGUtNDExZC05NjBmLWQ3ZjIyMzYyYzkyNCIsInRvdGFsX2NvdW50IjozLCJmaWx0ZXJfdmFsdWVzIjp7fX0=", "totalCount": "3" }