Using this template helps us debug your issues more effectively
Description
My goal is to pull all of our assigned phone numbers within our Zoom account. To do so via the API, I am trying to receive an access token by making a POST request https://zoom.us/oauth/token. I am following the steps within this documentation page: https://marketplace.zoom.us/docs/guides/auth/oauth
Error
I am receiving the following issue
{
"reason": "Invalid client_id or client_secret",
"error": "invalid_client"
}
Which App Type (OAuth / Chatbot / JWT / Webhook)?
The App Type is OAuth
In taking a quick look, it appears you’re passing the Authorization as a query parameter instead of as a header. Can you please ensure you’re sending it in the header? Here is an example in cURL:
var client = new RestClient("https://zoom.us/oauth/token?grant_type=authorization_code&code=code&redirect_uri=https://zoom.us");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Basic Q2xpZW50IElEOkNsaWVudCBTZWNyZXQ=");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
That was a complete mistake on my part and it looks like I’m all set! I just had to include the grant type since I was using client credentials, but that was an easy one to troubleshoot.