Skip to content

Send Message

Request

Send a message to a channel dialog.

Parameter notes: attachment.type must use a standard MIME type: https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types

Security
bearerAuth
Bodyapplication/json
bodyobject(ChannelMessageSendParams)required
curl -i -X POST \
  https://threechatai.redocly.app/_mock/apis/3chat-api/api/open/v3/butler/channel/message/send \
  -H 'Authorization: Bearer <YOUR_Access Token_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "body": {
      "dialogId": "string",
      "message": "string",
      "attachments": [
        {
          "name": "string",
          "type": "string",
          "url": "string",
          "size": 0
        }
      ],
      "emailOptions": {
        "topic": "string",
        "useAttachmentBuffer": true,
        "replyEmailMessageId": "string"
      }
    }
  }'

Responses

Headers
any
Bodyapplication/json
codeinteger
messagestring
dataobject(EntityResponseDataChannelMessageSendDTO)
Response
{ "code": 200, "message": "", "data": { "entity": { … } } }