# 14. API send message Livechat

![](file:///C:/Users/DELL/AppData/Local/Temp/msohtmlclip1/01/clip_image002.gif)

## 1. API Information <a href="#kongk6kst8l5" id="kongk6kst8l5"></a>

POST: <https://apiring.antbuddy.com/kitechat/send-message>

Header: apikey

Body:

<table data-header-hidden><thead><tr><th width="283.5999755859375" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Field</td><td valign="top">Description</td></tr><tr><td valign="top">pageId</td><td valign="top">Type: string, Required</td></tr><tr><td valign="top">conversationId</td><td valign="top">Type: string, Required</td></tr><tr><td valign="top">message</td><td valign="top">Type: Object, Required (1)</td></tr></tbody></table>

Message structure (1):

<table data-header-hidden><thead><tr><th width="284.39996337890625" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Field</td><td valign="top">Description</td></tr><tr><td valign="top">type</td><td valign="top"><p><em>Required</em></p><p>The object can contain the following fields:</p><p>-        text</p><p>-        image</p><p>-        video</p><p>-        audio</p><p>-        document</p><p>-        template</p></td></tr><tr><td valign="top">text</td><td valign="top"><em>Required for type = text</em></td></tr><tr><td valign="top">url</td><td valign="top"><em>Required for type = {image, video, audio, document}</em></td></tr><tr><td valign="top">template</td><td valign="top"><p><em>Required for type = template</em></p><p>{</p><p>    header: {</p><p>        type: “<em>text | image | video | audio | document”</em></p><p>        text: “<em>text_header</em>”,</p><p>        url: “<em>url_of_file</em>”</p><p>    },</p><p>    body: “<em>text_body</em>”,</p><p>    footer: “<em>text_footer</em>”,</p><p>    buttons: [</p><p>        {</p><p>              "type": "<em>quick_replies | web_url</em>",</p><p>               "text": "<em>text_button</em>",</p><p>               "payload":"<em>payload_for_quick_reply</em>",</p><p>               “url”: “<em>url_for_web_url</em>”</p><p>        }</p><p>    ],</p><p>    cards: [</p><p>       {</p><p>            header, body, footer, buttons // same above</p><p>        }</p><p>    ]</p><p>}</p></td></tr></tbody></table>

&#x20;         &#x20;
