# Zoom Chatbot response: { code: 7004, message: 'Not authorized.' }

**URL:** <https://devforum.zoom.us/t/zoom-chatbot-response-code-7004-message-not-authorized/56589>\
**Category:** API and Webhooks\
**Created:** [August 28, 2021, 4:21am UTC](https://devforum.zoom.us/t/zoom-chatbot-response-code-7004-message-not-authorized/56589 "2021-08-28T04:21:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![xon52](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/xon52/32/30558_2.png) [@xon52](https://devforum.zoom.us/u/xon52)\
**Post date:** [August 28, 2021, 4:21am UTC](https://devforum.zoom.us/t/zoom-chatbot-response-code-7004-message-not-authorized/56589/1 "2021-08-28T04:21:30Z")

</div>

## Using this template helps us debug your issues more effectively 🙂

**Description**  
I have been following this tutorial: [https://marketplace.zoom.us/docs/guides/chatbots/build-a-chatbot](https://marketplace.zoom.us/docs/guides/chatbots/build-a-chatbot)  
And cannot get past the response: `{ code: 7004, message: 'Not authorized.' }`

**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:  
Request:

```auto
  url: 'https://api.zoom.us/v2/im/chat/messages',
  method: 'POST',
  json: true,
  body: {
    robot_jid: 'v1mghtw-x0qzgkvewhrezlzw@xmpp.zoom.us',
    to_jid: '4fnf7wsat_wsyyp8e4torw@xmpp.zoom.us',
    account_id: '10jr53ySQGy7cpLkWAHUog',
    content: { head: [Object], body: [Array] }
  },
  headers: {
    'Content-Type': 'application/json',
    Authorization: 'Bearer [REDACTED]'       
  }
}

```

1. See error

**Screenshots (If applicable)**  
If applicable, add screenshots to help explain your problem.

**Additional context**  
I’m using a basic account - is that my problem?

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 30, 2021, 9:31pm UTC](https://devforum.zoom.us/t/zoom-chatbot-response-code-7004-message-not-authorized/56589/2 "2021-08-30T21:31:09Z")

</div>

Hi @xon52

Thanks for reaching out to Developer Support!!!

Can you please 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/f/d/fd6c511264398b53447c0b82ac2660afc54b889e.png)

Let me know if this helps.  
Regards,  
Elisa

---

<div class="post-metadata">

**Author:** ![xon52](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/xon52/32/30558_2.png) [@xon52](https://devforum.zoom.us/u/xon52)\
**Post date:** [August 31, 2021, 12:49pm UTC](https://devforum.zoom.us/t/zoom-chatbot-response-code-7004-message-not-authorized/56589/3 "2021-08-31T12:49:12Z")

</div>

Thank you for replying. I do not appear have those settings. I only have a basic account.  
I checked in [Profile - Setting](https://zoom.us/profile/setting).

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [September 2, 2021, 7:43pm UTC](https://devforum.zoom.us/t/zoom-chatbot-response-code-7004-message-not-authorized/56589/4 "2021-09-02T19:43:40Z")

</div>

Hey @xon52,

Thanks for checking. @elisa.zoom seems to be referring to the Chat Management permissions which can be found under a specific role from the [Role Management page](https://support.zoom.us/hc/en-us/articles/115001078646-Using-role-management).

Essentially, you’ll want to make sure that your user has Chat Management permissions assigned to their role.

Let me know if that helps.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![xon52](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/xon52/32/30558_2.png) [@xon52](https://devforum.zoom.us/u/xon52)\
**Post date:** [September 3, 2021, 8:39am UTC](https://devforum.zoom.us/t/zoom-chatbot-response-code-7004-message-not-authorized/56589/5 "2021-09-03T08:39:20Z")

</div>

Thanks for replying Max. For the third time, I am on a basic, free account.  
That page states Prerequisites:

- An Enterprise, Business, Education or Pro plan is required

I have entered my CC in just to see if options change and they do not. Either there is an account issue I have or the tutorial is not in fact possible using a free account (and should reflect that).

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [September 8, 2021, 12:29am UTC](https://devforum.zoom.us/t/zoom-chatbot-response-code-7004-message-not-authorized/56589/6 "2021-09-08T00:29:44Z")

</div>

Hey @xon52,

I don’t think the Basic plan is the issue here. Instead, I would make sure that you are sending a Chatbot message to a user that has authorized the Chatbot already.

> [@Not authorized to see the chat messages](https://devforum.zoom.us/t/not-authorized-to-see-the-chat-messages/25738/4):
>
> Hey @aaghili, Since the Chat message APIs are user level, you can only access the persons messages who has authorized your app. Has the user you are trying to get their messages installed your app? Thanks, Tommy

I hope that helps!

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![xon52](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/xon52/32/30558_2.png) [@xon52](https://devforum.zoom.us/u/xon52)\
**Post date:** [September 10, 2021, 9:45am UTC](https://devforum.zoom.us/t/zoom-chatbot-response-code-7004-message-not-authorized/56589/7 "2021-09-10T09:45:37Z")

</div>

I am developing this on the same account that I use for Zoom. I have followed the tutorial twice with the same result. Please see attached images for the settings of both my Personal profile and Admin management (they are both exactly the same).

Account Management → Account Settings → Zoom Apps  
 ![Screenshot_2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/9/19df37f674e43089b8677bf1fdaffdec4eaa52ed.png)

Account Management → Account Settings → Meeting → In Meeting (Basic)

 ![Screenshot_3](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/1/1174536ee1b6861cdce1b6010f96db7ac8b5abc7.png)

Where else can I access relevant settings?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [September 14, 2021, 11:01pm UTC](https://devforum.zoom.us/t/zoom-chatbot-response-code-7004-message-not-authorized/56589/8 "2021-09-14T23:01:12Z")

</div>

Hey @xon52,

Let’s set up a meeting so that I can make sure I understand the issue and we can debug this live. Please send an email to [developersupport@zoom.us](mailto:developersupport@zoom.us) with a link to this thread and I’ll reply with a link to schedule a meeting.

Thanks,  
Max

---

<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:** [October 15, 2021, 9:02am UTC](https://devforum.zoom.us/t/zoom-chatbot-response-code-7004-message-not-authorized/56589/9 "2021-10-15T09:02:01Z")

</div>

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