Legacy Dev Forum Posts

 View Only

Sign Up

Show realtime user conversations

  • 1.  Show realtime user conversations

    Posted 06-05-2025 18:20

    jilles.wielaard | 2021-09-17 07:47:26 UTC | #1

    Hi,

    I'm trying to create a realtime conversations overview for a user. For this I'm subscribing on the "v2.users.{id}.conversations" topic. This only gives me new updates, so i also need to get the current conversations. For this i'm using the "/api/v2/analytics/conversations/details/query" endpoint. The problem is that both schema's are different. The only solution i see is to call the " /api/v2/conversations/{conversationId}" endpoint for every conversation returned from the "/api/v2/analytics/conversations/details/query" endpoint. This doesn't look good, but i don't see another solution. Am I missing something?

    Regards, Jilles


    Jerome.Saint-Marc | 2021-09-20 06:06:21 UTC | #2

    Hello,

    If you are leveraging a user context related OAuth grant flow, to obtain your authorization token (e.g. Token Implicit Grant, Authorization Code Grant, SAML2 Bearer Grant, PKCE Authorization Code Grant), then, you can use GET /api/v2/conversations to get the active conversations for the logged in user.

    Regards,


    jilles.wielaard | 2021-09-20 07:08:19 UTC | #3

    Hi,

    But i'm looking from a supervisor perspective. I need to get the active conversations from another user.

    Regards, Jilles


    Jerome.Saint-Marc | 2021-09-20 07:15:37 UTC | #4

    Then, the analytics query is the right method to get the list of conversation details for your other user.

    And if you need to retrieve the participant attributes/data for each of these conversations, you'll have to use the GET /api/v2/conversations/{conversationId} request for each. Apart from participant data, the information in conversation details is overall similar to what's in the conversation context (just set under different attributes/structures).

    Regards,


    system | 2021-10-21 07:16:12 UTC | #5

    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: 12040