# Send message to a channel with a script

**URL:** <https://devforum.zoom.us/t/send-message-to-a-channel-with-a-script/80162>\
**Category:** API and Webhooks\
**Created:** [December 12, 2022, 3:39pm UTC](https://devforum.zoom.us/t/send-message-to-a-channel-with-a-script/80162 "2022-12-12T15:39:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter.amberg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/peter.amberg/32/43733_2.png) [@peter.amberg](https://devforum.zoom.us/u/peter.amberg)\
**Post date:** [December 12, 2022, 3:39pm UTC](https://devforum.zoom.us/t/send-message-to-a-channel-with-a-script/80162/1 "2022-12-12T15:39:24Z")

</div>

I’m trying to send the results of automatic unit tests to a Zoom channel via script. Unfortunately, I can’t seem to find the necessary information for authentication.  
I found the related discusssion [Send chat messages via API](https://devforum.zoom.us/t/send-chat-messages-via-api/8524) . I created a ChatBot App and added it to my account. However, I don’t understand how I can get the robot\_jid of my ChatBot. Also, where can I find the channel to\_jid?

---

<div class="post-metadata">

**Author:** ![rarev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rarev/32/38939_2.png) [@rarev](https://devforum.zoom.us/u/rarev)\
**Post date:** [December 12, 2022, 11:36pm UTC](https://devforum.zoom.us/t/send-message-to-a-channel-with-a-script/80162/2 "2022-12-12T23:36:42Z")

</div>

Hi @peter.amberg,

You can find the robot\_jid when you add the endpoint URLs into your chat app and save them you’ll see the robot\_jid.

The [Get Channels response body](https://marketplace.zoom.us/docs/api-reference/zoom-api/chat-channels-account-level/getchannels#responses) you will find the `id` of the channel

Let me know if you have any other questions!

---

<div class="post-metadata">

**Author:** ![peter.amberg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/peter.amberg/32/43733_2.png) [@peter.amberg](https://devforum.zoom.us/u/peter.amberg)\
**Post date:** [December 14, 2022, 8:27am UTC](https://devforum.zoom.us/t/send-message-to-a-channel-with-a-script/80162/4 "2022-12-14T08:27:44Z")

</div>

I’m still not sure where to find the robot\_jid. When I go to Activation \> Add URL, I see only response\_type, client\_id, redirect\_uri. There is no robot\_jid here.

Also, the Get Channels endpoint needs a userId. How do I get that?

---

<div class="post-metadata">

**Author:** ![peter.amberg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/peter.amberg/32/43733_2.png) [@peter.amberg](https://devforum.zoom.us/u/peter.amberg)\
**Post date:** [December 14, 2022, 12:39pm UTC](https://devforum.zoom.us/t/send-message-to-a-channel-with-a-script/80162/5 "2022-12-14T12:39:05Z")

</div>

Apparently I also need an Account id. Where do I get this from?

---

<div class="post-metadata">

**Author:** ![rarev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rarev/32/38939_2.png) [@rarev](https://devforum.zoom.us/u/rarev)\
**Post date:** [December 14, 2022, 6:03pm UTC](https://devforum.zoom.us/t/send-message-to-a-channel-with-a-script/80162/6 "2022-12-14T18:03:14Z")

</div>

Hi @peter.amberg

Have you created a chat application under you marketplace account? If so, under the features section, you will see an option to subscribe to events, it will ask you to put in a bot endpoint URL, one for development, one for production, once you save this, you will see a production and development bot JID

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/2/8204d2869942d4ae373f6228b83e6bf3ae008dd5.png)

As for the you account ID, you can get that by making an API call to the [Get User](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/user) endpoint. You can pass the users email instead of the user ID or the ‘me’ value if it is a user-level app.

Let us know if you have any more questions.

---

<div class="post-metadata">

**Author:** ![peter.amberg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/peter.amberg/32/43733_2.png) [@peter.amberg](https://devforum.zoom.us/u/peter.amberg)\
**Post date:** [December 15, 2022, 1:55pm UTC](https://devforum.zoom.us/t/send-message-to-a-channel-with-a-script/80162/7 "2022-12-15T13:55:17Z")

</div>

Why would I need to subscribe to events? All I want, is to post a ChatBot message. The ChatBot is to be used internally by our company only. I am not at the liberty to implement an endpoint that’s open to the internet for this purpose. This is all needlessly complicated.

---

<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:** [December 19, 2023, 5:31am UTC](https://devforum.zoom.us/t/send-message-to-a-channel-with-a-script/80162/8 "2023-12-19T05:31:39Z")

</div>

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