# Email sent although verify\_email field is false

**URL:** <https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237>\
**Category:** Get Help\
**Tags:** management-api, auth0, user-creation\
**Created:** [May 11, 2022, 7:38am UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237 "2022-05-11T07:38:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ron.p](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ron.p/32/37227_2.png) [@ron.p](https://community.auth0.com/u/ron.p)\
**Post date:** [May 11, 2022, 7:38am UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/1 "2022-05-11T07:38:17Z")

</div>

Hi,

We are sending a POST request to create a new user ([create user doc](https://auth0.com/docs/api/management/v2/#!/Users/post_users).  
We are receiving the verification email although the verify\_email field is false, both through postman and programmatically.  
To give some context - we want to create a user in Auth0 and later verify his email.  
Could you please advise?

The request:

```auto

/api/v2/users
{
  "connection": "email",
  "email": "someEmail@gmail.com",
  "name": "someone",
  "user_metadata": {},
  "email_verified": **false** ,
  "verify_email": **false** ,
  "app_metadata": {}
}

```

Thanks

---

<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:** [May 11, 2022, 7:55am UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/3 "2022-05-11T07:55:39Z")

</div>

Hi @ron.p,

Welcome to the Auth0 Community!

> [@ron.p](#):
>
> We are receiving the verification email although the verify\_email field is false, both through postman and programmatically.

By default, a verification email gets sent to every user with the `email_verified` property set to false.

Moreover, if you plan to create users and send the verification email at a later time, please see [this](https://auth0.com/docs/customize/email/manage-email-flow#verification-emails) doc to learn more on customizing the email verification flow.

Please let me know if you have any questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![ron.p](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ron.p/32/37227_2.png) [@ron.p](https://community.auth0.com/u/ron.p)\
**Post date:** [May 11, 2022, 9:17am UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/4 "2022-05-11T09:17:49Z")

</div>

Hi @rueben.tiow  
Thanks for the quick reply.  
My intention is to create a user with email\_verified false and not send the verification email.  
According to the [API documentation](https://auth0.com/docs/api/management/v2/?_ga=2.209240722.1407102468.1652001883-1035553849.1586079795&_gl=1*zwftis*rollup_ga*OTQ1NzkzNzE3LjE1ODYwNzk3OTU.*rollup_ga_F1G3E656YZ*MTY1MjI2MDE2MC4xODEuMS4xNjUyMjYwMzI0LjU3#!/Users/post_users):

“Whether the user will receive a verification email after creation (true) or no email (false). Overrides behavior of `email_verified` parameter.”

![image](https://global.discourse-cdn.com/auth0/original/3X/f/0/f0cca75aebbf97361c273adb4b8af1300fe56f2d.png)

What is the correct way to achieve my intention above?

Thank you

---

<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:** [May 12, 2022, 6:54pm UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/5 "2022-05-12T18:54:12Z")

</div>

Hi @ron.p,

Thank you for your response and clarification.

> [@ron.p](#):
>
> My intention is to create a user with email\_verified false and not send the verification email.

For this scenario, there is the option to create the user with the `verify_email: false` property to prevent the verification email from being sent to them.

Alternatively, you could disable the Verification Email template on your [Auth0 Dashboard \> Branding \> Email Templates \> Verification Email (using Link)](https://manage.auth0.com/#/templates). This will prevent any Verification Emails from being sent to a newly created user.

Then, at a future time, you can create an email verification ticket by calling the Management API [Create an email verification ticket endpoint](https://auth0.com/docs/api/management/v2#!/Tickets/post_email_verification) and sending it to the user to verify their email addresses.

Hoped this helps!

Thank you.

---

<div class="post-metadata">

**Author:** ![ron.p](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ron.p/32/37227_2.png) [@ron.p](https://community.auth0.com/u/ron.p)\
**Post date:** [May 15, 2022, 7:55am UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/6 "2022-05-15T07:55:28Z")

</div>

Hi @rueben.tiow,  
Thanks for the comment.

Regarding your comment above, does that solve also the SMS verification? Is there a dedicated endpoint for that?

Regarding my original question, is email\_verify supposed to work and this is a bug?

Thanks

---

<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:** [May 16, 2022, 9:42pm UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/7 "2022-05-16T21:42:39Z")

</div>

Hi @ron.p,

Thank you for your reply.

> [@ron.p](#):
>
> does that solve also the SMS verification? Is there a dedicated endpoint for that?

Unfortunately, there isn’t an endpoint for SMS verification. Moreover, you can only verify users with their email addresses.

> [@ron.p](#):
>
> is email\_verify supposed to work and this is a bug?

After testing, I did not find the same observations as you. Instead, I could create a new user with the `email_verify: false` property that prevented the email verification from being sent to them.

Please let me know if you have any further questions

Thank you.

---

<div class="post-metadata">

**Author:** ![ron.p](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ron.p/32/37227_2.png) [@ron.p](https://community.auth0.com/u/ron.p)\
**Post date:** [June 13, 2022, 12:05pm UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/8 "2022-06-13T12:05:03Z")

</div>

Hi @rueben.tiow  
I tried multiple times and still got the verification email.  
The following payloads did not work and I got an email:

```auto
{
  "connection": "email",
  "email": "ron.p+test32123@gmail.com",
  "verify_email": false
}

```

or

```auto
{
  "connection": "email",
  "email": "ron.p+test32111@gmail.com",
  "email_verified": false,
  "verify_email": false
}

```

Can you please advise or share the right payload? Thank you

---

<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:** [June 13, 2022, 4:32pm UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/9 "2022-06-13T16:32:48Z")

</div>

Hi @ron.p,

Thank you for your response and update.

I understand that you are still encountering issues with creating users without sending the verification email.

> [@ron.p](#):
>
> Can you please advise or share the right payload?

The correct payload should include the `connection`, `email`, `password`, and `verify_email` properties in the request. See below:

```auto
curl --location --request POST 'https://YOUR_DOMAIN.REGION.auth0.com/api/v2/users' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
  "email": "someuser@example.com",
  "connection": "Username-Password-Authentication",
  "password": "secret",
  "verify_email": false
}'

```

I have tested this with both `verify_email` set to **true** and **false** and managed to get the expected outcomes, namely sending or not sending the verification email.

Please let me know how this works for you.

Thank you!

---

<div class="post-metadata">

**Author:** ![ron.p](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ron.p/32/37227_2.png) [@ron.p](https://community.auth0.com/u/ron.p)\
**Post date:** [June 13, 2022, 5:20pm UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/10 "2022-06-13T17:20:28Z")

</div>

Hi @rueben.tiow,  
I didn’t mention it before but we are creating only users with an email connection and later using the Auth0 passwordless for authentication. So the Username-Password-Authentication connection is not relevant for us.  
It means the user does not have a password, and from Auth0 docs it is an optional param: [Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Users/post_users)

I expect that this payload will work too:

```auto
{
  "connection": "email",
  "email": "ron.p+test32123@gmail.com",
  "verify_email": false
}

```

but I still get an email when creating a new user (although the verify\_email is false).  
Can you please help us to figure out how to achieve this with an email connection?  
Thank you!

---

<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:** [June 15, 2022, 5:58pm UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/11 "2022-06-15T17:58:08Z")

</div>

Hi @ron.p,

Thank you for your response and clarification.

After testing further in a Passwordless Email User scenario, I found that the Verification Email is not supported for Passwordless Email users.

When I created a new Passwordless Email User using `"verify_email": false`, I did not receive any verification emails. Similarly, I did not receive any verification emails when creating a new Passwordless Email user with the `"verify_email"` property omitted, with the payload below:

```auto
{
  "connection": "email",
  "email": "ruebentiow+test@gmail.com"
}

```

This is consistent with my findings when trying to send a Verification Email using the Management API’s [Send an email address verification email](https://auth0.com/docs/api/management/v2#!/Jobs/post_verification_email) endpoint to a Passwordless Email User:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/c/6/c6c88b397f7ba51289742bfa9852bc5a111e9edb.jpeg)

With that, I can confirm that creating Passwordless Email users will not send any verification emails to the users.

I hope this helps!

Please let me know if you are still encountering issues or have further questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![arnaudf](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/arnaudf/32/34621_2.png) [@arnaudf](https://community.auth0.com/u/arnaudf)\
**Post date:** [June 24, 2022, 1:04pm UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/12 "2022-06-24T13:04:36Z")

</div>

Hey,  
I am facing the exact same issue, did you figure out how to prevent this “sign in email” to be sent at the user creation?  
best  
Arnaud

---

<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:** [July 6, 2022, 5:34pm UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/13 "2022-07-06T17:34:53Z")

</div>

Hi @arnaudf,

The correct way to prevent sending a verification email to a newly created user is to pass the `"verify_email": false` property in the request.

Please see [my earlier post](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/9) regarding this. Also, note that this will only work for database users.

Please, let me know if you have any questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![alessandrof94](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alessandrof94/32/33806_2.png) [@alessandrof94](https://community.auth0.com/u/alessandrof94)\
**Post date:** [July 12, 2022, 12:14pm UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/14 "2022-07-12T12:14:45Z")

</div>

Hi @rueben.tiow, I believe that the mail they are speaking about is not the “verification email”.  
I have the same issue, when I create a new user (“connection”: “email”) through API, the new user receive a sign-in email (the same email that a user receive when he tries to login to the application).  
Is there a way to prevent the sign-in email to be sent after a user creation through API?

---

<div class="post-metadata">

**Author:** ![arnaudf](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/arnaudf/32/34621_2.png) [@arnaudf](https://community.auth0.com/u/arnaudf)\
**Post date:** [July 12, 2022, 1:19pm UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/15 "2022-07-12T13:19:33Z")

</div>

Hi Rueben,

the solution in the earlier post does not work for me and I understand it is the same for [ron.p](https://community.auth0.com/u/ron.p) as we don’t use

> [@rueben.tiow](#):
>
> ```auto
> "connection": "Username-Password-Authentication",
> 
> ```

but we use a passwordless connection and then users are created with:

```auto
  "connection": "email",

```

can we prevent the sign-in email to be sent?

---

<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:** [July 13, 2022, 5:29pm UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/16 "2022-07-13T17:29:35Z")

</div>

Hi @arnaudf,

Thank you for your response and clarification.

> [@arnaudf](#):
>
> can we prevent the sign-in email to be sent?

First, let me clarify that the Passwordless Email Connection does not support sending verification emails.

I mentioned in [this post](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/11) that during my tests, I confirmed it is not possible to send a verification email to a Passwordless Email User.

The sign-in email, however, cannot be prevented since it contains a link/code sent to the user to proceed with the login.

Does that answer your question?

Thank you.

---

<div class="post-metadata">

**Author:** ![arnaudf](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/arnaudf/32/34621_2.png) [@arnaudf](https://community.auth0.com/u/arnaudf)\
**Post date:** [July 14, 2022, 2:48pm UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/17 "2022-07-14T14:48:51Z")

</div>

Hi @rueben.tiow,

thanks for the confirmation. Sadly, it means we won’t go to production with auth0.

---

<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:** [July 14, 2022, 4:36pm UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/18 "2022-07-14T16:36:46Z")

</div>

Hi @arnaudf,

We’re sorry to hear that!

If you have a moment, could you please take a minute to submit a [feedback request](https://community.auth0.com/c/feedback/95) asking for support to prevent the sign-in email from being sent to a newly created Passwordless user?

Thank you!

---

<div class="post-metadata">

**Author:** ![alessandrof94](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alessandrof94/32/33806_2.png) [@alessandrof94](https://community.auth0.com/u/alessandrof94)\
**Post date:** [July 20, 2022, 9:25am UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/19 "2022-07-20T09:25:06Z")

</div>

Hi @rueben.tiow,

I noticed that this “sign-in email” is not sent to a newly created Passwordless user, if the user is created using: “email\_verified”: true  
So, this “sign-in email” should not be prevented also if the user is created using “verify\_email”: false?

---

<div class="post-metadata">

**Author:** ![brandon44](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brandon44/32/33639_2.png) [@brandon44](https://community.auth0.com/u/brandon44)\
**Post date:** [September 2, 2022, 8:30pm UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/20 "2022-09-02T20:30:19Z")

</div>

I can also confirm that the verification email was still being sent when creating a user with `{ connection: email, verify_email: false }`. I have also disabled the verification email template.

For anyone else trying to figure out how to create a user and prevent the email from being sent, my current hack/solution as to set `{ connection: email, email_verified: true }` when creating the user and then immediately updating the user with `{ email_verified: false }` in order to prevent the initial verification email from being sent. I then send a magic link with a separate request.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 6, 2022, 5:41pm UTC](https://community.auth0.com/t/email-sent-although-verify-email-field-is-false/83237/21 "2022-10-06T17:41:13Z")

</div>


