# Customize organizations/{id}/invitations URL to initator domain

**URL:** <https://community.auth0.com/t/customize-organizations-id-invitations-url-to-initator-domain/132000>\
**Category:** Get Help\
**Tags:** emails, management-api\
**Created:** [April 15, 2024, 10:54am UTC](https://community.auth0.com/t/customize-organizations-id-invitations-url-to-initator-domain/132000 "2024-04-15T10:54:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![falko](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/falko/32/50952_2.png) [@falko](https://community.auth0.com/u/falko)\
**Post date:** [April 15, 2024, 10:54am UTC](https://community.auth0.com/t/customize-organizations-id-invitations-url-to-initator-domain/132000/1 "2024-04-15T10:54:30Z")

</div>

We have several organizations that have multiple domains where they can log in.

I would like to customize their invitation email created with the management API [Auth0 Management API v2](https://auth0.com/docs/api/management/v2/organizations/post-invitations) to contain the domain that the managment request was send from. Currently I only found out how I can customize the URL to something organization specific

Email template

```auto
{{ organization.metadata.app_url}}{{ url | remove: '${my_login_uri}' }}

```

I was hoping for something like

```auto
curl -L 'https://login.auth0.com/api/v2/organizations/:id/invitations' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{"inviter":{"name":"string"},"invitee":{"email":"user@example.com"},"client_id":"string","connection_id":"string",
"app_metadata":{my_url: "https://example.com"},
"user_metadata":{},"ttl_sec":0,"roles":["string"],"send_invitation_email":true}'

```

email template

```auto
{{ application.my_url}}{{ url | remove: '${my_login_uri}' }}

```

---

<div class="post-metadata">

**Author:** ![falko](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/falko/32/50952_2.png) [@falko](https://community.auth0.com/u/falko)\
**Post date:** [September 24, 2024, 2:28pm UTC](https://community.auth0.com/t/customize-organizations-id-invitations-url-to-initator-domain/132000/2 "2024-09-24T14:28:20Z")

</div>

Installing multiple apps for each deployment solved the problem since the app callback url is used in the invite template.

---

<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:** [October 8, 2024, 2:28pm UTC](https://community.auth0.com/t/customize-organizations-id-invitations-url-to-initator-domain/132000/3 "2024-10-08T14:28:25Z")

</div>

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