Jason_Wu | 2023-04-25 10:58:27 UTC | #1
I want to call api /api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult by Java, 'cause i want to create a customed consult transfer function. yes, i have used client id and client credentials, but it was rejected by Genesys with: Client credentials cannot be used for requests to this resource
How could i solve this problem, maybe ,how could i get user context, since we call the api by backend. or, are there any other replacement apis for consult transfer which can use client credentials
Any help would be appreciated, Thank you very much
tim.smith | 2023-04-25 15:21:47 UTC | #2
Jason_Wu, post:1, topic:19623
i have used client id and client credentials, but it was rejected by Genesys with: Client credentials cannot be used for requests to this resource
This is behaving as expected; some resources don't work with client credentials and will throw this error. Your app must be authorized using a user-based grant, which is any of the supported OAuth flows except client credentials. You can find documentation an an explanation of each of the grants here: https://developer.genesys.cloud/authorization/platform-auth/#authorization-types.
Jason_Wu | 2023-04-26 08:06:02 UTC | #3
Tim, Thank you for your reply
I have read the document, so, it is advised/suggested to call the api by frontend using grant type Authorization Code Grant, right?
tim.smith | 2023-04-26 13:57:22 UTC | #4
The auth code grant is one of the supported oauth grants. Which one you should use depends on your application's architecture.
system | 2023-05-27 13:57:58 UTC | #5
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: 19623