# Not able to access Custom API's

**URL:** <https://community.auth0.com/t/not-able-to-access-custom-apis/55983>\
**Category:** Get Help\
**Created:** [January 11, 2021, 7:17am UTC](https://community.auth0.com/t/not-able-to-access-custom-apis/55983 "2021-01-11T07:17:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![morning-voice-1877](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/morning-voice-1877/32/13482_2.png) [@morning-voice-1877](https://community.auth0.com/u/morning-voice-1877)\
**Post date:** [January 11, 2021, 7:17am UTC](https://community.auth0.com/t/not-able-to-access-custom-apis/55983/1 "2021-01-11T07:17:16Z")

</div>

- I have my management API which is there by default.

 ![1x](https://global.discourse-cdn.com/auth0/original/3X/c/f/cfe567c42adec4cadc8843ff56f53021a0b75666.png)

Now if i want to access the management API all i have to do is send an following HTTP request (imran121 is tenant), For example i can send `/api/v2/users` to access user details and `/api/v2/roles/` to see the roles details

 ![2x](https://global.discourse-cdn.com/auth0/original/3X/d/2/d2c0b39cacaab6ec52ec68c67eccccd304a81be4.png)

- Now I have create an custom api in my account with **[http://imran.com](http://imran.com)** as an identifier.

 ![3x](https://global.discourse-cdn.com/auth0/original/3X/8/0/80d8071f46d59fcd45eea0c55d586243dd2a1eb2.png)

- and i am able to get the Access token by sending this http request to my tenant

 ![4x](https://global.discourse-cdn.com/auth0/original/3X/f/9/f9aa8163ed0453a1fc086a57308a8d36c25254f7.png)

- But how am i supposed to access endpoints like `/roles` and `/users` through my cutom api(after adding view:user and view:roles permission to the api)

 ![5x](https://global.discourse-cdn.com/auth0/original/3X/6/d/6ddd043cbd34818b55cd6cea740fc8a801eece6d.png)

am i missing anything.

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [January 11, 2021, 1:56pm UTC](https://community.auth0.com/t/not-able-to-access-custom-apis/55983/2 "2021-01-11T13:56:26Z")

</div>

Hi @morning-voice-1877

The management API is hosted by Auth0. Who is hosting the custom API and what technology stack is it using?

John

---

<div class="post-metadata">

**Author:** ![morning-voice-1877](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/morning-voice-1877/32/13482_2.png) [@morning-voice-1877](https://community.auth0.com/u/morning-voice-1877)\
**Post date:** [January 12, 2021, 8:54am UTC](https://community.auth0.com/t/not-able-to-access-custom-apis/55983/3 "2021-01-12T08:54:05Z")

</div>

Hi @john.gateley

Looks like i already solved it.

My goal was to create an API with custom permission, Look like i can create an new APP and allows it to use **management API** with custom scope.

Thanks | imran

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 12, 2021, 9:36am UTC](https://community.auth0.com/t/not-able-to-access-custom-apis/55983/4 "2021-01-12T09:36:45Z")

</div>

Perfect! Glad to hear that and thanks for sharing with the rest of community!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 27, 2021, 9:36am UTC](https://community.auth0.com/t/not-able-to-access-custom-apis/55983/5 "2021-01-27T09:36:54Z")

</div>

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