# Cannot retrieve dial-in numbers

**URL:** <https://devforum.zoom.us/t/cannot-retrieve-dial-in-numbers/1523>\
**Category:** API and Webhooks\
**Created:** [August 3, 2018, 6:13pm UTC](https://devforum.zoom.us/t/cannot-retrieve-dial-in-numbers/1523 "2018-08-03T18:13:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaron\_Bieber](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@Aaron\_Bieber](https://devforum.zoom.us/u/Aaron_Bieber)\
**Post date:** [August 3, 2018, 6:13pm UTC](https://devforum.zoom.us/t/cannot-retrieve-dial-in-numbers/1523/1 "2018-08-03T18:13:35Z")

</div>

I am using the OAuth method. The goal is to be able to generate a meeting link and provide that as well as dial-in access numbers in a meeting request in our own application.

Meeting creation is working fine, but I don’t know how to get access numbers. It looks like I should be able to query “[https://api.zoom.us/v2/tsp](https://api.zoom.us/v2/tsp)”, but when I do that I get “Invalid access token, does not contain scopes: [tsp:write:admin]”. I have selected both the TSP read-only and write-admin scopes in my application configuration.

If I use my own token in the API playground, it says “TypeError: Failed to fetch”.

Is this the right approach to get dial-in numbers? Why is this not working?

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [August 3, 2018, 9:48pm UTC](https://devforum.zoom.us/t/cannot-retrieve-dial-in-numbers/1523/2 "2018-08-03T21:48:48Z")

</div>

Hi Aaron,&nbsp;

To do OAuth with our APIs you will need to go to our register your app and add scopes[tsp:write:admin] within our [marketplace](https://marketplace.zoom.us/).&nbsp;

Please check out our marketplace docs on scopes&nbsp;[here](https://devdocs.zoom.us/docs/permissions).&nbsp;

Thanks

---

<div class="post-metadata">

**Author:** ![Aaron\_Bieber](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@Aaron\_Bieber](https://devforum.zoom.us/u/Aaron_Bieber)\
**Post date:** [August 4, 2018, 4:01pm UTC](https://devforum.zoom.us/t/cannot-retrieve-dial-in-numbers/1523/3 "2018-08-04T16:01:42Z")

</div>

Thanks, Michael. As I said in my post, “I have selected both the TSP read-only and write-admin scopes in my application configuration.”

This is the source of my confusion; I have allowed those scopes and I am still receiving that error.

---

<div class="post-metadata">

**Author:** ![Aaron\_Bieber](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@Aaron\_Bieber](https://devforum.zoom.us/u/Aaron_Bieber)\
**Post date:** [August 6, 2018, 2:06pm UTC](https://devforum.zoom.us/t/cannot-retrieve-dial-in-numbers/1523/4 "2018-08-06T14:06:19Z")

</div>

I seem to get different errors depending on how I go about this, so here is a “reference implementation” that demonstrates the problem.

This is the code I am running, based on the Zoom OAuth sample app:&nbsp;[https://gist.github.com/aaronbieber/473a69697c0cc76b378a0327ce12e376](https://gist.github.com/aaronbieber/473a69697c0cc76b378a0327ce12e376)

I’m authenticating with the client ID and secret from my unpublished app, ID&nbsp;JvMuxSt1SryYrz4M\_eKKzw. Note the selected scopes:

 ![](https://support.zoom.us/hc/user_images/o9kpCMQPxF8p1QRbRMd-ng.png)

The response that I receive is:

{  
“code”: 2024,  
“message”: “Account not enable TSP”  
}

---

<div class="post-metadata">

**Author:** ![TimZoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/timzoom/32/978_2.png) [@TimZoom](https://devforum.zoom.us/u/TimZoom)\
**Post date:** [August 6, 2018, 6:59pm UTC](https://devforum.zoom.us/t/cannot-retrieve-dial-in-numbers/1523/5 "2018-08-06T18:59:52Z")

</div>

TSP needs to be enabled on your account. Has this been added to your account?

&nbsp;

If you just want dial-in numbers for regular meetings then you can build that. We use the same numbers for every meeting with the meeting ID being the “access code”. Please see here for a list of our dial-in numbers:&nbsp;[https://zoom.us/zoomconference](https://zoom.us/zoomconference).

---

<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, 5:52pm UTC](https://devforum.zoom.us/t/cannot-retrieve-dial-in-numbers/1523/6 "2020-08-21T17:52:06Z")

</div>

Closed on August 21, 2020, 5:52pm UTC


