# API Error Code 101

**URL:** <https://devforum.zoom.us/t/api-error-code-101/87023>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [April 19, 2023, 8:25pm UTC](https://devforum.zoom.us/t/api-error-code-101/87023 "2023-04-19T20:25:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![bp77577](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bp77577/32/47770_2.png) [@bp77577](https://devforum.zoom.us/u/bp77577)\
**Post date:** [April 19, 2023, 8:25pm UTC](https://devforum.zoom.us/t/api-error-code-101/87023/1 "2023-04-19T20:25:14Z")

</div>

**API Endpoint(s) and/or Zoom API Event(s)**  
List Auto Receptionists: [https://api.zoom.us/v2/phone/auto\_receptionists/](https://api.zoom.us/v2/phone/auto_receptionists/)

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

**Error?**  
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/](https://api.zoom.us/v2/phone/auto_receptionists/) endpoint.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [April 21, 2023, 1:07am UTC](https://devforum.zoom.us/t/api-error-code-101/87023/2 "2023-04-21T01:07:39Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![bp77577](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bp77577/32/47770_2.png) [@bp77577](https://devforum.zoom.us/u/bp77577)\
**Post date:** [April 21, 2023, 2:27pm UTC](https://devforum.zoom.us/t/api-error-code-101/87023/3 "2023-04-21T14:27:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [April 26, 2023, 4:01pm UTC](https://devforum.zoom.us/t/api-error-code-101/87023/4 "2023-04-26T16:01:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bp77577](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bp77577/32/47770_2.png) [@bp77577](https://devforum.zoom.us/u/bp77577)\
**Post date:** [April 27, 2023, 2:48pm UTC](https://devforum.zoom.us/t/api-error-code-101/87023/5 "2023-04-27T14:48:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [May 1, 2023, 1:38pm UTC](https://devforum.zoom.us/t/api-error-code-101/87023/6 "2023-05-01T13:38:34Z")

</div>

@bp77577  
Thanks for sharing your findings with us!

---

<div class="post-metadata">

**Author:** ![kevter.tgt](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kevter.tgt/32/14926_2.png) [@kevter.tgt](https://devforum.zoom.us/u/kevter.tgt)\
**Post date:** [August 29, 2023, 5:50pm UTC](https://devforum.zoom.us/t/api-error-code-101/87023/7 "2023-08-29T17:50:11Z")

</div>

@elisa.zoom Hi - I’m having the same issue  
{  
“code”: 101,  
“message”: “AccessControl for this API is not set.”  
}

However removing the trailing “/” does not work (it says “The site id can not be empty”).  
Here is the call: [https://api.zoom.us/v2/phone/locations/?siteID={our\_site\_id}&page\_size=300](https://api.zoom.us/v2/phone/locations/?siteID=%7Bour_site_id%7D&page_size=300)  
The app is scoped to have phone:read:admin  
Any suggestions? Thanks.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [August 31, 2023, 7:31pm UTC](https://devforum.zoom.us/t/api-error-code-101/87023/8 "2023-08-31T19:31:27Z")

</div>

Hi @kevter.tgt  
Thanks for reaching out to us, are you able to double encode the site ID when making this request?  
is this happening everytime you call the endpoint or just with specifit site IDs?

---

<div class="post-metadata">

**Author:** ![kevter.tgt](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kevter.tgt/32/14926_2.png) [@kevter.tgt](https://devforum.zoom.us/u/kevter.tgt)\
**Post date:** [August 31, 2023, 8:33pm UTC](https://devforum.zoom.us/t/api-error-code-101/87023/9 "2023-08-31T20:33:51Z")

</div>

Can you provide the syntax for what that should look like? Using 1234abcde as an example site ID.

Now I’m getting something different, all the site IDs return the response below (got site IDs from here - [https://api.zoom.us/v2/phone/sites?page\_size=30](https://api.zoom.us/v2/phone/sites?page_size=30)). Same results regardless if there is a slash at the end or not.

{  
“code”: 300,  
“message”: “Validation Failed.”,  
“errors”: [  
{  
“field”: “locationId”,  
“message”: “Location does not exist: 1234abcde.”  
}  
]  
}

Again, the site IDs are returned when doing the phone sites call.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [September 5, 2023, 3:52pm UTC](https://devforum.zoom.us/t/api-error-code-101/87023/10 "2023-09-05T15:52:57Z")

</div>

Hey @kevter.tgt sorry for the late reply.  
I will send you a private message to follow up with more information  
Please make sure to reply there

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [September 8, 2024, 7:29am UTC](https://devforum.zoom.us/t/api-error-code-101/87023/11 "2024-09-08T07:29:18Z")

</div>

Closed on September 8, 2024, 7:29am UTC

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