Is there a way to fetch Email Conversations of all users?

Hello,

I have a situation to get the email conversations of all the users..

Is there a way?

Thanks!

Use an analytics conversation detail query and specify a filter for mediaType=email.

I am unable to get the data though its 200 OK. And I have an email conversation. Below is the API

POST : https://api.{{environment}}/api/v2/analytics/conversations/details/query
Body :

{"interval":"2016-02-10T05:00:00.000Z/2016-02-15T05:30:00.000Z","filter":{"type":"and","predicates":[{"type":"property","dimension":"mediaType","value":"email"}]}}

I am unable to get the data though its 200 OK

Do you mean the result set is empty? Make sure there are actually emails during the interval you've specified. Also, check out the Developer Tools to test out analytics queries if you're not already familiar with it.

Thanks Tim.

I have email conversation and am getting empty response.
FYI, am using Oauth client credentials for authentication.

Oh, I see what you did. filter is not a valid property. You need to use segmentFilters to filter by mediaType. See the documentation for the resource for more information: POST /api/v2/analytics/conversations/details/query