# Creating a user via the management API returns a 404?

**URL:** <https://community.auth0.com/t/creating-a-user-via-the-management-api-returns-a-404/74066>\
**Category:** Get Help\
**Created:** [December 1, 2021, 6:08pm UTC](https://community.auth0.com/t/creating-a-user-via-the-management-api-returns-a-404/74066 "2021-12-01T18:08:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![s.murray](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/s.murray/32/27234_2.png) [@s.murray](https://community.auth0.com/u/s.murray)\
**Post date:** [December 1, 2021, 6:08pm UTC](https://community.auth0.com/t/creating-a-user-via-the-management-api-returns-a-404/74066/1 "2021-12-01T18:08:14Z")

</div>

The documentation here - [Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Users/post_users) - doesn’t specify what the cause of a 404 response is?

I’m posting simply the following:-

`{"email": "blob@mysite.com"}`

The Management API I’m posting to also has the create:users scope added. It would be great if the API could return more useful info than the 404 - so does anyone know what the issue is please?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [December 1, 2021, 6:38pm UTC](https://community.auth0.com/t/creating-a-user-via-the-management-api-returns-a-404/74066/3 "2021-12-01T18:38:28Z")

</div>

Hi @s.murray,

Thanks for reaching out to the Auth0 Community!

I understand that you’ve encountered a `404` HTTP error when creating a user with the Management API.

First, I’d like to clarify that the `404` HTTP error is the **not found error**. And as you have observed, our documentation for the [Create a users endpoint](https://auth0.com/docs/api/management/v2#!/Users/post_users) doesn’t have any associated error code for `404`.

In this case, you may have likely encountered this error because of a typo in your URI. I recommend that you double-check that you have used the correctly URI, which should be in the format `https://YOUR_DOMAIN.REGION.auth0.com/api/v2/users`

During my tests, I attempted to create a user with your code snippet JSON object. However, it was not possible since, at the minimum, you’d need to specify the `connection` and `password` properties. In this case, I encountered the `400` errors.

Therefore, at the least, you’ll need to use something like the following to create a user:

```auto
{
  "email": "blob@mysite.com",
  "password":"YOUR_PASSWORD",
  "connection":"Username-Password-Authentication"
}

```

 ![image](https://global.discourse-cdn.com/auth0/original/3X/2/b/2b5c0d184d5d94c0bda08df9bd914a99d2154ff1.jpeg)

Hoped this helps!

Please let me know if you have any further questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![s.murray](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/s.murray/32/27234_2.png) [@s.murray](https://community.auth0.com/u/s.murray)\
**Post date:** [December 1, 2021, 8:47pm UTC](https://community.auth0.com/t/creating-a-user-via-the-management-api-returns-a-404/74066/4 "2021-12-01T20:47:41Z")

</div>

Thanks @rueben.tiow - I figured out it was the connection and password that were missing - worked fine after that.

Thanks again.

---

<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:** [December 16, 2021, 8:47pm UTC](https://community.auth0.com/t/creating-a-user-via-the-management-api-returns-a-404/74066/5 "2021-12-16T20:47:47Z")

</div>

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