Received auth_token but got error on any API call

1) Our “Server-to-Server OAuth” application is created, configured, and activated. We are communicating with Zoom API by server-to-server requests only (no callbacks or webhooks are expected) from node.js, trying to integrate the Webinars into our system. And of course, during the integration, all requests are sent from the http://localhost:8080

2) User role settings are configured to allow Server-to-Server OAuth requests for view and edit.

3) POST request from server side to [/oauth/token?grant_type=client_credentials] return’s a correct access_token (that means client_id and client_secret are correct, and properly passed in Authorization request header).

4) All other API requests using received access_token are failed with error: {code: 200, message: “Invalid api key or secret.”}

5) What is the solution?

…two days of stupid investigations, reading tons of your docs and similar issue suggestions, and finally seems I found the right solution, but it is suddenly not mentioned in your docs!

CAN YOU PLEASE REPLY WITH THE LINK, WHERE IN YOUR DOCS WE CAN SEE ALL GRANT TYPES?

in your dosc: /oauth/token?grant_type=client_credentials
the right one: /oauth/token?grant_type=account_credentials&&account_id={ACCOUNT_ID}

Hi @vfedorov
Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!
First of all, I am sorry to hear that it was hard for you to find the proper documentation.

Here is a link to our docs on Using account credentials to get an access token with the Server-to-Server Oauth app:

https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app/#use-account-credentials-to-get-an-access-token

Also, feel free to refer to this post:

Hope this helps,
Elisa

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