User creation: management API return 200 but user does not exist

Hi, we have some errors creating users with management API.
No log errors are present and call is ok, but users doesn’t exist on our env (and variables are correct)!
This error happen sometimes for some period (using same code and same calls) and then disappear without reason. It’s very strange. Can someone help me?

Hi @a.piga,

Welcome to the Auth0 Community!

Could you please share with me the exact code you used to create these users?

This will help me determine if there are any issues with the request regardless of the 200 status response code.

In the meantime, let me share with you a script that I have tested which successfully creates a user with the Management API:

const axios = require('axios');
let data = JSON.stringify({
  "email": "",
  "password": "SECRET",
  "connection": "Username-Password-Authentication"

let config = {
  method: 'post'
  url: 'https://YOUR_AUTH0_DOMAIN/api/v2/users',
  headers: { 
    'Authorization': 'Bearer {{MANAGEMENT_API_TOKEN}}, 
    'Content-Type': 'application/json'
  data : data

.then((response) => {
.catch((error) => {


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