We’re building a custom chat UI in Kotlin for Android and decided to ditch the Messenger widget entirely. Instead, we’re connecting directly to the WebSocket endpoint at wss://api.mypurecloud.com/api/v2/conversations/webchat/sessions. The connection handshake works fine, and we’re getting the session_id back in the JSON payload.
The problem is sending the actual text. I’m trying to post to POST /api/v2/conversations/webchat/sessions/{sessionId}/messages but getting a 403 Forbidden. Is there a specific header I’m missing for the guest token?