# Use JWT App to post message on the Zoom channels

**URL:** <https://devforum.zoom.us/t/use-jwt-app-to-post-message-on-the-zoom-channels/57569>\
**Category:** API and Webhooks\
**Created:** [September 16, 2021, 5:55pm UTC](https://devforum.zoom.us/t/use-jwt-app-to-post-message-on-the-zoom-channels/57569 "2021-09-16T17:55:10Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mythili](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mythili/32/31137_2.png) [@Mythili](https://devforum.zoom.us/u/Mythili)\
**Post date:** [September 16, 2021, 5:55pm UTC](https://devforum.zoom.us/t/use-jwt-app-to-post-message-on-the-zoom-channels/57569/1 "2021-09-16T17:55:10Z")

</div>

Team, Our usecase is to send alerts/notification messages to different zoom channels from our Java Application. So, We created a JWT app on zoom marketplace with the intention to post the messages to the channels. But I couldn’t find the API which takes the JWT token to post the message.

Could you please share me the REST API for the same ? I see there is a chatbot-app option. But our usecase is simple, we don’t need a two-way communication with the user or any other functionality. We just need to post a message (one-way). Is this feasible through JWT app?

---

<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:** [September 20, 2021, 2:16pm UTC](https://devforum.zoom.us/t/use-jwt-app-to-post-message-on-the-zoom-channels/57569/2 "2021-09-20T14:16:39Z")

</div>

Hi @Mythili,

Thanks for reaching out about this.

To clarify, JWT does not support sending a chat message to a Zoom channel. This will require OAuth/Chatbot app type. Using a Chatbot app, you can authorize requests to this API:

> **[Send chatbot messages - Chatbot Messages - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/chatbot-messages/sendchatbot)**
>
> Send chatbot messages from your marketplace chatbot app.
> Scopes: imchat:bot
> Rate Limit Label: Medium
> Authorization Flow: Client Credentials Flow
> To get...

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![Mythili](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mythili/32/31137_2.png) [@Mythili](https://devforum.zoom.us/u/Mythili)\
**Post date:** [September 22, 2021, 8:48pm UTC](https://devforum.zoom.us/t/use-jwt-app-to-post-message-on-the-zoom-channels/57569/3 "2021-09-22T20:48:05Z")

</div>

Hi @will.zoom ,

Thanks for the clarification. Would like to seek one more clarification. As our usecase is to post message on our customers’ zoom channels , We would need the channel id to post the message. Is there a way to get the channel id/link manually ? ( not through API)

---

<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:** [September 24, 2021, 2:31pm UTC](https://devforum.zoom.us/t/use-jwt-app-to-post-message-on-the-zoom-channels/57569/4 "2021-09-24T14:31:02Z")

</div>

Hi @Mythili,

I’m afraid there’s not a way to retrieve Channel IDs from the UI that I’m aware of. This would require you to leverage one of our Chat Channel endpoints, such as:

> **[List user's channels - Chat Channels - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/chat-channels/getchannels)**
>
> Use this API to list a user's chat channels. For user-level apps, pass the me value instead of the userId parameter.
> 
> Zoom chat channels allow users to ...

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![Mythili](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mythili/32/31137_2.png) [@Mythili](https://devforum.zoom.us/u/Mythili)\
**Post date:** [September 27, 2021, 11:07am UTC](https://devforum.zoom.us/t/use-jwt-app-to-post-message-on-the-zoom-channels/57569/5 "2021-09-27T11:07:33Z")

</div>

Hi @will.zoom ,

Thanks again for the response. Does this mean the users have to create oAuth app (to use oAuth token) even to fetch the channel ids?

---

<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:** [September 29, 2021, 9:50am UTC](https://devforum.zoom.us/t/use-jwt-app-to-post-message-on-the-zoom-channels/57569/6 "2021-09-29T09:50:43Z")

</div>

Hi @Mythili,

That’s correct. However, you could create 1 account-level OAuth App which would be authorized by an account Admin or Owner, and this would grant you an access\_token that could authorize requests on behalf of any user under the account.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![Mythili](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mythili/32/31137_2.png) [@Mythili](https://devforum.zoom.us/u/Mythili)\
**Post date:** [October 25, 2021, 3:20am UTC](https://devforum.zoom.us/t/use-jwt-app-to-post-message-on-the-zoom-channels/57569/8 "2021-10-25T03:20:35Z")

</div>

[**@will.zoom**](https://devforum.zoom.us/u/will.zoom)

Thanks for your reply.

I tried creating a “Chatbot” in Zoom MarketPlace.I have created only for “Development Phase”. (I’m yet to publish in PROD) and I have clicked on “install” as well. I’m facing below issues. could you help?

1. I tried using “DEV” credentials (Base64 encoding) to get the bearer token , by referring - [https://marketplace.zoom.us/docs/api-reference/zoom-api/chatbot-messages/sendchatbot](https://marketplace.zoom.us/docs/api-reference/zoom-api/chatbot-messages/sendchatbot)  
But , I get the error “Invalid client\_id or client\_secret”. Is there any other API should be used for “DEV” bots? what could be reason?

2. As I mentioned in the above comments , My BOT is going to be a one-way communication. i.e. Only BOT can post message on zoom channels. Users shouldn’t contact BOT. In this case , Is it still needed to to mention the valid End-point URL for BOT? can it be any dummy URL?

---

<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:** [October 26, 2021, 11:00pm UTC](https://devforum.zoom.us/t/use-jwt-app-to-post-message-on-the-zoom-channels/57569/9 "2021-10-26T23:00:05Z")

</div>

Hey @Mythili,

I’m happy to help out here!

> [@Mythili](#):
>
> I tried using “DEV” credentials (Base64 encoding) to get the bearer token , by referring - [https://marketplace.zoom.us/docs/api-reference/zoom-api/chatbot-messages/sendchatbot](https://marketplace.zoom.us/docs/api-reference/zoom-api/chatbot-messages/sendchatbot)  
> But , I get the error “Invalid client\_id or client\_secret”. Is there any other API should be used for “DEV” bots? what could be reason?

When it comes to using Chat Bot credentials to make an OAuth request, you’ll want to make sure that you are installing and authorize the OAuth portion separately. We have more information on this at the following URL:

> **[How to get a Chatbot Token](https://devsupport.zoom.us/hc/en-us/articles/360060332891-How-to-get-a-Chatbot-Token)**
>
> In order to send a Chatbot Message, you need to generate a Chatbot Token.
> Important: Chatbot Tokens are different than OAuth Access Tokens. Chatbot Tokens use the OAuth2 Client Credentials Grant Ty...

> [@Mythili](#):
>
> As I mentioned in the above comments , My BOT is going to be a one-way communication. i.e. Only BOT can post message on zoom channels. Users shouldn’t contact BOT. In this case , Is it still needed to to mention the valid End-point URL for BOT? can it be any dummy URL?

You’ll want to make sure the endpoint always returns a 200 OK status.

I hope that helps! Let me know if you have any questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![Mythili](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mythili/32/31137_2.png) [@Mythili](https://devforum.zoom.us/u/Mythili)\
**Post date:** [October 27, 2021, 6:48am UTC](https://devforum.zoom.us/t/use-jwt-app-to-post-message-on-the-zoom-channels/57569/10 "2021-10-27T06:48:06Z")

</div>

@MaxM ,

Thanks for the Reply.

I have followed the same approach which is been mentioned in [https://devsupport.zoom.us/hc/en-us/articles/360060332891-How-to-get-a-Chatbot-Token](https://devsupport.zoom.us/hc/en-us/articles/360060332891-How-to-get-a-Chatbot-Token) to get the token. please refer the attached snapshot. I can share my BOT details and credentials in private if needed. Could you pls help?

 ![Screenshot 2021-10-26 at 12.04.30 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/2/32e2e8cb04064ed2f76db9447c1ea0eea33c8647.png)

---

<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:** [October 29, 2021, 10:58pm UTC](https://devforum.zoom.us/t/use-jwt-app-to-post-message-on-the-zoom-channels/57569/11 "2021-10-29T22:58:41Z")

</div>

Hey Mythili,

To share any private details, please submit a ticket through our [Developer Support Center](https://devsupport.zoom.us/hc/en-us) and include a link to this thread.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![Mythili](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mythili/32/31137_2.png) [@Mythili](https://devforum.zoom.us/u/Mythili)\
**Post date:** [October 31, 2021, 6:40pm UTC](https://devforum.zoom.us/t/use-jwt-app-to-post-message-on-the-zoom-channels/57569/12 "2021-10-31T18:40:08Z")

</div>

Thanks @MaxM .

I have raised [https://support.zoom.us/hc/en-us/requests/12638982](https://support.zoom.us/hc/en-us/requests/12638982)

---

<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:** [November 3, 2021, 11:13pm UTC](https://devforum.zoom.us/t/use-jwt-app-to-post-message-on-the-zoom-channels/57569/13 "2021-11-03T23:13:19Z")

</div>

Hey @Mythili,

Thank you! I’m still working to test this on my end and will follow up with you in the ticket.

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:** [December 4, 2021, 9:13am UTC](https://devforum.zoom.us/t/use-jwt-app-to-post-message-on-the-zoom-channels/57569/14 "2021-12-04T09:13:39Z")

</div>

Closed on December 4, 2021, 9:13am UTC

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