We’ve got a custom messaging channel wired up via the Digital First Omnichannel API. Text messages flow through fine. The moment we try to send a structured quick reply payload, the gateway throws a 400.
Here’s the JSON we’re POSTing to /api/v2/dfo/channels/{channelId}/messages:
{
"guestId": "guest-123",
"content": {
"type": "structured",
"structured": {
"type": "quick_reply",
"text": "Choose an option",
"options": [
{
"title": "Option 1",
"payload": "opt1"
},
{
"title": "Option 2",
"payload": "opt2"
}
]
}
}
}
The error response is just "error": "Invalid message structure". No specifics. We’ve tried swapping structured for payload in the root object, but that just breaks text messages. Is there a specific schema version or wrapper we’re missing for the DFO endpoint? The standard Web Messaging SDK handles this automatically, but we’re bypassing it for our custom integration.