Use dbconnections/signup without sending a verification email

I’m trying to create a user as specified here

Using a curl request, but I can’t seem to create a user with “email_verified”: true for some reason. I’d like to be able to batch create some users without sending them verification emails. How can I do that? I saw in this post that there used to be a “email_verified” and “verify_email” field that could be sent in the body of the request. Is that no longer the case? My command is:

curl --request POST \
  --url 'https://my_domain/dbconnections/signup' \
  --header 'content-type: application/json' \
  --data '{..., "email_verified": true, "verify_email": false,...}'

With the required fields, of course, but the response is:

{..., "email_verified":false,...}

Hi @dimitar,

Thanks for reaching out to the Auth0 Community!

I understand that you’d like to create users without sending them a verification email.

Looking at your curl command, it appears that you are making a call to the Authentication API /dbconnections/signup endpoint which does not have any capability to set the email_verified property.

Instead, I recommend that you use the Management API Create a User endpoint to create your users with "email_verified": true.

After doing so, you’ll be able to create new users without sending them a verification email.

Please let me know if you have any further questions. I’d be happy to help.

Thank you.

Thanks, Rueben, you’re a life saver!

2 Likes

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