Legacy Dev Forum Posts

 View Only

Sign Up

Configuring Web Messaging Guest API for an authenticated session

  • 1.  Configuring Web Messaging Guest API for an authenticated session

    Posted 06-05-2025 18:38

    Colin_S | 2024-10-21 02:39:04 UTC | #1

    Does anyone in the community have experience with Web Messaging Guest API and authenticated sessions? Are there any worked examples of this?

    Summary

    We have a backend service that is using [Web messaging Guest API] (https://developer.dev-genesys.cloud/commdigital/digital/webmessaging/websocketapi) to establish a WebSocket connection with Genesys and transfer a chat session to a live agent.

    Problem statement

    To comply with security requirements, we need to have an authenticated session with Genesys.

    Problem details

    For proof of concept, we are using ConfigureSession action which does not have authentication: https://developer.dev-genesys.cloud/commdigital/digital/webmessaging/websocketapi#configure-a-guest-session

    With these parameters: {

    "action": "configureSession",

    "tracingId": "{{tracingId}}",

    "deploymentId": "{{deploymentId}}",

    "token": "{{token}}"

    }

    What we want to use is ConfigureAuthenticatedSession action: https://developer.dev-genesys.cloud/commdigital/digital/webmessaging/websocketapi#configure-an-authenticated-session

    It has an additional parameter "Code"

    code (required) A JWT token retrieved from Genesys [platform API URLs] (https://developer.dev-genesys.cloud/api/rest/) during user authentication.

    Assuming that the authentication has to happen before the Web Messaging session is established, are there worked examples of how to get the "Code" parameter to be passed to ConfigureAuthenticatedSession action?

    Thank you.


    Laurent_Rustuel | 2024-10-21 08:46:29 UTC | #2

    Hello and thanks for reaching out, for your question about configuration of authenticated webmessaging session, I suggest this https://help.mypurecloud.com/articles/get-started-with-authenticated-web-messaging/ I think this will help you

    Regards, Laurent


    system | 2024-11-20 08:46:47 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: 29971