Fail to request an access token

Using this template helps us debug your issues more effectively :slight_smile:

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 I am following the steps within this documentation page:

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

Hey @william_williams2,

Happy to help!

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("");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Basic Q2xpZW50IElEOkNsaWVudCBTZWNyZXQ=");
IRestResponse response = client.Execute(request);

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.


Ah, I see! Thanks for sharing back @william_williams2 :slight_smile:

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