Liezl_Tamunday | 2023-08-07 08:16:10 UTC | #1
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:
- Send a chat to a queue
- Received the chat message by myself as an agent
- 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"
- 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?
Jerome.Saint-Marc | 2023-08-07 08:59:16 UTC | #2
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,
Liezl_Tamunday | 2023-08-14 09:01:20 UTC | #3
Thanks for the response, it worked using version 2!
system | 2023-09-14 09:01:43 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 21340