Genesys Cloud - Main

 View Only
Discussion Thread View
  • 1.  Data Action - API /api/v2/conversations - Different behavior in a Data Action and in https://developer.genesys.cloud

    Posted 01-26-2023 22:44
    Why is the /api/v2/conversations have a different behavior in a Data Action and in https://developer.genesys.cloud?

    When I run the API in Genesys Cloud Developer Center it works just fine.

    Data actions returns blank

    So this is a raw request with no inputs and from what I understand the API call assumes the authentication token comes from the active user, and the data action gets the authentication token from the OAuth client configured in the Integration.

    Objective: Get the communicationid
    #ArchitectureandDesign

    ------------------------------
    Kenneth Roy Garcia
    HelloFresh
    ------------------------------


  • 2.  RE: Data Action - API /api/v2/conversations - Different behavior in a Data Action and in https://developer.genesys.cloud

    Posted 01-26-2023 23:01
    Remember that when you run in API Explorer, you are logged in as you and uses your roles/permissions for the call.  When you use a Data Action, it is based on the OAuth that is setup in the Integrations that the data action is running under.  You should check the OAuth for the roles assigned and make sure it has access to conversation details like your user.

    ------------------------------
    Robert Wakefield-Carl
    TTEC Digital, LLC fka Avtex Solutions, LLC
    Contact Center Innovation Architect
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Data Action - API /api/v2/conversations - Different behavior in a Data Action and in https://developer.genesys.cloud

    Posted 01-27-2023 00:10
    So this will always be blank? since the Oauth user will never have an interaction to begin with?

    ------------------------------
    Kenneth Roy Garcia
    HelloFresh
    ------------------------------



  • 4.  RE: Data Action - API /api/v2/conversations - Different behavior in a Data Action and in https://developer.genesys.cloud

    Posted 01-28-2023 06:49
    Edited by Jan Heinonen 01-28-2023 06:49
    Yes, Data Actions can't run APIs as a user, they can only use client credentials.
    Same applies to APIs that affect ongoing conversations and require user context.

    ------------------------------
    Jan Heinonen
    Contact Center Specialist
    GlobalConnect AB
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources