Parvinder_Verint | 2023-01-17 12:27:20 UTC | #1
Hi,
Endpoint: /api/v2/analytics/conversations/details/query
I got following social conversation which I want to query on the basis of end time. I tried the following interval but its not working. May I know what interval I should use to fetch my conversation? "interval": "2023-01-17T00:00:00.000Z/2023-01-17T23:00:00.000Z",
Social Conversation: "id": "61d3a34b-daa8-4153-8f60-930496848ed8", "startTime": "2023-01-13T17:46:18.181Z", "endTime": "2023-01-17T09:39:51.758Z",
Regards, Parvinder
Ebenezer_Osei | 2023-01-18 14:33:54 UTC | #2
Hi, you can filter for conversationEnd and see if that works. Here is a sample query: https://developer.genesys.cloud/devapps/api-explorer?requestConfig=eyJvcGVyYXRpb25JZCI6InBvc3RBbmFseXRpY3NDb252ZXJzYXRpb25zRGV0YWlsc1F1ZXJ5IiwiYm9keSI6eyJjb252ZXJzYXRpb25GaWx0ZXJzIjpbeyJ0eXBlIjoiYW5kIiwiY2xhdXNlcyI6W3sicHJlZGljYXRlcyI6W3sidHlwZSI6ImRpbWVuc2lvbiIsImRpbWVuc2lvbiI6ImNvbnZlcnNhdGlvbkVuZCIsInZhbHVlIjoiMjAyMy0wMS0xN1QwOTozOTo1MS43NThaIn1dfV19XX0sImhlYWRlcnMiOltdfQ==#post-api-v2-analytics-conversations-details-query
Regards
Parvinder_Verint | 2023-01-18 14:53:17 UTC | #3
Hello,
We are already using following request/body as per the guidance of the API: But it's not working. Our social conversation started on 13th Jan 2023. So until I use "13th Jan 2023" i.e. the start time of the conversation in interval, it doesn't return anything.
Request:
POST https://api.usw2.pure.cloud/api/v2/analytics/conversations/details/query {
"order": "asc",
"orderBy": "conversationStart",
"interval": "2023-01-17T00:00:00.000Z/2023-01-17T23:59:59.999Z",
"paging": {
"pageSize": 100,
"pageNumber": 1
},
"conversationFilters": [
{
"type": "and",
"predicates": [
{
"type": "dimension",
"dimension": "conversationEnd",
"operator": "exists"
}
]
}
],
"segmentFilters": [
{
"type": "or",
"predicates": [
{
"type": "dimension",
"dimension": "mediaType",
"value": "message"
}
]
}
]
}
Response: {
"totalHits": 0
}
Please let me know if we are missing anything in the request body.
Regards, Parvinder
Ebenezer_Osei | 2023-01-18 16:07:51 UTC | #4
Please double-check your interval. Looks like you are using the same day.
ralegner | 2023-01-18 16:23:27 UTC | #5
For a conversation starting on the 13th but having activity on the 17th, you would still need your interval to touch the 13th. This is a limitation that's documented here: https://developer.genesys.cloud/analyticsdatamanagement/analytics/detail/#interval
If you don't require realtime data, you can leverage the conversation details jobs endpoint which can operate without this limitation. This is further explained here https://developer.genesys.cloud/analyticsdatamanagement/analytics/jobs/conversation-details-job#differences-to-conversation-detail-queries
Parvinder_Verint | 2023-01-18 17:06:38 UTC | #6
Sure. Many Thanks. I am able to submit the job request but getting its status is failing. I used environment as "usw2.pure.cloud".
Request: POST https://api.{{environment}}/api/v2/analytics/conversations/details/jobs
Response: { "jobId": "34c2cfad-67cd-4d18-a0c7-bfd63b3d6591" }
Request: GET https://api.{{environment}}/api/v2/analytics/conversations/details/jobs/34c2cfad-67cd-4d18-a0c7-bfd63b3d6591
Response: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML>
<HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>ERROR: The request could not be satisfied</TITLE> </HEAD>
<BODY> <H1>403 ERROR</H1> <H2>The request could not be satisfied.</H2> <HR noshade size="1px"> Bad request. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. <BR clear="all"> If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation. <BR clear="all"> <HR noshade size="1px"> <PRE> Generated by cloudfront (CloudFront) Request ID: V9Eoakj7an2_fDX63pooWaj7GwBKykVWw8HasL5Old3tY0Ln-REgBg== </PRE> <ADDRESS> </ADDRESS> </BODY>
</HTML>
Parvinder_Verint | 2023-01-23 16:06:55 UTC | #7
Parvinder_Verint, post:6, topic:18015
environment as "usw2.pure.cloud".
Any update on the error reported above on conversation details job API?
tim.smith | 2023-01-23 20:05:28 UTC | #8
@Parvinder_Verint please review your code to be sure you haven't made any typos for that request, giving a specific eye to the hostname and path. That isn't an error from the Platform API service. This means either there's a bug in your code and the request isn't being made the way you think it is or there's something wrong within the Genesys Cloud infrastructure that's producing that error. If it's the latter, you'll need to open a case with Genesys Cloud Care to investigate further.
Parvinder_Verint | 2023-01-26 12:59:31 UTC | #9
Sure. Many Thanks. It's working now.
system | 2023-02-26 13:00:11 UTC | #10
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 18015