Change to WebMessaging Guest API

Description

The syntax for sending inbound messages with attachments has changed.
Previously, the structure was
"message": {
"type": "Text",
"text": "my text message"
},
"attachmentIds": [
"00000000-0000-0000-0000-000000000000",
"11111111-1111-1111-1111-11111111111111"
],

and the new syntax is now

"message": {
"type": "Text",
"text": "my text message"
},
"content": [
{
"contentType": "Attachment",
"attachment": {
"id": "00000000-0000-0000-0000-000000000000"
}
},
{
"contentType": "Attachment",
"attachment": {
"id": "11111111-1111-1111-1111-11111111111111"
}
}
],

Official documentation is here https://developer.genesys.cloud/api/digital/webmessaging/websocketapi

Change Category

API

Change Context

Using the NormalizedMessage syntax to keep the API consistent.

Change Impact

The old syntax still works but will be eventually removed.

Date of Change

26/Jan/22

Impacted APIs

WebMessaging Guest API

References

SHYRKA-980

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