# Organization API Invite Issue

**URL:** <https://community.auth0.com/t/organization-api-invite-issue/74256>\
**Category:** Get Help\
**Created:** [December 5, 2021, 3:06am UTC](https://community.auth0.com/t/organization-api-invite-issue/74256 "2021-12-05T03:06:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jphillips](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jphillips/32/33480_2.png) [@jphillips](https://community.auth0.com/u/jphillips)\
**Post date:** [December 5, 2021, 3:06am UTC](https://community.auth0.com/t/organization-api-invite-issue/74256/1 "2021-12-05T03:06:37Z")

</div>

I am sending an API request for organization invites based on [Send Organization Membership Invitations](https://auth0.com/docs/organizations/configure/send-membership-invitations). The request is successful and the user receives an email with a link similar to [https://login.example.com/?invitation=xxx&organization=xxx&organization\_name=xxx](https://login.example.com/?invitation=xxx&organization=xxx&organization_name=xxx). However, when the user clicks on this link, instead of showing some type of success or regestraion page, it redirects to [https://www.example.com](https://www.example.com). I have tried this with both a user in the system and a new email not listed under user management.

---

<div class="post-metadata">

**Author:** ![jphillips](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jphillips/32/33480_2.png) [@jphillips](https://community.auth0.com/u/jphillips)\
**Post date:** [December 5, 2021, 3:31am UTC](https://community.auth0.com/t/organization-api-invite-issue/74256/2 "2021-12-05T03:31:16Z")

</div>

I discovered [Invite Organization Members](https://auth0.com/docs/organizations/configure/invite-members#integrate-the-membership-invitation-flow-into-your-application) where it states I need to redirect the request to `/authorize`. Since I am using a SPA application I just use the loginWithRedirect method and provide the invitation code and organization.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 6, 2021, 7:20pm UTC](https://community.auth0.com/t/organization-api-invite-issue/74256/3 "2021-12-06T19:20:43Z")

</div>

Perfect! Thanks for sharing that with the rest of community!

---

<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:** [December 21, 2021, 7:21pm UTC](https://community.auth0.com/t/organization-api-invite-issue/74256/4 "2021-12-21T19:21:23Z")

</div>

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