# Custom Authentication APi Create User

**URL:** <https://community.auth0.com/t/custom-authentication-api-create-user/168594>\
**Category:** JWT.io\
**Tags:** api, auth0\
**Created:** [January 14, 2025, 11:59am UTC](https://community.auth0.com/t/custom-authentication-api-create-user/168594 "2025-01-14T11:59:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![misunderstoodgenius9](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/misunderstoodgenius9/32/70203_2.png) [@misunderstoodgenius9](https://community.auth0.com/u/misunderstoodgenius9)\
**Post date:** [January 14, 2025, 11:59am UTC](https://community.auth0.com/t/custom-authentication-api-create-user/168594/1 "2025-01-14T11:59:42Z")

</div>

Hello. I configured my domain in custom Domain and created an api auth.apidistro.ct.ws/distro. Now how can I create users with this api?

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [January 14, 2025, 12:41pm UTC](https://community.auth0.com/t/custom-authentication-api-create-user/168594/3 "2025-01-14T12:41:29Z")

</div>

Hi @misunderstoodgenius9

Welcome back to the Auth0 Community!

The custom API that you created represents an external resource, capable of accepting and responding to protected resource requests made by applications. To create an user (inside of Auth0) you’ll need to make calls to the Managment API. In our API Docs you can find the example request as well as add your own API Key to make call from the Docs. [Auth0 Management API v2](https://auth0.com/docs/api/management/v2/users/post-users)

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![misunderstoodgenius9](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/misunderstoodgenius9/32/70203_2.png) [@misunderstoodgenius9](https://community.auth0.com/u/misunderstoodgenius9)\
**Post date:** [January 14, 2025, 12:46pm UTC](https://community.auth0.com/t/custom-authentication-api-create-user/168594/4 "2025-01-14T12:46:22Z")

</div>

I got the token via the default temant and now I try to create a user, but not work

---

<div class="post-metadata">

**Author:** ![misunderstoodgenius9](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/misunderstoodgenius9/32/70203_2.png) [@misunderstoodgenius9](https://community.auth0.com/u/misunderstoodgenius9)\
**Post date:** [January 14, 2025, 12:46pm UTC](https://community.auth0.com/t/custom-authentication-api-create-user/168594/5 "2025-01-14T12:46:52Z")

</div>

This request return 404.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [January 14, 2025, 12:47pm UTC](https://community.auth0.com/t/custom-authentication-api-create-user/168594/6 "2025-01-14T12:47:02Z")

</div>

Can you send me the request that you are sending?

---

<div class="post-metadata">

**Author:** ![misunderstoodgenius9](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/misunderstoodgenius9/32/70203_2.png) [@misunderstoodgenius9](https://community.auth0.com/u/misunderstoodgenius9)\
**Post date:** [January 14, 2025, 3:52pm UTC](https://community.auth0.com/t/custom-authentication-api-create-user/168594/7 "2025-01-14T15:52:21Z")

</div>

{  
“statusCode”: 401,  
“error”: “Unauthorized”,  
“message”: “Bad audience: [https://auth.apidistro.ct.ws/api/v2/](https://auth.apidistro.ct.ws/api/v2/)”  
} I tryed with this test [Auth0 Management API v2](https://auth0.com/docs/api/management/v2/users/post-users) and result this now

---

<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 28, 2025, 3:52pm UTC](https://community.auth0.com/t/custom-authentication-api-create-user/168594/8 "2025-01-28T15:52:40Z")

</div>

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