Sometimes get 201 while creating user

While creating user on post “api/v2/users”, sometimes returns 201 instead of 200 response. Looking for answers regarding when is the 201 response returned vs 200 during user creation.

Hi @kchauhan ,

Welcome to the Auth0 Community!

While creating user on post “api/v2/users”, sometimes returns 201 instead of 200 response. Looking for answers regarding when is the 201 response returned vs 200 during user creation.

The following two articles talk about the difference between response codes 200 OK and 201 Created.

The Auth0 Management API doc also mentioned that if successfully, 201 will be returned. I tested this on my end and only see the response code 201. So I believe that this POST endpoint should return 201 instead of 200.

On the dashboard → Monitoring → Logs, we can check the return code. If you remember any users were created with a return code of 200, please let us know and we will check this further.

1 Like