# Chat Message API failed when using Email Link

**URL:** <https://devforum.zoom.us/t/chat-message-api-failed-when-using-email-link/20286>\
**Category:** API and Webhooks\
**Created:** [June 4, 2020, 10:23am UTC](https://devforum.zoom.us/t/chat-message-api-failed-when-using-email-link/20286 "2020-06-04T10:23:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuchu\_wang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yuchu_wang/32/753_2.png) [@yuchu\_wang](https://devforum.zoom.us/u/yuchu_wang)\
**Post date:** [June 4, 2020, 10:23am UTC](https://devforum.zoom.us/t/chat-message-api-failed-when-using-email-link/20286/1 "2020-06-04T10:23:30Z")

</div>

**Description**  
We use [chatbot API](https://marketplace.zoom.us/docs/guides/chatbots/send-edit-and-delete-messages#send-messages) to send message to users, but recently we found the API will fail when the message include [Email Link](https://marketplace.zoom.us/docs/guides/chatbots/customizing-messages/message-with-email-link).

**Error**  
Sample request:  
{  
“robot\_jid”: “[some\_robot\_jid@xmpp.zoom.us](mailto:some_robot_jid@xmpp.zoom.us)”,  
“to\_jid”: “[some\_to\_jid@xmpp.zoom.us](mailto:some_to_jid@xmpp.zoom.us)”,  
“account\_id”: “some\_account\_id”,  
“content”: {  
“head”: {  
“text”: “Test Bot”  
},  
“body”: [  
{  
“type”: “message”,  
“text”: “Zoom Support”,  
“link”: “[mailto:developersupport@zoom.us](mailto:developersupport@zoom.us)”  
}  
]  
}  
}

Response:  
{  
“code”: 7001,  
“message”: “Invalid request body format.”  
}

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Chatbot

**Which Endpoint/s?**  
[https://api.zoom.us/v2/im/chat/messages](https://api.zoom.us/v2/im/chat/messages)

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Request above API with valid authorization header and correct body
2. See error

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 9, 2020, 10:09pm UTC](https://devforum.zoom.us/t/chat-message-api-failed-when-using-email-link/20286/2 "2020-06-09T22:09:53Z")

</div>

Hey @yuchu_wang,

I was able to reproduce this issue. We are investigating now and will get back to you.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![yuchu\_wang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yuchu_wang/32/753_2.png) [@yuchu\_wang](https://devforum.zoom.us/u/yuchu_wang)\
**Post date:** [June 11, 2020, 3:41am UTC](https://devforum.zoom.us/t/chat-message-api-failed-when-using-email-link/20286/4 "2020-06-11T03:41:07Z")

</div>

Hi @tommy ,

Thanks for response, please let me know when the feature back.

Regards,  
Yuchu

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 15, 2020, 7:47pm UTC](https://devforum.zoom.us/t/chat-message-api-failed-when-using-email-link/20286/5 "2020-06-15T19:47:29Z")

</div>

Hey @yuchu_wang,

Will do, we are investigating now. (ZOOM-169709)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 16, 2020, 3:45pm UTC](https://devforum.zoom.us/t/chat-message-api-failed-when-using-email-link/20286/6 "2020-06-16T15:45:35Z")

</div>

Hey @yuchu_wang,

We have removed support for the mailto chatbot message type. Apologies for the confusion, we will update our docs. I will let you know if we bring it back.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:04pm UTC](https://devforum.zoom.us/t/chat-message-api-failed-when-using-email-link/20286/8 "2020-08-21T22:04:04Z")

</div>

Closed on August 21, 2020, 10:04pm UTC


