Daniel_Toye | 2019-02-20 18:29:41 UTC | #1
Is there a way to get the current conversation for a given user?
I notice /api/v2/conversations does work for the current user, but not for a given user.
I notice /api/v2/analytics/conversations/details/query doesn't allow filtering by the userId dimension.
Thanks!
Becky_Powell | 2019-02-20 18:50:44 UTC | #2
Hi Daniel,
You can use a Segment Filter to filter by the userId dimension.
Here's an example from our Analytics Query Builder:
{
"interval": "2019-02-20T05:00:00.000Z/2019-02-21T05:00:00.000Z",
"order": "asc",
"orderBy": "conversationStart",
"paging": {
"pageSize": 25,
"pageNumber": 1
},
"segmentFilters": [
{
"type": "and",
"predicates": [
{
"type": "dimension",
"dimension": "userId",
"operator": "matches",
"value": "1f9a1143-xxxx-xxxx-xxxxxxxxxxxx"
}
]
}
]
}
Best, Becky
Daniel_Toye | 2019-02-20 18:59:14 UTC | #3
Thanks! That will work for our needs.
system | 2019-03-23 18:59:18 UTC | #4
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: 4631