# Cancel an invite

**URL:** https://meta.discourse.org/t/cancel-an-invite/290652
**Category:** Development
**Tags:** rest-api, invites
**Created:** [January 5, 2024, 5:56pm UTC](https://meta.discourse.org/t/cancel-an-invite/290652 "2024-01-05T17:56:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Tom\_Thele](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_thele/32/199241_2.png) [@Tom\_Thele](https://meta.discourse.org/u/Tom_Thele)
#### Post date: [January 5, 2024, 5:56pm UTC](https://meta.discourse.org/t/cancel-an-invite/290652/1 "2024-01-05T17:56:41Z")

</div>

We are about to issue invitations to a large group of new users who subscribe to a product. Discourse access is a new benefit we are launching to current subscribers. My concern is users whom we invite to join a group but cancel the subscription before they accept the invitation. In this situation, the subscription would end but the invitation would still be open (valid for 30 days from send). I want to be able to stop them from joining the group in Discourse, in this situation.

Questions: Can I remove them from a group (using the API) while the invitation is pending? Are they actually in the group while the invite is pending? I assume if I can remove them from the group and they accept the invitation, they just won’t have access to anything.  
Is there a way to rescind the invitation via the API?  
Any suggestions on handling this situation would be appreciated.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [January 5, 2024, 7:39pm UTC](https://meta.discourse.org/t/cancel-an-invite/290652/2 "2024-01-05T19:39:16Z")

</div>

> [@Tom\_Thele](#):
>
> Is there a way to rescind the invitation via the API?

You can do anything from the API that you can do from the UX – [Reverse engineer the Discourse API](https://meta.discourse.org/t/reverse-engineer-the-discourse-api/20576).

Ideally you’d use discourse\_connect to connect Discourse to whatever it is that manages your subscriptions, but if that’s not feasible, you can have it update stuff via the API.

---

<div class="post-metadata">

### Author: ![Tom\_Thele](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_thele/32/199241_2.png) [@Tom\_Thele](https://meta.discourse.org/u/Tom_Thele)
#### Post date: [January 9, 2024, 3:41pm UTC](https://meta.discourse.org/t/cancel-an-invite/290652/3 "2024-01-09T15:41:26Z")

</div>

Thanks Jay, that is good to know.

The bigger question still is, how do I negate a pending invite. I see where others have asked this but they never got a direct answer. Anyone know the answer?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [January 9, 2024, 4:17pm UTC](https://meta.discourse.org/t/cancel-an-invite/290652/4 "2024-01-09T16:17:21Z")

</div>

On your invites page (`https://HOSTNAME/my/invited/pending`) next to the invite, click the trash can:

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/e/8/6e8493ff7a9c0c1e833c70ad89addb72611e3725.png)

So if you want to do it from the API, you’ll see the reverse engineering link above.
