javed
(Javed)
January 5, 2024, 11:33am
1
Getting the 400 bad request on the generate token.
curl --location --request POST ‘https://zoom.us/oauth/token?grant_type=account_credentials&account_id=1XivB0_R-OJP8qg ’ \
–header ‘Authorization: Basic Vmo2TlZCZkhScFdPbDk0aUpFbEZPUTo2SFlkNjJlSzBHTG’ \
–data ‘’
Getting the same with the following payload
code: [code]
grant_type: authorization_code
{
"reason": "Invalid authorization code",
"error": "invalid_grant"
}
gianni.zoom
(OOO 11/1 - 11/8)
January 6, 2024, 3:38am
3
Hi @khantufail425 @javed ,
Which app type are you using?
@gianni.zoom I’m trying to create the meeting via API, that’s why I need this token didn’t mention any app type there.
javed
(Javed)
January 6, 2024, 12:25pm
6
I got this by calling with the below deatils
https://zoom.us/oauth/token?grant_type=account_credentials&account_id={account_id}
account_id - get from Server-to-Server OAuth type app.
and Passing Client ID and Client Secret in the Basic Auth.
gianni.zoom
(OOO 11/1 - 11/8)
January 7, 2024, 6:24am
7
@khantufail425 you need to create an OAuth or other app-type to gain credentials for authorized use use of Zoom API. Please see the docs for the different app types and how to create: Create an OAuth app
@javed , please see this troubleshooting guide for help with your error: Troubleshooting Server-to-Server Oauth access tokens