Sends a message to chat

Each content part in the parts array is defined as follows:

PropertyTypeDescription
name*stringThe name of your part, usually the file name
type*stringThe MIME type for the part e.g. image/png
urlstringThe URL to the file data.

If this isn't specified then the data property must be
datastringFor text based types the text string, or the base64 encoded data for file based types.

If this isn't specified then the url property must be
sizestringThe size in bytes of the data for the message part

🚧

Choose URL or base64 data

You must choose to get your file data from either a URL or inline using base64 encoded data but not both!

Some common examples are given below:

"parts": [
    {
      "name": "Body text",
      "type": "text/plain",
      "data": "Bot's message to the customer"
    }
  ]
"parts": [
    {
      "name": "Picture",
      "type": "image/png",
      "url": "http://cdn.dnky.co/3rdparty/comapi/images/laptop.png"
    }
  ]
Language
Authorization
Bearer
JWT
Click Try It! to start a request and see the response here!