Get code 124 "Invalid access token." with a valid oauth token on GET /v2/users

Description
I got a valid access_token and referesh_token from oauth/token , I was able to use the refresh_token to refresh.
When I use the access_token to GET /v2/users , I got a code 124, invalid access token.

Error
{
“code”: 124,
“message”: “Invalid access token.”
}
Which App Type (OAuth / Chatbot / JWT / Webhook)?
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

Which Endpoint/s?
GET /v2/users

How To Reproduce (If applicable)
Steps to reproduce the behavior:

  1. get code from /oauth/authorize
    2 get token from /oauth/token
    3 use the token as bearer to call GET /v2/users
    4 invalid access token

Screenshots (If applicable)
If applicable, add screenshots to help explain your problem.

Additional context

I want to create meetings on user’s behave, to do that I need to POST to /users/:userId/meetings , thus I need userId, I was stuck at the GET https://api.zoom.us/v2/users step and can’t test further

I suspect it’s a scope issue, I tried https://api.zoom.us/v2/users/email?email=example@example.com and the token can return valid response. However, I checked all user scope. what additional scope do I need to get user_id ?

Thanks

oops, that’s a careless mistake on my side. I should have read the documentation more carefully. For user-level apps, pass the me value instead of the userId parameter.

1 Like

Hey @codeleter,

Thank you for reaching out to the Zoom Developer Forum. I’m glad to hear that you were able to resolve your issue! I’ll go ahead and close this topic now but feel free to open a new topic if you encounter any further issues or questions.

Thanks,
Max