Hello,
My understanding is that in order to submit a webservice request to our customer's API, The API first needs to be authenticated to Genesys Cloud, and then the request to the customer's API must send the API key and secret. It seems like a dual authentication.
The request works fine in Postman:
I have created a custom auth action, which publishes automatically after being created with uneditable contracts:
The configuration for the action is editable, and I have actually created two actions:
- using code authorization for Genesys Cloud authentication
and - using client credentials for Genesys Cloud authentication
Config for Code Authorization:
Here, the variables that are supposed to come from architect are in the request body template; however, I can't edit the contracts to allow for variables from Architect to go to the data action.
Config for client credentials:
Same problem as with Code Authorization: the variables that are supposed to come from architect are in the request body template; however, I can't edit the contracts to allow for variables from Architect to go to the data action.
When I try to test both of these data actions, I get the same error:
The reason seems to be that I cannot edit the contracts to allow for input variables.
I'm not sure if I'm missing something, if I need to use an AWS lambda function for it to work, or if there needs to be another approach.
Thanks