# Ambiguity in "Send Email Invitations for Application Signup" docs

**URL:** <https://community.auth0.com/t/ambiguity-in-send-email-invitations-for-application-signup-docs/91967>\
**Category:** Get Help\
**Created:** [October 7, 2022, 12:59pm UTC](https://community.auth0.com/t/ambiguity-in-send-email-invitations-for-application-signup-docs/91967 "2022-10-07T12:59:24Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![amine.chikhaoui](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/amine.chikhaoui/32/33994_2.png) [@amine.chikhaoui](https://community.auth0.com/u/amine.chikhaoui)\
**Post date:** [October 7, 2022, 12:59pm UTC](https://community.auth0.com/t/ambiguity-in-send-email-invitations-for-application-signup-docs/91967/1 "2022-10-07T12:59:24Z")

</div>

Hello,

We’re trying to follow the guide in [Send Email Invitations for Application Signup](https://auth0.com/docs/customize/email/send-email-invitations-for-application-signup) but it isn’t clear in section **create-email-template** which part is sending the email. My assumption is that auth0 will handle sending the invite email using the template that is configured.

But the only api call mentioned in the docs is `https://{yourAuth0Tenant}/api/v2/tickets/password-change` which seems to only generate the url that can be used in the email ? Is that API call also supposed to trigger the send email flow or is there another step missing from the docs. Or is it assumed that it’s the job of the application to handle sending the email, in which case I don’t see the purpose of the email template setup.

Let me know if we’re missing something, thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [October 7, 2022, 4:14pm UTC](https://community.auth0.com/t/ambiguity-in-send-email-invitations-for-application-signup-docs/91967/3 "2022-10-07T16:14:05Z")

</div>

Hi @amine.chikhaoui ,

Welcome to the Auth0 Community!

Your assumption is correct that Auth0 handles sending the invitation email using the template that’s configured.

The [Send Email Invitations for Application Signup](https://auth0.com/docs/customize/email/send-email-invitations-for-application-signup) doc mentioned

`The user invitation email is derived from the "change password" template.`

The **create-email-template** section explains details about the “Change Password” template.

The API call https://{yourAuth0Tenant}/api/v2/tickets/password-change will send an email to the user to change their password, and the “Change Password” email template is for customizing this email.

Hopefully, the above details answer your questions. Please let me know if any other concerns.

Thanks!

---

<div class="post-metadata">

**Author:** ![amine.chikhaoui](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/amine.chikhaoui/32/33994_2.png) [@amine.chikhaoui](https://community.auth0.com/u/amine.chikhaoui)\
**Post date:** [October 7, 2022, 4:18pm UTC](https://community.auth0.com/t/ambiguity-in-send-email-invitations-for-application-signup-docs/91967/4 "2022-10-07T16:18:40Z")

</div>

@lihua.zhang thanks for the clarification, we will investigate then from our side if we had something missing in the setup. But great to clarify this should be possible.

---

<div class="post-metadata">

**Author:** ![amine.chikhaoui](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/amine.chikhaoui/32/33994_2.png) [@amine.chikhaoui](https://community.auth0.com/u/amine.chikhaoui)\
**Post date:** [October 12, 2022, 1:37pm UTC](https://community.auth0.com/t/ambiguity-in-send-email-invitations-for-application-signup-docs/91967/5 "2022-10-12T13:37:18Z")

</div>

Hi again, just reopening this as I think the documentation is either outdated or not working.

I followed the guide in [Send Email Invitations for Application Signup](https://auth0.com/docs/customize/email/send-email-invitations-for-application-signup) word by word but it doesn’t seem to work as expected.

Steps to reproduce:

- created a user through [/api/v2/users](https://auth0.com/docs/api/management/v2/#!/Users/post_users) using a body:

```json
{
    "email": "<email>",
    "email_verified": false,
    "given_name": "Amine",
    "family_name": "Chikhaoui",
    "name": "Amine Chikhaoui",
    "connection": "<db-connection-name>",
    "verify_email": false,
  }

```

- Then I used the change-password api as suggested in [Send Email Invitations for Application Signup](https://auth0.com/docs/customize/email/send-email-invitations-for-application-signup), first the documentation suggests the following which has a typo and also doesn’t work as `redirect_url` conflicts with `client_id` from the API docs (also returns http 400 when used)

```shell
curl -- request POST \
  --url 'https://{yourAuth0Tenant}/api/v2/tickets/password-change' \
  --header "Content-Type: application/json" \
  --data '{"result_url": "{yourResultURL}","user_id":,{yourUserID}","client_id":"{yourClientID","ttl_sec":0,"mark_email_as_verified":false,"includeEmailInRedirect":false}'

```

So I tried both with `redirect_url` only and `client_id`, but the only result I get with a successful api call is

```json
{
  "ticket": "https://<tenant>.us.auth0.com/lo/reset?ticket=<ticket-id>#"
}

```

which is supposedly what should have been sent through an email as well but the email never gets sent even when the api response is an http 201 with a ticket URL. I have verified that the email provider connection works and that the change password email template works as well so I’m out of ideas about what can be missing unless the documentation is incorrect or there is something wrong with the setup but I have no way to investigate at which point this is not working.

Let me know if this is reproducible or if I have something missing. Thanks !

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [October 13, 2022, 8:52pm UTC](https://community.auth0.com/t/ambiguity-in-send-email-invitations-for-application-signup-docs/91967/7 "2022-10-13T20:52:38Z")

</div>

I did some testing and more research on this topic. As you have found, the https://{yourAuth0Tenant}/api/v2/tickets/password-change will generate a ticket that contains a link to the change password page. Your application will need to send the email to the user because Auth0 does not have an API to send an email containing the ticket link.

If you look for ways to send the change password email to users, please call the [POST dbconnections/change\_password](https://auth0.com/docs/api/authentication#change-password) endpoint.

I found [this](https://community.auth0.com/t/feedback-about-docs-page-called-send-email-invitations-for-application-signup/74107) feedback regarding [Send Email Invitations for Application Signup](https://auth0.com/docs/customize/email/send-email-invitations-for-application-signup). Please click on the Vote button if it addresses your concern.

Thanks!

---

<div class="post-metadata">

**Author:** ![amine.chikhaoui](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/amine.chikhaoui/32/33994_2.png) [@amine.chikhaoui](https://community.auth0.com/u/amine.chikhaoui)\
**Post date:** [October 13, 2022, 9:17pm UTC](https://community.auth0.com/t/ambiguity-in-send-email-invitations-for-application-signup-docs/91967/8 "2022-10-13T21:17:18Z")

</div>

Unfortunately, your reply is even more confusing.

> [@lihua.zhang](#):
>
> If you look for ways to send the change password email to users, please call the [POST dbconnections/change\_password](https://auth0.com/docs/api/authentication#change-password) endpoint.

That’s the authentication api, isn’t that supposed to only be used by an authenticated user ? I’m talking here about the invitation for a first time signup case which as far as I know should be handled all by the mgmt api.

> [@lihua.zhang](#):
>
> I found this feedback regarding [Send Email Invitations for Application Signup](https://auth0.com/docs/customize/email/send-email-invitations-for-application-signup). Please click on the Vote button if it addresses your concern.

I don’t understand what you mean here ? That’s the link for the documentation I sent initially, did you mean to post another link.

---

<div class="post-metadata">

**Author:** ![chamara](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/chamara/32/44482_2.png) [@chamara](https://community.auth0.com/u/chamara)\
**Post date:** [February 9, 2023, 11:11am UTC](https://community.auth0.com/t/ambiguity-in-send-email-invitations-for-application-signup-docs/91967/9 "2023-02-09T11:11:52Z")

</div>

we are having the same issue is there any update on this?

---

<div class="post-metadata">

**Author:** ![eemil.ilkka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/eemil.ilkka/32/45093_2.png) [@eemil.ilkka](https://community.auth0.com/u/eemil.ilkka)\
**Post date:** [March 3, 2023, 2:12pm UTC](https://community.auth0.com/t/ambiguity-in-send-email-invitations-for-application-signup-docs/91967/10 "2023-03-03T14:12:06Z")

</div>

Same issue, I’ve opened a post [Auth0 Invite User](https://community.auth0.com/t/auth0-invite-user/101746) any info @lihua.zhang

---

<div class="post-metadata">

**Author:** ![juan.fiallos](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/juan.fiallos/32/48466_2.png) [@juan.fiallos](https://community.auth0.com/u/juan.fiallos)\
**Post date:** [June 29, 2023, 10:09pm UTC](https://community.auth0.com/t/ambiguity-in-send-email-invitations-for-application-signup-docs/91967/11 "2023-06-29T22:09:25Z")

</div>

Hello Lihua!

I’m already sending the email to change password, but how can the user SignIn after changing password??? I mean he changes and then go to the callback page to enter the App.

Thanks!!

---

<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:** [November 14, 2024, 1:09am UTC](https://community.auth0.com/t/ambiguity-in-send-email-invitations-for-application-signup-docs/91967/12 "2024-11-14T01:09:21Z")

</div>

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