Hi,
Is there a certain expiration time for a chat's conversation id or is it alive only till chat is connected?. I have looked through documentations and couldn't find anything related to this. If their is an expiration time, is there any API to query that?
Edit: Maybe what I'm looking for is to query the chat's state (active/inactive) via an API, I found this should give the state of the conversation but I'm getting for each participant not for the whole chat itself. Doc referenced - https://developer.genesys.cloud/routing/conversations/conversations-apis#get-api-v2-conversations--conversationId-
API - /api/v2/conversations/{conversationId}
Result -
{
"id": "4709b21d-bc22-418a-8c6d-4ededb31bd39",
"startTime": "2022-07-18T11:59:59.734Z",
"endTime": "2022-07-18T12:08:27.440Z",
"participants": [
{
"id": "bc41b6bd-f304-4ded-ba11-1ae7838e658c",
"startTime": "2022-07-18T11:59:59.734Z",
"endTime": "2022-07-18T12:08:27.437Z",
"connectedTime": "2022-07-18T11:59:59.734Z",
"name": "Sophia Griffin",
"purpose": "customer",
"wrapupRequired": false,
"attributes": {
"context.firstName": "Sophia",
"context._genesys_OS": "Windows",
"context.lastName": "Griffin"
},
"calls": [],
"callbacks": [],
"chats": [
{
"state": "disconnected",
"id": "1279b232-5b65-48e8-9da2-a44b0af20f0f",
"segments": [
{
"startTime": "2022-07-18T11:59:59.734Z",
"endTime": "2022-07-18T12:08:27.437Z",
"type": "Interact",
"howEnded": "Disconnect",
"disconnectType": "client"
}
],
"held": false,
"direction": "inbound",
"disconnectType": "client",
"connectedTime": "2022-07-18T11:59:59.742Z",
"disconnectedTime": "2022-07-18T12:08:27.437Z",
"provider": "PureCloud Webchat v2",
"afterCallWork": {},
"afterCallWorkRequired": false,
"initialState": "connected"
}
],
"cobrowsesessions": [],
"emails": [],
"messages": [],
"screenshares": [],
"socialExpressions": [],
"videos": []
},
{
"id": "79055ba6-5153-4f02-9013-c123c791035a",
"startTime": "2022-07-18T11:59:59.735Z",
"endTime": "2022-07-18T12:08:27.440Z",
"connectedTime": "2022-07-18T11:59:59.735Z",
"purpose": "workflow",
"wrapupRequired": false,
"attributes": {
"context.Flow Name": "NON PROD - CI_Chat_SM"
},
"calls": [],
"callbacks": [],
"chats": [
{
"state": "disconnected",
"id": "8d607298-aaaf-4580-a5b6-2339e4edca34",
"segments": [
{
"startTime": "2022-07-18T11:59:59.735Z",
"endTime": "2022-07-18T12:08:27.440Z",
"type": "Interact",
"howEnded": "Disconnect",
"disconnectType": "peer"
}
],
"held": false,
"direction": "inbound",
"disconnectType": "peer",
"connectedTime": "2022-07-18T11:59:59.768Z",
"disconnectedTime": "2022-07-18T12:08:27.440Z",
"provider": "PureCloud Webchat v2",
"afterCallWork": {},
"afterCallWorkRequired": false,
"initialState": "connected"
}
],
"cobrowsesessions": [],
"emails": [],
"messages": [],
"screenshares": [],
"socialExpressions": [],
"videos": []
}
],
"recordingState": "NONE",
"divisions": [
{
"division": {
"id": "c5f2133b-1d5e-4a47-874e-2fa088d0258f",
"selfUri": "/api/v2/authorization/divisions/c5f2133b-1d5e-4a47-874e-2fa088d0258f"
},
"entities": [
{
"id": "25d84675-d5ac-4198-82bc-b9c6e61a3891",
"selfUri": "/api/v2/flows/25d84675-d5ac-4198-82bc-b9c6e61a3891"
}
]
}
],
"selfUri": "/api/v2/conversations/4709b21d-bc22-418a-8c6d-4ededb31bd39"
}
Thanks,
Sridevi