Test BOT Locally : BOT - "Invalid client error" while fetching "Bearer token"

Using this template helps us debug your issues more effectively :slight_smile:

Team, Our usecase is to send alerts/notification messages to different zoom channels from our Java Application. So, I decided to go with “Chatbot” option based on my last discussion on this forum. Hence, I created a chatbot in the marketplace only in “DEV environment” for testing.
Important Configuration Details :
Redirect URL:https://marketplace.zoom.us
Endpoint URL - https://zoom.us/. ( Gave this URL as our chatbot should support only one-way
communication, We dont want to support customers reaching the bot)

  1. Enable Chatbot within Zoom Chat Client/imchat:bot
  2. Send a chat message to a Zoom Chat user or channel on behalf of a Chatbot


  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
    But , I get the error “Invalid client_id or client_secret”. what could be reason?
  2. As I mentioned above , 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?

Which App Type (OAuth / Chatbot / JWT / Webhook)?

Which Endpoint/s?

Hi @Mythili,

Thanks for reaching out about this—happy to help.

This invalid client_id error typically means there’s an issue with the value you’re passing in your Authorization header. Your Chatbot should have both a Dev and Prod Client ID/Secret pair. Can you confirm you’ve authorized the dev version and are passing the dev client id and secret in your auth header?


@will ,

Hi Thanks for the reply.

Please refer the attached snapshots. I ensure that I did Base64-encoding of DEV credentials (clientid:secret) for authorization.
. If needed I shall share the details of my BOT and credentials in private. Could you please help?

@ Will,

As of now , I haven’t submitted by “BOT” yet (as I dont want to publish to all customers of zoom).
I have progressed only till “Test locally” and “installed” the BOT and testing it. Does the Authorization work only after clicking on “Submit” at the last page?

Hi @Mythili,

The install URL from the Local Test section of your app allows you to install the bot under any user in your Zoom account (the account under which the bot was created in). If you need to use/test the bot outside of your account, you would need to click ‘Submit’ and have the bot reviewed by our Marketplace team.

Let me know if this helps to clarify—thanks!

@will.zoom ,

I have installed the BOT through “Local Test” in my account (with which I created BOT ) . Now I want to post messages to myself/channel through this BOT and for that purpose am trying to authorise the BOT using my DEV credentials to get the bearer token , by referring to
(https://marketplace.zoom.us/docs/guides/chatbots/installation-and-authentication#requesting-a-chatbot-token ) . Will this work ? or “Submit” is needed even for DEV Testing of BOT?

Hi @Mythili,

Yes, you can test locally with the dev instance of your bot—this is supported as long as the users you’re testing with belong to the same account as your dev bot. The submission would not be required for this.


@will.zoom ,

Thanks for the reply. I have raised a ticket for this issue - https://support.zoom.us/hc/en-us/requests/12638982 . I have shared the credentials and other details in the ticket. I also have another thread with the discussion on same issue - Use JWT App to post message on the Zoom channels - #10 by Mythili . Could you please help on the ticket?

Thanks @Mythili, a member of our team will be in touch shortly.

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