Client credentials to make a call

I use client credentials grant to generate a token,

Then invoke the service https://api.mypurecloud.com.au/api/v2/conversations/calls
{

"phoneNumber": "+61430xxxxxx",
"participants": [
{
"userId": "c2df51a3-c199-4fbe-xxxx-e37662fxxxxx"
}
]
}

it replied
{

"message": "This request requires a user context. Client credentials cannot be used for requests to this resource.",

"code": "not.a.user",
"status": 400

}

Does anyone know how to create a call with client credentials grant?

a 3rd party application (.NET) would like to have button click to initiate an outbound call on Purecloud browser. by passing the phone number to dial and agent's userid.

Hi yuezhong,

As far as I'm aware it's not possible to initiate a call without user context, you need to authorize the app through Implicit Grant or Code Authorization.

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