Hello Team! I'm working on implementing a data action to pull the voicemail message media URI, using this API:
/api/v2/voicemail/messages/{messageId}/media. However when used genesys cloud oauth , it errors by saying "message":"This request requires a user context. Client credentials cannot be used for requests to this resource.""
I tried using SAML2 Bearer by creating a new Oauth but how in genesys cloud, would I be generating access_token using the client id and secret key? How would I create a data action to use the above voicemail API? Please advise.
Thank you for your reply. I came across this but we are going to use this in a voice application in an inbound flow. I'm having hard time understanding how to account for the redirect URI in this case and as this being an voice application , how would we generate the token , I see in the link you shared to add genesys cloud node package but how does that help for a voice application? It would be great , if you can advise for a voice application on how to use this code authorization grant and generate the access token. Thanks in advance.
Thank You Tim! The voicemail Media API documentation is wrongly stating that it works with client credentials but in reality we need to use user context. Updating the API documentation in API explorer would be great.