14. API send message Livechat

1. API Information
POST: https://apiring.antbuddy.com/kitechat/send-message
Header: apikey
Body:
Field
Description
pageId
Type: string, Required
conversationId
Type: string, Required
message
Type: Object, Required (1)
Message structure (1):
Field
Description
type
Required
The object can contain the following fields:
- text
- image
- video
- audio
- document
- template
text
Required for type = text
url
Required for type = {image, video, audio, document}
template
Required for type = template
{
header: {
type: “text | image | video | audio | document”
text: “text_header”,
url: “url_of_file”
},
body: “text_body”,
footer: “text_footer”,
buttons: [
{
"type": "quick_replies | web_url",
"text": "text_button",
"payload":"payload_for_quick_reply",
“url”: “url_for_web_url”
}
],
cards: [
{
header, body, footer, buttons // same above
}
]
}
Last updated