OAuth Type to be used in Data Actions for /api/v2/conversations

Hi there, I am trying to use Genesys Cloud Data Actions to perform a conference call using the POST /api/v2/conversations/calls/{conversationId}/participants

However, I got the below error

Client credentials cannot be used for requests to this resource

I know that Client Credentials cannot be used for api with User context. I haved then tried using other grant type (e.g. implicit grant) when creating Outh Client, but then it returns:

{"error":"unauthorized_client","description":"client is not authorized to use the client_credential grant type","error_description":"client is not authorized to use the client_credential grant type"}

So my question is : Is there any method to use the data action UI to call this api ? Or I must write my own application with other OAuth grant type to do this?

Thanks a lot!
Kelvin

Hi Kelvin,

As far as I know there really isn't a workaround as Data Actions can only use Client Credentials. So if you need to call APIs that require user context, you'd need to build an app/service that has user authentication (Implicit grant or Code Auth).

I see. It would be great if Data actions can support other OAuth Grant type too. Anyway thanks a lot!

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