# Can a bot post an image?

**URL:** <https://devforum.zoom.us/t/can-a-bot-post-an-image/2618>\
**Category:** API and Webhooks\
**Created:** [November 29, 2018, 8:57am UTC](https://devforum.zoom.us/t/can-a-bot-post-an-image/2618 "2018-11-29T08:57:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bernd\_Gewehr](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bernd_gewehr/32/667_2.png) [@Bernd\_Gewehr](https://devforum.zoom.us/u/Bernd_Gewehr)\
**Post date:** [November 29, 2018, 8:57am UTC](https://devforum.zoom.us/t/can-a-bot-post-an-image/2618/1 "2018-11-29T08:57:21Z")

</div>

It would help a lot if bots were allowed to post images to the chat like users are. Any REST endpoint available for that?

---

<div class="post-metadata">

**Author:** ![Bernd\_Gewehr](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bernd_gewehr/32/667_2.png) [@Bernd\_Gewehr](https://devforum.zoom.us/u/Bernd_Gewehr)\
**Post date:** [December 3, 2018, 11:11am UTC](https://devforum.zoom.us/t/can-a-bot-post-an-image/2618/2 "2018-12-03T11:11:13Z")

</div>

I just found this very good guide for building chatbots and the article linked here is about attachments:

> **[Displaying Attachments with Image - Generating Rich-Text Bot Message Cards -...](https://marketplace.zoom.us/docs/guides/guides/building-a-chatbot/Generating-Rich-TextBot-Message-Cards/Displaying-Attachments-with-Image)**
>
> Displaying Attachments with Image
> Attachments with images can be displayed using "attachments" type in a card.
> {
> "robot\_jid":"6wl0bo64rh6o-nck1lmcpq...

This is very useful - but to be able to upload a file to a chat group first and then use these links to show the attachment would be much better. So is there an API for uploading files to a chat group?

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [December 3, 2018, 7:17pm UTC](https://devforum.zoom.us/t/can-a-bot-post-an-image/2618/3 "2018-12-03T19:17:48Z")

</div>

Hi @Bernd_Gewehr,

We’re working an API for uploading files to a chat group now. Hopefully we can have it ready for release by end of Feb 2019.

---

<div class="post-metadata">

**Author:** ![A.J](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@A.J](https://devforum.zoom.us/u/A.J)\
**Post date:** [March 22, 2019, 5:36pm UTC](https://devforum.zoom.us/t/can-a-bot-post-an-image/2618/4 "2019-03-22T17:36:03Z")

</div>

Any update on the release date? This functionality I am looking to add. My bot integrates with Pagerduty for our Devops team. In incidents there are image urls that would be great to display on the card to have more visual queues on what the alert was from and its state.

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [April 26, 2019, 10:10pm UTC](https://devforum.zoom.us/t/can-a-bot-post-an-image/2618/5 "2019-04-26T22:10:22Z")

</div>

Hi @A.J,

Apologies for the delayed response.

You can consider referring to [this article](https://marketplace.zoom.us/docs/guides/guides/building-a-chatbot/Generating-Rich-TextBot-Message-Cards/Displaying-Attachments-with-Image) to send images as attachments to your user.  
Please let me know if you have any questions.

---

<div class="post-metadata">

**Author:** ![A.J](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@A.J](https://devforum.zoom.us/u/A.J)\
**Post date:** [April 26, 2019, 11:16pm UTC](https://devforum.zoom.us/t/can-a-bot-post-an-image/2618/6 "2019-04-26T23:16:45Z")

</div>

I’ve never been able to get that attachments example to work. Posting this:  
{  
“robot\_jid”: "...@xmpp.zoom.us",  
“to\_jid”: "...@conference.xmpp.zoom.us",  
“account\_id”: “…”,  
“content”: {  
“head”: {  
“text”: “Message Header”  
},  
“body”: [{  
“type”: “attachments”,  
“resource\_url”: “[https://catalog.openebooks.us/collection/groups/book/USOEI%2FAxis%20360%20ID%2F0016542675](https://catalog.openebooks.us/collection/groups/book/USOEI%2FAxis%2520360%2520ID%2F0016542675)”,  
“img\_url”: “[https://d3pqhns20516vc.cloudfront.net/scaled/300/Content%20Cafe/ISBN/9781481446501/cover.jpg](https://d3pqhns20516vc.cloudfront.net/scaled/300/Content%20Cafe/ISBN/9781481446501/cover.jpg)”,  
“ext”: “pdf”,  
“size”: 1000  
}]  
}  
}

returns a response of:  
{“message”:null,“code”:500}

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [April 27, 2019, 12:49am UTC](https://devforum.zoom.us/t/can-a-bot-post-an-image/2618/7 "2019-04-27T00:49:49Z")

</div>

Hi @A.J

I was able to replicate your issue. I will be sending these details to our developers, so that they can fix the issue.

Thank you once again for reporting this. I will update this thread as soon as the issue is resolved.

Thanks

---

<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, 6:08pm UTC](https://devforum.zoom.us/t/can-a-bot-post-an-image/2618/8 "2020-08-21T18:08:01Z")

</div>


