Legacy Dev Forum Posts

 View Only

Sign Up

Client credentials to make a call

  • 1.  Client credentials to make a call

    Posted 06-05-2025 18:02

    yuezhong | 2020-10-14 03:15:11 UTC | #1

    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.


    anon28885283 | 2020-10-14 03:30:34 UTC | #2

    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.


    system | 2020-11-14 03:30:35 UTC | #3

    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: 9058