# Automate sending Discourse invite emails with Zapier

**URL:** https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608
**Category:** Integrations
**Tags:** how-to, tasks, zapier
**Created:** [28 juni 2019 om 23:14 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608 "2019-06-28T23:14:56Z")
**Posts on this page:** 18
**Page:** 2

<div class="post-metadata">

### Author: ![Krischan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/krischan/32/47290_2.png) [@Krischan](https://meta.discourse.org/u/Krischan)
#### Post date: [17 mei 2021 om 15:26 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/31 "2021-05-17T15:26:31Z")

</div>

You could check with a get action event, if the user already has an account:

 ![Unbenannt](https://global.discourse-cdn.com/meta/original/3X/3/5/35f519f80131ec2b6a41d168e3b21e25c279644c.jpeg)

And if it’s the case, you run a path where you add this user to a group using a put action:

 ![Unbenannt3](https://global.discourse-cdn.com/meta/original/3X/c/f/cf16aa5e55e49f7b244fe06e6ac17cc5e52e17a3.jpeg)

---

<div class="post-metadata">

### Author: ![Sebastien78](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@Sebastien78](https://meta.discourse.org/u/Sebastien78)
#### Post date: [17 mei 2021 om 16:05 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/33 "2021-05-17T16:05:23Z")

</div>

> [@Sebastien78](#):
>
> Awesome Krischan ! Thanks for your quick reply ! I’m trying it right now.
> 
> The Get part seems to work.
> 
> But I have an issue on the Put action :
> 
> 1 / Can you tell me which Content-type do I have to put in header ?  
> (I guess I still add my API Username and API Key)
> 
> 2/ On the URL of the Put Action, do I have to use the group ID (in number, like 110 in your example), or can I use the name I can get on the URL of the groupe ? (like “course-A” for example)
> 
> I tried to use the Name of the groupe (I don’t know where can I get the group ID) and it doesn’t seems to work.
> 
> Thanks ! 😃

Awesome Krischan ! Thanks for your quick reply ! I’m trying it right now.

The Get part seems to work.

But I have an issue on the Put action :

1 / Can you tell me which Content-type do I have to put in header ?  
(I guess I still add my API Username and API Key)

2/ On the URL of the Put Action, do I have to use the group ID (in number, like 110 in your example), or can I use the name I can get on the URL of the groupe ? (like “course-A” for example)

I tried to use the Name of the groupe (I don’t know where can I get the group ID) and it doesn’t seems to work.

Thanks ! 😃

---

<div class="post-metadata">

### Author: ![Krischan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/krischan/32/47290_2.png) [@Krischan](https://meta.discourse.org/u/Krischan)
#### Post date: [17 mei 2021 om 17:01 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/34 "2021-05-17T17:01:38Z")

</div>

Content type: multipart/form-data

No, I guess you have to use the group ID. You can get it eg. from the json file: [https://meta.discourse.org/g.json](https://meta.discourse.org/g.json)

---

<div class="post-metadata">

### Author: ![Sebastien78](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@Sebastien78](https://meta.discourse.org/u/Sebastien78)
#### Post date: [17 mei 2021 om 18:28 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/35 "2021-05-17T18:28:50Z")

</div>

Awesome, with this content type + group ID, it seems to work !

Thanks for your quick help Krischan!

---

<div class="post-metadata">

### Author: ![Sebastien78](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@Sebastien78](https://meta.discourse.org/u/Sebastien78)
#### Post date: [19 mei 2021 om 15:37 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/36 "2021-05-19T15:37:19Z")

</div>

Hi Krischan ! 🙂

Do you know if there is a way to notify the user by email to tell him he has been added to a group (with the Discourse API on Zapier) ?

I know it’s possible to tick a box, when we manually add email to a group on Discourse.

It could be good if I could trigger an email when my Zap is adding them to a new group.

Thanks !

---

<div class="post-metadata">

### Author: ![Krischan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/krischan/32/47290_2.png) [@Krischan](https://meta.discourse.org/u/Krischan)
#### Post date: [19 mei 2021 om 15:58 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/37 "2021-05-19T15:58:47Z")

</div>

Why don’t you send him a private message with a post event?

 ![Unbenan33nt](https://global.discourse-cdn.com/meta/original/3X/5/3/53d57ed3080fdb7942a9664fea2a2a1023f46af1.jpeg)

---

<div class="post-metadata">

### Author: ![Sebastien78](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@Sebastien78](https://meta.discourse.org/u/Sebastien78)
#### Post date: [19 mei 2021 om 16:18 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/38 "2021-05-19T16:18:30Z")

</div>

Thanks for your reply @Krischan !

Do you see a quicker way to notify the user ? (It’s ok if it’s a basic message from discourse, just like the one the user receives if I tick the checkbox “notify the users.”

 ![Screenshot 2021-05-19 at 18.15.37](https://global.discourse-cdn.com/meta/original/3X/e/9/e94a4f28431d36248433bdb400baba61fb68c230.png)

Your solution is great, but as I have a lot of groups and automations, it could be great if I could just add “one” data type, for example to just “activate” the notification, instead of creating 30 new zap 😛

---

<div class="post-metadata">

### Author: ![Krischan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/krischan/32/47290_2.png) [@Krischan](https://meta.discourse.org/u/Krischan)
#### Post date: [19 mei 2021 om 16:22 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/39 "2021-05-19T16:22:40Z")

</div>

Sorry, I haven’t done this yet. But maybe this post can help you:

> [@Reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576):
>
> Discourse is backed by a complete JSON api. Anything you can do on the site you can also do using the JSON api. The API is documented at [docs.discourse.org](https://docs.discourse.org). You can also use the [discourse\_api](https://github.com/discourse/discourse_api) Ruby gem as a client library. However, not every endpoint is documented. To determine how to do something with the JSON API here are some steps you can follow. Example: recategorize a topic. Go to a topic and start editing a category: Open Chrome dev tools, switch to the Network tab, select …

---

<div class="post-metadata">

### Author: ![Sebastien78](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@Sebastien78](https://meta.discourse.org/u/Sebastien78)
#### Post date: [25 mei 2021 om 17:07 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/40 "2021-05-25T17:07:39Z")

</div>

Thanks for your reply Krischan !  
I will check that 🙂

---

<div class="post-metadata">

### Author: ![Sebastien78](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@Sebastien78](https://meta.discourse.org/u/Sebastien78)
#### Post date: [23 juni 2021 om 16:23 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/41 "2021-06-23T16:23:45Z")

</div>

Hi guys 🙂

Do you know if there is a way to Remove a member from a group, using the same logic explained upper ?

I noticed the API has a way to Delete group member : [Discourse API Docs](https://docs.discourse.org/#tag/Groups/paths/~1groups~1%7Bid%7D~1members.json/delete)

But I’m not sure how to use it on Zapier 😕

---

<div class="post-metadata">

### Author: ![Juliano\_Madalena](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/juliano_madalena/32/183622_2.png) [@Juliano\_Madalena](https://meta.discourse.org/u/Juliano_Madalena)
#### Post date: [23 mei 2022 om 22:57 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/42 "2022-05-23T22:57:21Z")

</div>

Hello,

I need some help here. I’ve followed all the instruction and the link was created. However, the link is not assign to an e-mail. The e-mail field is empty and the user don’t receive any e-mail.

See:

 ![Captura de Tela 2022-05-23 às 19.49.06](https://global.discourse-cdn.com/meta/original/4X/e/b/9/eb9c9a219f142b1c22ce9747edb7a117cbcac686.png)

The results:

 ![Captura de Tela 2022-05-23 às 19.49.57](https://global.discourse-cdn.com/meta/original/4X/8/c/9/8c931d8d9978cc11b99bfbe31d814278430877bb.png)

---

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [21 juli 2023 om 21:31 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/43 "2023-07-21T21:31:58Z")

</div>

Has anyone had error messages on their email invite zap’s recently? In my case I get 403 and 404’s and some invites are not sent out successfully

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [21 juli 2023 om 23:39 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/44 "2023-07-21T23:39:17Z")

</div>

> [@jrgong](#):
>
> In my case I get 403 and 404’s

It sounds like a permission issue with either the Api-Key or Api-Username. Try checking both of those on your Discourse site. Make sure that the user you have supplied for the Api-Username is still active on the site and that the Api-Key has either the Global scope, or has a Granular scope with the Invites scope box checked.

Let us know if that doesn’t fix the issue.

---

<div class="post-metadata">

### Author: ![jbrains](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jbrains/32/208183_2.png) [@jbrains](https://meta.discourse.org/u/jbrains)
#### Post date: [11 december 2023 om 15:45 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/45 "2023-12-11T15:45:09Z")

</div>

I’m bumping Juliano’s message because I tried this _just now_ and experienced the same thing. How do I ensure that the invitation I create is an **email** invitation? I seem to be able to create only **link** invitations, although those work just fine.

---

<div class="post-metadata">

### Author: ![jbrains](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jbrains/32/208183_2.png) [@jbrains](https://meta.discourse.org/u/jbrains)
#### Post date: [25 januari 2024 om 14:50 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/46 "2024-01-25T14:50:03Z")

</div>

A little update on this, since I’m trying again.

Zapier’s Discourse integration app appears to have a defect: it maps both the “email” and the “skip\_email” POST request body value to the same key: “skip\_email”. This results in Discourse receiving an HTTP POST request with no “email” item in the request body, so the invite is created as a “link” invite rather than an “email” invite.

I’m sending Zapier a support email. We’ll see what happens. 🤷

If I use Zapier’s generic Webhook feature, I can create the invitation, but Discourse isn’t sending the email, so I need to figure out why not. I’ll follow up when I learn more.

---

<div class="post-metadata">

### Author: ![Nick-Permaculture](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nick-permaculture/32/317842_2.png) [@Nick-Permaculture](https://meta.discourse.org/u/Nick-Permaculture)
#### Post date: [3 mei 2024 om 02:10 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/48 "2024-05-03T02:10:53Z")

</div>

Any way to do this using [make.com](http://make.com) instead of Zapier? It functions similarly and has Discourse integration, but I can’t find an invite command.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [3 mei 2024 om 04:08 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/49 "2024-05-03T04:08:25Z")

</div>

> [@Nick-Permaculture](#):
>
> Any way to do this using [make.com](http://make.com) instead of Zapier?

I’m sure there is.

> [@Nick-Permaculture](#):
>
> It functions similarly and has Discourse integration, but I can’t find an invite command.

The Discourse Zapier integration doesn’t have an Invite command either. This topic is actually explaining how to get around that issue by using a Zapier action step that allows you to make an API call to Discourse. I’m fairly sure you can achieve the same thing on [make.com](http://make.com) by using their Make an API Call action: [https://www.make.com/en/integrations/discourse](https://www.make.com/en/integrations/discourse).

You might find useful details in this topic’s OP about how to set that up. If you have questions about getting it to work, it would be best to ask them here: [How to connect Discourse with hundreds of apps using Make](https://meta.discourse.org/t/how-to-connect-discourse-with-hundreds-of-apps-using-integromat/180181/1). (Integromat was renamed to [Make.com](http://Make.com)).

@JammyDodger the topic that I linked to should probably be renamed and edited to make it clear that it refers to [Make.com](http://Make.com) not Integromat.

---

<div class="post-metadata">

### Author: ![Nick-Permaculture](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nick-permaculture/32/317842_2.png) [@Nick-Permaculture](https://meta.discourse.org/u/Nick-Permaculture)
#### Post date: [3 mei 2024 om 14:58 UTC](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608/50 "2024-05-03T14:58:51Z")

</div>

Thanks so much for the reply and links. I had not known that [Make.com](http://Make.com) had another name previously, so that helps. I’ll take a crack at it.

[Vorige pagina](https://meta.discourse.org/t/automate-sending-discourse-invite-emails-with-zapier/121608.md?page=1)
