# Invalid api key or secret using postman/insomnia

**URL:** <https://devforum.zoom.us/t/invalid-api-key-or-secret-using-postman-insomnia/6553>\
**Category:** API and Webhooks\
**Created:** [November 7, 2019, 3:20pm UTC](https://devforum.zoom.us/t/invalid-api-key-or-secret-using-postman-insomnia/6553 "2019-11-07T15:20:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![britta](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@britta](https://devforum.zoom.us/u/britta)\
**Post date:** [November 7, 2019, 3:20pm UTC](https://devforum.zoom.us/t/invalid-api-key-or-secret-using-postman-insomnia/6553/1 "2019-11-07T15:20:52Z")

</div>

Hello,  
I request a Bearer Token using the following post request via postman or insomnia

`https://zoom.us/oauth/token?grant_type=client_credentials&client_id={myclientid}&client_secret={myclientsecert}`

response:  
{  
“access\_token”: “xxx”,  
“token\_type”: “bearer”,  
“expires\_in”: 3599,  
“scope”: “group:read:admin group:write:admin imgroup:read:admin imgroup:write:admin user:read:admin user:write:admin”  
}

Then I set up a get request via postman or insomnia  
`https://api.zoom.us/v2/users`  
using Bearer as Authentication type using the token I requested before.

Response of the get request is  
{  
“code”: 200,  
“message”: “Invalid api key or secret.”  
}

**The scope is user:read:admin so I should have access to the Users List API using this grant type token or not??**

Thanks in advance,  
Britta

Insomnia Timeline Output

> GET /v2/users HTTP/1.1  
> Host: `api.zoom.us`  
> User-Agent: insomnia/7.0.1  
> Cookie: cred=xxx; \_zm\_currency=EUR; \_zm\_mtk\_guid=xxx; \_zm\_o2nd=xxx; \_zm\_o2trackid={client\_id}; \_zm\_page\_auth=xxx; \_zm\_ssid=xxx\> Content-Type: application/json;charset=UTF-8  
> Authorization: Bearer {token}  
> Accept: _/_  
> Content-Length: 1

| =

- upload completely sent off: 1 out of 1 bytes

\< HTTP/1.1 400 Bad Request  
\< Date: Thu, 07 Nov 2019 15:08:21 GMT  
\< Content-Type: application/json;charset=UTF-8  
\< Transfer-Encoding: chunked  
\< Connection: keep-alive  
\< Server: ZOOM  
\< x-zm-trackingid: WEB\_xxx

- Received 62 B chunk
- Connection #73 to host [api.zoom.us](http://api.zoom.us) left intact

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 7, 2019, 8:05pm UTC](https://devforum.zoom.us/t/invalid-api-key-or-secret-using-postman-insomnia/6553/2 "2019-11-07T20:05:34Z")

</div>

Hey @britta,

It seems like you are using the [Zoom Chatbot authentication flow](https://marketplace.zoom.us/docs/guides/chatbots/authorization#access-tokens) instead of the [OAuth flow](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom).

Per our docs, in order to call the [GET /users endpoint](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/users), you must either use a [JWT Token](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-jwt-app#credentials), or an [OAuth access\_token](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#request-access-token).

Let me know if you need additional guidance! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:02pm UTC](https://devforum.zoom.us/t/invalid-api-key-or-secret-using-postman-insomnia/6553/3 "2020-08-21T19:02:58Z")

</div>

Closed on August 21, 2020, 7:02pm UTC


