POST to /api/v2/conversations/messaging/sessions/{session_id}/messages returns a 400 Bad Request. The text field is present and valid, but adding the structuredMessage object breaks it.
Payload looks like this:
{
"to": { "id": "session_id_here" },
"text": "Pick one",
"structuredMessage": {
"type": "quickReply",
"quickReplies": [
{ "label": "Option A", "value": "a" }
]
}
}
Docs say structuredMessage is optional, but the response body just says Invalid request body. I’ve tried removing text (fails), changing type to card (fails), and validating the JSON schema locally. The session is active and I can send plain text fine. What’s the exact schema requirement for the nested object here?