Sending web chat messages through API

Hi,

I am trying to use
POST /api/v2/conversations/chats/{conversationId}/communications/{communicationId}/messages
as per the documention > https://developer.genesys.cloud/commdigital/digital/webchat/agentchat.

But I am getting a 404 not found error in the API explorer. I'm trying to find the communicationId from the GET /api/v2/conversations/{conversationId} API but none of the id's work.

These are the steps I was performing:

  1. Send a chat to a queue
  2. Received the chat message by myself as an agent
  3. In the API explorer (user is the same as the agent), I retrieved communicationId from this API> GET /api/v2/conversations/{conversationId}. I took the id from participant (agent) obect > "chats"
  4. Execute POST /api/v2/conversations/chats/{conversationId}/communications/{communicationId}/messages from the API explorer

Result was 404 NOT Found

I tried all the id's that I can get under the participant object but all resulted to 404. Can you please let me know what am I doing wrong?

Hello,

The POST /api/v2/conversations/chats/{conversationId}/communications/{communicationId}/messages endpoint is not supported with WebChat v1 (Contact Center Widget with version 1.0).
I think that's why you are getting a 404 Not Found.
You can try with Widget Version 2 (I think it also works with 1.1).

Regards,

Thanks for the response, it worked using version 2!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.