Sending messages to and from zoom

Our requirement is creating a mediator app to get the messages from the zoom and send the messages to zoom

We created an app in the zoom and added webhook url in the app to get the messages from the zoom and send the messages to zoom, here we are using grant_type: ‘client_credentials’ and get the token and then pass the token generated from the client_credentials grant_type to Send a chat message API(POST /chat/users/{userId}/messages) to send the messages to user but here if we pass the token generated from client_credentials grant_type to send message api(POST /chat/users/{userId}/messages) this error is getting “Invalid access token.”, Is there any grant_type is there to send messages to send message api(POST /chat/users/{userId}/messages) other than using grant_type: ‘authorization_code’, because it requires user interaction means user context user should grant permission by logging-in with username and password after redirecting, we don’t want User interaction(user Context) in our requirement, Please provide any other grant_types are there without user interaction(user context)

You can create a Server-to-Server app and do a POST request to https://zoom.us/oauth/token?grant_type=account_credentials&account_id= to get the access_token

In that app, you can add event subscriptions for your webhook.

The access_token will expire every 1 hour, so you can schedule a script to refresh it every 30min or so.

Hope that helps.

Thank you for your reply, i already tried with grant_type=account_credentials but when i create a Server-to-Server app and add test Event notification endpoint URL in event subscription i am getting Please validate your endpoint URL.error is coming, Is it because of test url i used or what ?

If i use production url this error goes ?

For testing purpose i used some test webhook url from the google and pasted in the Event notification endpoint URL in event subscription to test the webhook is getting received messages from zoom or not but its giving validation error then, How Can i test whether webhook is getting received to and from messages from zoom? Can you help on this.

and one more question:
If we generate token using grant_type=account_credentials Can pass that token to Send a chat message API(POST /chat/users/{userId}/messages) to send the messages to user without user interaction(user Context) ?

Hi Anh Nguyen,

When i create a Server-to-Server app, Even i added public production webhook url in the Event notification endpoint URL in event subscription i am getting “URL validation failed. Try again later.”.validation error , Can you help me how to resolve this error ?

Thanks for information hope that work

Hi Anh Nguyen, dareveggen,

Can you reply to the above question which i asked ?

the question is — When i create a Server-to-Server app, Even i added public production webhook url in the Event notification endpoint URL in event subscription i am getting “URL validation failed. Try again later.”.validation error , Can you help me how to resolve this error ?

Hi Anh Nguyen, dareveggen,

Now the Event notification endpoint webhook URL which i added in the event subscription is validated successfully but the webhook is not receiving any messages from zoom, Let me know any events needs to be added in the configuration to trigger webhook to receive messages, i added some events but the webhook is not getting triggered even i added the events, Could you please tell me what are all events to add to trigger webhook.

Hi Anh Nguyen,

Chat Message event is not there to subscribe the Chat message event in the event subscription in server-to- server app , then which event captures chat messages from zoom workplace to trigger the webhook ?

Hi durga,

Glad you figured out the endpoint URL.

What events have you added? Also, please provide some context of what action would trigger your webhook.

Please provide any other grant_types are there without user interaction(user context) Webhook does need some kind of action to trigger the app to send data to your endpoint.

Hi Anh Nguyen,

I need Chat Message event(Chat message sent, Chat message updated, Chat message deleted and Chat message replied)

but those are not present in server-to- server app to subscribe the Chat message event in the event subscription , then which event captures chat messages from zoom workplace to trigger the webhook ?

Hi Anh Nguyen,

if an external user sends a message to our business account the webhook is not getting triggered and also not displaying messages from external user, If i Chat with external User from business account, the webhook is getting triggered and dispalying this chat_message.sent event and messages also from business account user, What we need to do to trigger webhook and display messages from external user ?

Could you please come to call or arrange a call i will explain my requirement.

Hi Anh Nguyen,

Could you please answer to this query ?

if an external user sends a message to our business account the webhook is not getting triggered and also not displaying messages from external user, If i Chat with external User from business account, the webhook is getting triggered and dispalying this chat_message.sent event and messages also from business account user, What we need to do to trigger webhook and display messages from external user ?

Could you please come to call or arrange a call i will explain my requirement.

Hi Anh Nguyen,

Please point me in the right direction, whether i am doing something wrong or some other method is there to achieve this flow

My requirement is , I am trying to achieve connector between zoom and my contact center and I am building a mediator app which will be listening to the webhook of zoom business account and also my contact center, so whenever customer sends a message i want to listen to the webhook of zoom business account and send it to the my contact center and if my contact center sends a message i want to send it back to the customer, i tested with account credentials grant type authorization and i am not getting the external user messages in the webhook So how exactly we can achieve this for internal user and external user.

If we want to listen to external user messages in the webhook what exactly need to be done ?

Hi @Anh Nguyen,

Please reply to the above question.

Hi @zoomrecords @Anh Nguyen,

Please reply to the above question.

Hi @zoomrecords @Anh Nguyen,

Please point me in the right direction, whether i am doing something wrong or some other method is there to achieve this flow

My requirement is , I am trying to achieve connector between zoom and my contact center and I am building a mediator app which will be listening to the webhook of zoom business account and also my contact center, so whenever customer sends a message i want to listen to the webhook of zoom business account and send it to the my contact center and if my contact center sends a message i want to send it back to the customer, i tested with account credentials grant type authorization and i am not getting the external user messages in the webhook So how exactly we can achieve this for internal user and external user.

If we want to listen to external user messages in the webhook what exactly need to be done ?

Hi @zoomrecords @Anh Nguyen,

Please reply to the above question.

Hi @zoomrecords @Anh Nguyen,

Please reply to the above question.

Hi @zoomrecords @Anh Nguyen,

Please reply to the above question.

Hi @zoomrecords @Anh Nguyen,

Please point me in the right direction, whether i am doing something wrong or some other method is there to achieve this flow

My requirement is , I am trying to achieve connector between zoom and my contact center and I am building a mediator app which will be listening to the webhook of zoom business account and also my contact center, so whenever customer sends a message i want to listen to the webhook of zoom business account and send it to the my contact center and if my contact center sends a message i want to send it back to the customer, i tested with account credentials grant type authorization and i am not getting the external user messages in the webhook So how exactly we can achieve this for internal user and external user.

If we want to listen to external user messages in the webhook what exactly need to be done ?