Legacy Dev Forum Posts

 View Only

Sign Up

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

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

    Posted 06-05-2025 18:11

    mvishwanath | 2017-02-14 21:15:46 UTC | #1

    Hello,

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

    Is there a way?

    Thanks!


    tim.smith | 2017-02-14 21:26:24 UTC | #2

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


    mvishwanath | 2017-02-14 21:56:44 UTC | #3

    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"}]}}


    tim.smith | 2017-02-15 13:49:55 UTC | #4

    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.


    mvishwanath | 2017-02-15 14:09:59 UTC | #5

    Thanks Tim.

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


    tim.smith | 2017-02-15 17:24:29 UTC | #6

    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


    system | 2017-08-28 19:32:07 UTC | #7


    This post was migrated from the old Developer Forum.

    ref: 922