Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  POST /api/v2/chats/users/{userId}/messages returned a 404 response

    Posted 21 hours ago

    I executed this from a Data Action. An error was displayed stating that the chat sender (From) user does not exist. However, the user shown in the error is the ID of the OAuth we are using. Could you tell me how to resolve this?


    #DataActions
    #PlatformAPI

    ------------------------------
    Takayuki Suzuki
    NA
    ------------------------------


  • 2.  RE: POST /api/v2/chats/users/{userId}/messages returned a 404 response

    Posted 19 hours ago
    Edited by Jerome Saint-Marc 19 hours ago

    Hello,

    At this time, a user context (OAuth token obtained via a user oriented OAuth flow) is necessary to send internal chat messages.

    It is not possible to send an internal chat message using a Client Credentials Grant OAuth token (i.e. not possible to send an internal chat message via a Data Action).

    You can check for existing Genesys Cloud ideas or create one and vote for it here: https://genesyscloud.ideas.aha.io/

    Regards,



    ------------------------------
    Jerome Saint-Marc
    Senior Development Support Engineer
    ------------------------------