# Not authorized to send message from a chatbot

**URL:** <https://devforum.zoom.us/t/not-authorized-to-send-message-from-a-chatbot/53265>\
**Category:** API and Webhooks\
**Created:** [June 28, 2021, 1:25pm UTC](https://devforum.zoom.us/t/not-authorized-to-send-message-from-a-chatbot/53265 "2021-06-28T13:25:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![plm](https://avatars.discourse-cdn.com/v4/letter/p/7ba0ec/32.png) [@plm](https://devforum.zoom.us/u/plm)\
**Post date:** [June 28, 2021, 1:25pm UTC](https://devforum.zoom.us/t/not-authorized-to-send-message-from-a-chatbot/53265/1 "2021-06-28T13:25:49Z")

</div>

**Description**  
Is it mandatory to install a chatbot in order to send message?

**Error**  
My chatbot is not installed (and i don’t want to because the it’s only goal is to send messages to a channel) and when I post to im/chat/messages a message I receive the following error: {code: 7004, message: ‘Not authorized.’}

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Chatbot (authenticate with oauth/token?grant\_type=client\_credentials

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

1. Create a chatbot
2. Add scope imchat:write:admin
3. Don’t install the bot
4. Authenticate with oauth/token?grant\_type=client\_credentials
5. Get access token and call im/chat/messages

**More**  
If we must install the bot:

- can it be silent (no welcome message to hundreds of users)?
- can it be not visible?
- can I do the same with another technique (I simply want to send a message to some users when our app monitoring detect an error)

Thanks.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [June 29, 2021, 5:30pm UTC](https://devforum.zoom.us/t/not-authorized-to-send-message-from-a-chatbot/53265/2 "2021-06-29T17:30:16Z")

</div>

Hi @plm,

Installing a Chatbot is not a prerequisite for this endpoint.

However, can you make sure that you have the following view and edit permissions enabled in your Chat settings?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/7/676bf368d3993bdd2db73e8abc6fbcf200c225ac.png)

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![plm](https://avatars.discourse-cdn.com/v4/letter/p/7ba0ec/32.png) [@plm](https://devforum.zoom.us/u/plm)\
**Post date:** [July 19, 2021, 1:52pm UTC](https://devforum.zoom.us/t/not-authorized-to-send-message-from-a-chatbot/53265/3 "2021-07-19T13:52:39Z")

</div>

Hello,

Sorry for the delay.

I’m not the administrator of the account so I think that I can’t see this screen.  
Can you tell me what are the permissions I need to ask to my admin?

Thanks,

Yann.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [July 19, 2021, 10:01pm UTC](https://devforum.zoom.us/t/not-authorized-to-send-message-from-a-chatbot/53265/4 "2021-07-19T22:01:00Z")

</div>

Hi @plm,

The permissions yo ask your admin about are the ones identified in the screenshot Will shared 🙂

Gianni

---

<div class="post-metadata">

**Author:** ![plm](https://avatars.discourse-cdn.com/v4/letter/p/7ba0ec/32.png) [@plm](https://devforum.zoom.us/u/plm)\
**Post date:** [July 20, 2021, 6:37am UTC](https://devforum.zoom.us/t/not-authorized-to-send-message-from-a-chatbot/53265/5 "2021-07-20T06:37:16Z")

</div>

Okay, I may not have made myself clear: what are the checkboxes my administrator must check for me in your screenshot? Thanks.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [July 21, 2021, 8:47pm UTC](https://devforum.zoom.us/t/not-authorized-to-send-message-from-a-chatbot/53265/6 "2021-07-21T20:47:35Z")

</div>

Hi @plm,

Please ensure you have checked off the view/edit fields for the following:

- Chatbots
- Chat Channels
- Chat Messages

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![plm](https://avatars.discourse-cdn.com/v4/letter/p/7ba0ec/32.png) [@plm](https://devforum.zoom.us/u/plm)\
**Post date:** [July 26, 2021, 8:13am UTC](https://devforum.zoom.us/t/not-authorized-to-send-message-from-a-chatbot/53265/7 "2021-07-26T08:13:17Z")

</div>

Thanks. I will let you know informed if the problem is solved or not.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [July 27, 2021, 9:09pm UTC](https://devforum.zoom.us/t/not-authorized-to-send-message-from-a-chatbot/53265/8 "2021-07-27T21:09:02Z")

</div>

Thanks, @plm —keep us posted!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 27, 2021, 7:09am UTC](https://devforum.zoom.us/t/not-authorized-to-send-message-from-a-chatbot/53265/9 "2021-08-27T07:09:17Z")

</div>

Closed on August 27, 2021, 7:09am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
