Hi Cameron,
Thank you for your reply.
Now as I know client credentials will not help me here so I had create Code Auth grant type as below pic.
But no idea what should I mention in callback URI (we don't have any web server) so I was using these Client id & secret key to get authenticate to call API https://api.mypurecloud.com.au/api/v2/conversations/calls/8b639aee-1f36-400a-9f43-2dfba1002310/participants/2a596d69-eec9-40da-8562-83b5be511776.
But this also giving the same error.
Questions now
* which integration & data action types I need to use here?
- what grant types need here?
- If Code Authorization needed what will be redirect URI?

------------------------------
Dimple Saggi
------------------------------
Original Message:
Sent: 02-26-2025 09:05
From: Cameron Tomlin
Subject: Conversation API access issue
Hello Dimple.
For Data Actions, you will need to use Client Credentials specifically. The error is what's thrown if you are not using client credentials to execute a data action--so, I'm unsure why you would see the same error when configuring the integration to use an ouath client with that specific grant type.
When using client credentials it's also important to make sure the oauth client has appropriate roles in the correct divisions as well.
Could you provide me an image of the oauth client setup so I can examine for potential issues? Please be sure to scrub the client secret since that should stay secure.
It's also important to note that for client credentials, user context is not taken into account, so it will not matter what permissions you have when running the data action. The data action will only be looking for authorization from the oauth client itself and what permissions it has.
Cheers,
------------------------------
Cameron
Online Community Manager/Moderator
Original Message:
Sent: 02-25-2025 22:25
From: Dimple Saggi
Subject: Conversation API access issue
I need to execute /api/v2/conversations/calls/${input.conversationId}/participants/${input.participantId} API on button click in scripts.
I created a data action with client credentials but getting error: "This request requires a user context. Client credentials cannot be used for requests to this resource"
Can anybody help me how I can access this API in script?
#API/Integrations
------------------------------
Dimple Saggi
------------------------------