API responses

Your API responses must be like this to let us deliver it to your customers!

Parameters (value-type)
Status
value (string)
required
buttons (array of string, int, float or mix)
optional
images (string)
optional
type (string)
required
action (JSON object)
optional

Example
Your response should contains at least one of these arrays.
{
    [
         {
            "value": "The response message",
            "buttons": [],
            "images": null,
            "type": "text",
            "action": "",
        },
        {
            "value": "The response message with buttons",
            "buttons": ["Male","Female"],
            "images": null,
            "type": "text",
            "action": "",
        },
        {
            "value": "The response message with buttons & disabled textbox",
            "buttons": ["Male","Female"],
            "images": null,
            "type": "text",
            "action": "{disable_chat:true}",
        },
        {
            "value": "The response message with customized keyboard only for number inputs",
            "buttons": [],
            "images": null,
            "type": "text",
            "action": "{keyboard:number}",
        },
        {
            "value": "https://placehold.co/600x400",
            "buttons": [],
            "images": null,
            "type": "image",
            "action": "",
        },
        {
            "value": "Image with caption",
            "buttons": [],
            "images": "https://placehold.co/600x400",
            "type": "image",
            "action": "",
        },
        {
            "value": "https://diviextended.com/wp-content/uploads/2021/10/sound-of-waves-marine-drive-mumbai.mp3",
            "buttons": [],
            "images": null,
            "type": "audio",
            "action": "",
        },
        {
            "value": "https://downloads.videezy.com/system/protected/files/000/018/159/herbst_version2.mp4",
            "buttons": [],
            "images": null,
            "type": "video",
            "action": "",
        },
    ]
}