"Invalid client_id or client_secret"

https://zoom.us/oauth/token?grant_type=authorization_code&code={my code}&redirection_uri={my callback URL}

Making a POST Request to the above URL shows

{
    "reason": "Invalid client_id or client_secret",
    "error": "invalid_client"
}

I’m not quite sure what the issue is. I had copy pasted the correct client ID before generating the code.

Please help! This issue is really driving me nuts.

Hey @abhilash,

Did you include the required Authorization header in your request?

"Authorization": "Basic base64Encode(Client_Id:Client_Secret)"

(You can base64encode them here. Make sure to include the : in between your client_id and client_secret)

It will look something like this
"Authorization": "Basic YXNkZmFzZGZha3M6YWRramZiYXNrbGRqZmFzZGY="

Also, you need to change redirection_uri to redirect_uri.

Let me know if this works!

Thanks,
Tommy

2 Likes

Worked like a charm.
Also took a look at the documentation. Apologies for missing it.

1 Like

Glad it worked, no apology necessary!

We are happy to help! :slight_smile: