Legacy Dev Forum Posts

 View Only

Sign Up

Chat history with Web Messaging Guest API

  • 1.  Chat history with Web Messaging Guest API

    Posted 06-05-2025 18:36

    Stephan_Ben | 2023-02-09 14:53:58 UTC | #1

    Hi,

    Is it possible to obtain a previous conversation's message history using the Web Messaging Guest API?

    I am aware there is documentation here -> https://developer.genesys.cloud/commdigital/digital/webmessaging/websocketapi#retrieve-message-history but the steps are a little unclear. I am using the API server for my region but what is the endpoint that I hit to obtain the JWT? I am using a custom UI and am able to establish a websocket connection and generate the token. I just get 404's when trying to hit variations of the webmessaging endpoint to obtain the JWT from a Guest Webmessaging conversation.


    Frederic_Thomas | 2023-02-09 18:19:58 UTC | #2

    Hi Stephan,

    to get the GWT to use in the Rest API, you should us the websocket connection and send the command getJwt with your token session.

    let me know if it's not clear enough or if you are facing another issue

    regard


    system | 2023-03-11 18:20:26 UTC | #3

    This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 18347