Legacy Dev Forum Posts

 View Only

Sign Up

How to get info on members in a conversation

  • 1.  How to get info on members in a conversation

    Posted 06-05-2025 18:17

    akshunds | 2020-05-14 10:39:40 UTC | #1

    Hi. I ran a webchat and tested it through developer tools and my own Purecloud account. I want to make an API request to display info on the members of the chat, but its not working. Does anyone know what I'm doing wrong? I have set up an OAuth 2 Client Credentials token.


    Jerome.Saint-Marc | 2020-05-14 11:17:59 UTC | #2

    Hello,

    You are using a request that belongs to the Guest Chat API (customer side) and that requires an access token which is provided in the Create Chat Response (the jwt token). See here: https://developer.mypurecloud.com/api/webchat/guestchat.html#create_chat_response

    You cannot invoke this request using a PureCloud OAuth Client Credentials token, nor an OAuth Implicit Grant token nor and OAuth Authorization Grant flow token. This request is only to be invoked with the jwt Token that customer receives when initiating the chat.

    If you want to see the list of participants in a chat, you can invoke a GET on /api/v2/conversations/chats/{conversationId} or a GET on /api/v2/conversations/{conversationId}. This will provide back the list of participants in the conversation, with their type ("purpose" attribute under each participant) and with their userId if they are agents (user.id under the agent participants when using GET on /api/v2/conversations/chats/{conversationId}, and userId under the agent participants when using GET on /api/v2/conversations/{conversationId})

    Regards,


    system | 2020-06-14 11:18:00 UTC | #3

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