Legacy Dev Forum Posts

 View Only

Sign Up

Get message history from webchats

  • 1.  Get message history from webchats

    Posted 06-05-2025 18:17

    robertosilva | 2020-04-13 18:35:26 UTC | #1

    Good afternoon. I am not able to obtain historical messages exchanged in a webchat interaction. I need a way to get these messages without being logged in to any user. I need to create a service to get these messages and record them in the database.

    Using the method below, an error occurs:

    ConversationsApi conversationsApi = new ConversationsApi(); WebChatMessageEntityList webChatMessageEntityList = new WebChatMessageEntityList(); conversationsApi.Configuration.AccessToken = GetAccessToken(); webChatMessageEntityList = conversationsApi.GetConversationsChatMessages("446fe1f9-0597-4b02-a452-851204d03d8f");

    {"Error calling GetConversationsChatMessages: {\"message\":\"Not Found\",\"code\":\"chat.error.not.found\",\"status\":404,\"messageWithParams\":\"Not Found\",\"messageParams\":{},\"contextId\":\"cfdc9cdb-4d05-453d-b866-c62fae0b5074\",\"details\":[],\"errors\":[]}"}

    Thanks.


    crespino | 2020-04-13 21:07:20 UTC | #2

    As an external service coming in via an OAuth Client Credentials grant you won't be able to get the transcript in real-time using the Conversations API because you are not a participant on the conversation.

    However, after the conversation is complete, you can get the transcript as a recording using the Recordings API. You would just need to call the /api/v2/conversations/{conversationId}/recordings endpoint and it will return you the entire transcript of the chat in the JSON response.


    system | 2020-05-14 21:06:52 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: 7529