CarlosDiaz | 2023-12-06 13:20:29 UTC | #1
Hello Guys, I present a problem since I am currently validating a genesys API, in Postman, to be able to update the status of the call, from salesforce, to a disconnected state. The problem is that when testing, postman gives me the following errors.
The configuration I tested with is: AUTORIZATION TYPE: OAUTH 2.0 HEADER PREFIX: BEARER GRAND TYPE: CLIENT CREDENTIALS ACCESS TOKEN URL: https://login.mypurecloud.com/oauth/token CLIENT ID: XX CLIENT SECRET: XX SCOPE: (EMPTY) CLIENT AUTHENTICATION: SEND CLIENT CREDENCIALS IN BODY HEADERS CONTENT-TYPE: APPLICATION/JSON
BODY: {"state": "disconnected"} API: https://api.mypurecloud.com/api/v2/conversations/calls/c090cbe9-d930-4a55-b20f-aac2b178c6ba/participants/b7d4871d-274c-41f3-bb8c-4164c326b338 METHOD: PATCH
tim.smith | 2023-12-06 13:53:52 UTC | #2
The error message is clear: client credentials cannot be used for requests to that resource. You must use any of the OAuth grants that are not client credentials to authorize the app as your user.
CarlosDiaz | 2023-12-06 16:51:23 UTC | #3
Hello Tim, thank you for your response, now I have tried to find some information that will guide me to achieve a solution, but the truth is, I have not found it. You could guide me, as an expert, on what step should be followed, or give me some document that could help me. I would really appreciate it a lot.
tim.smith | 2023-12-06 16:52:13 UTC | #4
You can find documentation on authorization here: https://developer.genesys.cloud/authorization/platform-auth/
CarlosDiaz | 2023-12-06 17:04:06 UTC | #5
Great!, thank you so much
system | 2024-01-06 17:04:15 UTC | #6
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: 23550