# Can my server send messages to my zoom users?

**URL:** <https://devforum.zoom.us/t/can-my-server-send-messages-to-my-zoom-users/48722>\
**Category:** API and Webhooks\
**Created:** [April 23, 2021, 1:25pm UTC](https://devforum.zoom.us/t/can-my-server-send-messages-to-my-zoom-users/48722 "2021-04-23T13:25:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![richard.harper](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/richard.harper/32/20091_2.png) [@richard.harper](https://devforum.zoom.us/u/richard.harper)\
**Post date:** [April 23, 2021, 1:25pm UTC](https://devforum.zoom.us/t/can-my-server-send-messages-to-my-zoom-users/48722/1 "2021-04-23T13:25:53Z")

</div>

My organization would like to send messages to our company Zoom users based on different events that happen throughout our organization.  
I expected to use JWT with a bearer token but the documentation says that an OAuth2 app is required. OAuth2 requires a redirect URL to be setup but I am not using any kind of public web application for this project.  
Any help on how to solve this issue will be much appreciated.

---

<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:** [April 24, 2021, 1:07am UTC](https://devforum.zoom.us/t/can-my-server-send-messages-to-my-zoom-users/48722/2 "2021-04-24T01:07:53Z")

</div>

Hey @richard.harper,

Thank you for reaching out to the Zoom Developer Forum. In order to use an OAuth app, you will at least want to have an endpoint that is able to complete the OAuth flow. When testing, you can use something like [Ngrok](https://ngrok.io/) to create an HTTPS secured tunnel to your local server.

However, due to performance, reliability and maintenance concerns, using Ngrok on production isn’t recommended.

Let me know if you have any questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![richard.harper](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/richard.harper/32/20091_2.png) [@richard.harper](https://devforum.zoom.us/u/richard.harper)\
**Post date:** [April 25, 2021, 11:55am UTC](https://devforum.zoom.us/t/can-my-server-send-messages-to-my-zoom-users/48722/3 "2021-04-25T11:55:23Z")

</div>

Thank you for the quick response. I have one question related to your response.  
Assuming I have one endpoint in production to complete the OAuth flow, will a user be required to respond to a browser at the endpoint or can it be pure, server to server communication?  
Thank You,  
Richard

---

<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:** [April 26, 2021, 5:37pm UTC](https://devforum.zoom.us/t/can-my-server-send-messages-to-my-zoom-users/48722/4 "2021-04-26T17:37:50Z")

</div>

Good question, @richard.harper.

Our OAuth flow requires that a user is redirected in the browser after authorizing an app. We don’t currently have a pure server-to-server connection/flow for OAuth. The alternative at the moment would be to utilize [JWT](https://marketplace.zoom.us/docs/guides/build/jwt-app) authorization.

Let me know if this helps!  
Will

---

<div class="post-metadata">

**Author:** ![richard.harper](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/richard.harper/32/20091_2.png) [@richard.harper](https://devforum.zoom.us/u/richard.harper)\
**Post date:** [May 14, 2021, 3:04pm UTC](https://devforum.zoom.us/t/can-my-server-send-messages-to-my-zoom-users/48722/5 "2021-05-14T15:04:40Z")

</div>

Thank you, will.zoom. My research shows that JWT cannot be used to send a chatbot message. Please correctly if I am misunderstanding.

I am now able to send the chatbot message using the “Client Credentials” flow as specified here:

> **[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...

Regards,

Richard

---

<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:** [May 14, 2021, 11:23pm UTC](https://devforum.zoom.us/t/can-my-server-send-messages-to-my-zoom-users/48722/6 "2021-05-14T23:23:42Z")

</div>

Hey @richard.harper,

Yes, that is correct. The Chatbot APIs required end-user authorization and therefore use OAuth.

Let me know if you have any questions.

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:** [June 14, 2021, 9:24am UTC](https://devforum.zoom.us/t/can-my-server-send-messages-to-my-zoom-users/48722/7 "2021-06-14T09:24:28Z")

</div>

Closed on June 14, 2021, 9:24am UTC

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