Kelvin_Lau | 2020-10-19 03:53:29 UTC | #1
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":"unauthorizedclient","description":"client is not authorized to use the clientcredential grant type","errordescription":"client is not authorized to use the clientcredential 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
anon28885283 | 2020-10-19 03:58:13 UTC | #2
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).
Kelvin_Lau | 2020-10-19 04:03:21 UTC | #3
I see. It would be great if Data actions can support other OAuth Grant type too. Anyway thanks a lot!
system | 2020-11-19 04:03:24 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 9096