For Server-to-Server OAuth, in the request body, pass grant_type=account_credentials&account_id= (with the account ID value) instead of the client ID and client secret.
Send the client ID and client secret as Basic authentication.
Make sure you declare the content type and format your body appropriately (this might be implied by Python, but it’s ambiguous to a casual reviewer): Content-Type: application/x-www-form-urlencoded; charset=utf-8
Appreciate your help. was able to fix the issue with this input.
However, I have got a new issue. I am getting this error now. When I check the scope in Server-Server, these scopes are not there to enable. What am I missing? My objective is to download recordings as admin. What are the write access scope are required and where are they. Please advice.
{‘code’: 4711, ‘message’: ‘Invalid access token, does not contain scopes:[user:read:list_recordings:admin, user:read:list_recordings].’}
Make sure that the user that owns your application is set to a role that has permission to do the equivalent activities via the Zoom user interface. I’m guessing it’s filed under “Account Management; Recording management”. Then you can add the corresponding scopes.
The application owner needs to maintain these permissions on an ongoing basis. This gives the account owner transparency into what the application can do.
I have Admin access on the web portal. I am able to see all the recordings and able to download them as well from the portal. However, getting this token error only on API calls.