markoan | 2022-02-26 05:59:16 UTC | #1
We have added a platform integration using the Open Messaging webhooks and would like to be able to send status notifications like "Delivered" and "Read", but when we send the receipt notifications to the /api/v2/conversations/messages/inbound/open endpoint we get a 400 error.
Here is an example of the payload we send and the response. I cannot find any problem with the content. Can someone confirm it is correct? (I have removed the phone numbers)
genesys.postMessage Sending Open Message to genesys: {"id":"0aeabdf0-6bbc-4c2c-b751-52c512a7c460","channel":{"platform":"Open","type":"Private","messageId":"0aeabdf0-6bbc-4c2c-b751-52c512a7c460","to":{"id":"-redacted number-","nickname":"-redacted number-","firstName":"","lastName":""},"from":{"id":"3d16815e-5249-4163-9008-cce8079fbbe4","nickname":"-redacted-","firstName":"","lastName":""},"time":"2022-02-26T05:40:20Z"},"type":"Receipt","status":"Read","direction":"Outbound","isFinalReceipt":true}
✗ error Posting message failed (400: Bad Request)! {"message":"The requested operation failed with status 400","code":"bad.request","status":400,"contextId":"fbe4dd02-3679-417e-b475-be7544243f60","details":[],"errors":[]}
The documentation is not very detailed about these messages and I cant find which fields, if any, are required and which are optional.
anon11147534 | 2022-03-04 15:05:58 UTC | #2
Hi,
The documentation of POST /api/v2/conversations/messages/inbound/open lists the required and optional fields. The API explorer is helpful for building requests.
system | 2022-04-04 15:06:25 UTC | #3
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: 13718