Chatbot api, post message only visible to the user_jid specified in the api call

Hi, there,
I’m developping a chat bot which will send alerts to channels.
I used the end point /im/chat/messages to send message to a channel.
In that channel, I received the message, it shows “only visiable to you”.
How can I make the message visiable to every one in the channel ?

I checked the Forums and it seems this friend faces the same question:
chatbot-api-post-message-visible-to-everyone-in-channel

He said after change the app from user-level to account-level, this problem seems to be solved. However, I checked the documents, and could not find a word explainning what is this account-level / user-level, could you please help to explain or give a link to me?

Thanks.

API Endpoint(s) and/or Zoom API Event(s)
/im/chat/messages
Link the API endpoint(s) and/orZoom API Event(s) you’re working with to help give context.
Zoom Chatbot API
Description
Details on your question, workflow or the problem you’re trying to solve.
The api call gives 200, but the message is only visible to the user as specified in the field “user_jid” in the body.
Error?
The full error message or issue you are running into, where applicable.

How To Reproduce
Steps to reproduce the behavior:
1. Request URL / Headers (without credentials or sensitive info like emails, uuid, etc.) / Body
url: https://api.zoom.us/v2/im/chat/messages
headers :

 {
        "Content-Type": "application/json",
        "Authorization": f"Bearer {TOKEN}",
}

body:

        body = {
            "robot_jid": secret.zoom_bot_jid,
            "to_jid": to_jid,
            "account_id": account_id,
            "user_jid": user_jid,
            "is_markdown_support": True,
            "content": content,
        }

,

2. Authentication method or app type
Authentication method : send request to https://api.zoom.us//oauth/token?grant_type=client_credentials to get a bearer token.

App Type: Zoom Chat Bot ? I just select Build App and followed the steps in the tourtorial.

3. Any errors
response was 200 and the message did send to the channel, but it says only visible to me myself.

it turns out that you need to create a admin-managed app instead of user-managed app.

And for admin-managed app, you no longer has to pass this user_jid in the body…

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