405 Method Not Allowed on Web Messaging typing indicator POST

  • Terraform v1.6
  • genesyscloud provider v1.50.0
  • Genesys Cloud Web Messaging Guest API

I cannot figure out why POST /api/v2/messaging/conversations/{id}/typing returns 405 Method Not Allowed even though the docs say it supports typing indicators. I am sending this JSON payload: {“type”: “typing”, “timestamp”: “2023-10-27T12:00:00Z”}. Is the endpoint path wrong for the Guest API?

Have you tried verifying the OAuth scope permissions on the access token used for the POST request? The 405 Method Not Allowed error often stems from insufficient privileges rather than an incorrect path. The endpoint /api/v2/messaging/conversations/{id}/typing requires the messaging:conversation:write scope. Ensure your token includes this scope. 1. Check the token scopes. 2. Validate the conversation ID exists. 3. Confirm the message type is supported. Use this curl command to test: curl -X POST https://api.mypurecloud.com/api/v2/messaging/conversations/{id}/typing -H "Authorization: Bearer <token>" -H "Content-Type: application/json" -d '{"type": "typing"}'. If it still fails, check the provider version.