How to setup Oauth for Conversation API(Context based) to send and email from agent script

Hello Team,

I wanted to send an email using agent script(just executing Data Action with single click). I setup a GCDA with Oauth as well as Implicit Grant but still the Data actions throws same error message while testing.(its works fine with API explorer)

I approved the client ID as well under Authorized Apps. but still no luck.

Please let me know Is there any other way to authenticate the users (I don't want to go with Third party apps or external webserver). do I need to write an extra code for authentication process.

Error Message>>
"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

The APi I am using is : POST /api/v2/conversations/emails

Cheers,
Dev

Hello,

Genesys Cloud Data Actions only support OAuth Client Credentials Grant flow (and client).

Regards,

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