# Geeting error in chat "Unsupported type of message" when sending message from chatbot

**URL:** <https://devforum.zoom.us/t/geeting-error-in-chat-unsupported-type-of-message-when-sending-message-from-chatbot/120585>\
**Category:** Chat\
**Created:** [November 8, 2024, 7:48am UTC](https://devforum.zoom.us/t/geeting-error-in-chat-unsupported-type-of-message-when-sending-message-from-chatbot/120585 "2024-11-08T07:48:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![albin](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@albin](https://devforum.zoom.us/u/albin)\
**Post date:** [November 8, 2024, 7:48am UTC](https://devforum.zoom.us/t/geeting-error-in-chat-unsupported-type-of-message-when-sending-message-from-chatbot/120585/1 "2024-11-08T07:48:29Z")

</div>

I’m using the following endpoint to send a message to a user on behalf of chatbot.  
**[https://api.zoom.us/v2/im/chat/messages](https://api.zoom.us/v2/im/chat/messages)**  
with following payload

```auto

{
  "robot_jid": "<bot jid>",
  "to_jid": "<to jid>",
  "user_jid": "<to user jid>",
  "content": {
    "head": {
      "text": "I am a header",
      "sub_head": {
        "text": "I am a sub header"
      }
    },
    "body": [{
      "type": "message",
      "text": "I am a message with text"
    }]
  }
}

```

I’m getting API response status code as **201** created with message\_id in response.

**Error?**  
I’m getting error **Unsupported type of message** in chat window in webapp. But I’m getting it correct in zoom windows app.

**Webapp**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/c/0c91c215ed28c9e759d32b2b5b3f5ffe9b64ae57.png)

**Windows app**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/9/79ddef421ba19c5c2a5d30f1ed0f693a16de5b48.png)
