API Error Code 101

API Endpoint(s) and/or Zoom API Event(s)
List Auto Receptionists: https://api.zoom.us/v2/phone/auto_receptionists/

I am trying to list the auto receptionists in my account.

When calling this API endpoint using a token generated from a Server-to-Server Oauth App, I get the response: {‘code’: 101, ‘message’: ‘AccessControl for this API is not set.’}. If I use that same token for other API endpoints it works. I do have the phone:read:admin scope set in the app as indicated in the API documentation.

However, when using a JWT token from a JWT app (which will be deprecated soon) this works fine. It only does not work with Server-to-Server Oauth as far as I can tell.

How To Reproduce
To reproduce this, make a Server-to-Server Oauth app with the scope phone:read:admin and try to list auto receptionists with a GET call to the https://api.zoom.us/v2/phone/auto_receptionists/ endpoint.

Hi @bp77577
Thanks for reaching out to the Zoom Developer Forum and welcome to our community, I am happy to help here!

Could you please make sure that you have all the appropriate permissions enabled in your account to access said endpoint?

Hi Elisa,

Yes I do have the permissions enabled in my account to use Server-to-Server OAuth. I am able to successfully use it for multiple other API endpoints but am running into this issue with this endpoint specifically. I did also ensure that the phone:read:admin scope is set in the app.

Thank you

Thanks for confirming this with me @bp77577
I will go ahead and send you a DM so I can take a closer look into this

Hi Elisa, I found out that the issue here is the trailing “/” in the URL. Apparently that does not affect anything when using JWT authentication but it causes it to fail when using Server-to-Server Oauth. This topic can be closed. Thank you.

1 Like

Thanks for sharing your findings with us!