# API Functionality for invites

**URL:** https://meta.discourse.org/t/api-functionality-for-invites/20278
**Category:** Feature
**Created:** [2014年九月20日 22:22 UTC](https://meta.discourse.org/t/api-functionality-for-invites/20278 "2014-09-20T22:22:59Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![alxnik](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@alxnik](https://meta.discourse.org/u/alxnik)
#### Post date: [2014年九月20日 22:22 UTC](https://meta.discourse.org/t/api-functionality-for-invites/20278/1 "2014-09-20T22:22:59Z")

</div>

I have deployed a discourse installation which is invite only and I am looking for a way to trigger invitations from another website. However, I don’t want to invite users to a specific topic, but to the forum in general. The ideal solution for this is to have invites generated from the user profile page functionality.

Is there a way to generate invites from the API that will not tie the invite to a specific topic? Bonus points if it is possible to add the user to specific groups.  
FYI, I’m going to implement this in python so I’m not looking for a solution via the ruby reference api implementation (And I checked that it doesn’t support it), however in the [routes.txt](https://github.com/discourse/discourse_api/blob/master/routes.txt) file I can see some invitation specific endpoints. Do these work? If yes, how can I call them?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2014年九月21日 05:09 UTC](https://meta.discourse.org/t/api-functionality-for-invites/20278/3 "2014-09-21T05:09:19Z")

</div>

Frank neither of those has anything to do with API, they are part of the standard user interface on your user page, Invites tab.

---

<div class="post-metadata">

### Author: ![alxnik](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@alxnik](https://meta.discourse.org/u/alxnik)
#### Post date: [2014年九月21日 10:05 UTC](https://meta.discourse.org/t/api-functionality-for-invites/20278/4 "2014-09-21T10:05:58Z")

</div>

Frank, thanks for the info, but it is not what I’m looking for. To be more specific, I don’t want to use the bulk invites functionality, I want to be able to do it on per user basis, just not tied to a specific topic.

At this point I’m thinking of diving in the server code to look into it myself, but I have no ruby experience whatsoever!

---

<div class="post-metadata">

### Author: ![Frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@Frank](https://meta.discourse.org/u/Frank)
#### Post date: [2014年九月21日 15:13 UTC](https://meta.discourse.org/t/api-functionality-for-invites/20278/5 "2014-09-21T15:13:08Z")

</div>

Okay. I understand. I will pull my comment. I don’t want to add confusion. Thanks for clarifying.

Sorry about that @codinghorror 😕 It was late and I was ‘scanning’ the question.

A bad answer is worse than no answer…

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2014年九月21日 18:32 UTC](https://meta.discourse.org/t/api-functionality-for-invites/20278/6 "2014-09-21T18:32:23Z")

</div>

Sent a PR to add _Invite User_ functionality, without tying the invite to a specific topic:

[https://github.com/discourse/discourse\_api/pull/39](https://github.com/discourse/discourse_api/pull/39)

> [@alxnik](#):
>
> Bonus points if it is possible to add the user to specific groups.

Yes, it is possible to add (invite) a user to specific/multiple groups. 🙂

---

<div class="post-metadata">

### Author: ![alxnik](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@alxnik](https://meta.discourse.org/u/alxnik)
#### Post date: [2014年九月22日 18:05 UTC](https://meta.discourse.org/t/api-functionality-for-invites/20278/7 "2014-09-22T18:05:23Z")

</div>

Works like a charm. Thanks!

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [2025年十二月4日 11:32 UTC](https://meta.discourse.org/t/api-functionality-for-invites/20278/8 "2025-12-04T11:32:26Z")

</div>


