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
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.