Hi,
I trying to follow the documentations related to send/receive messages via Guest Chat API described on Guest Chat API and I got stucked when I try to send message from guest to agent.
I was able to get a valid access token via /login.mypurecloud.com/oauth/token.
Create a ACD conversation with /api/v2/webchat/guest/conversations.
Connect via webscoket to the uri provided on creation (eventStreamUri).
Get the messages sent by the agent from PureCloud Platform and its memberId.
But I was NOT able to send messages from guest to agent via /api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/messages. Instead I'm getting a "You are not authorized to perform the requested . For memberId, I'm using the one specified on sender message received from agent.
I'm using an App created with Grant Type Client Credentials from where I get Client Id and CLient Secret to get the accessToken which I use for the rest of operations. It app also is set with Roles WebChat Development.
Any idea.
Thanks in advance.