# Send message to a patron using an API

**URL:** <https://www.patreondevelopers.com/t/send-message-to-a-patron-using-an-api/6864>\
**Category:** Candid Questions\
**Created:** [January 12, 2023, 1:08am UTC](https://www.patreondevelopers.com/t/send-message-to-a-patron-using-an-api/6864 "2023-01-12T01:08:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcus\_Jacobson](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@Marcus\_Jacobson](https://www.patreondevelopers.com/u/Marcus_Jacobson)\
**Post date:** [January 12, 2023, 1:08am UTC](https://www.patreondevelopers.com/t/send-message-to-a-patron-using-an-api/6864/1 "2023-01-12T01:08:42Z")

</div>

Is there any way to send a user a message programmatically?  
My use case is as follows: When a new patron subscribes to my campaign (if that’s the correct term? Becomes a new patron), I want to send them a message containing a single use activation code, allowing them to create a new account on my website.

This activation code must obviously also be registered by my server, and must be unique for each user.  
Allowing me to send messages to my patrons programmatically would solve this issue.

Is this possible?  
Or is there an other way to solve this?

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [January 12, 2023, 6:30pm UTC](https://www.patreondevelopers.com/t/send-message-to-a-patron-using-an-api/6864/2 "2023-01-12T18:30:22Z")

</div>

That wouldnt be possible via Patreon using the API. However, if you sync your patrons to your site, you can then automatically send a message to that patron via the patron’s email through your site.

---

<div class="post-metadata">

**Author:** ![Marcus\_Jacobson](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@Marcus\_Jacobson](https://www.patreondevelopers.com/u/Marcus_Jacobson)\
**Post date:** [January 12, 2023, 6:53pm UTC](https://www.patreondevelopers.com/t/send-message-to-a-patron-using-an-api/6864/3 "2023-01-12T18:53:37Z")

</div>

Do you have any links/tutorials/instructions of how to achieve this?  
Or do you just mean that I can send them an email without using patreon infrastructure?

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [January 13, 2023, 7:15pm UTC](https://www.patreondevelopers.com/t/send-message-to-a-patron-using-an-api/6864/4 "2023-01-13T19:15:12Z")

</div>

Yes, I meant that when you sync your patrons to your app, you can trigger an email (through mailgun, sendgrid or whatever mail service you are using) to send them an email from your app/site.

---

<div class="post-metadata">

**Author:** ![momocode-de](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/momocode-de/32/2564_2.png) [@momocode-de](https://www.patreondevelopers.com/u/momocode-de)\
**Post date:** [June 6, 2024, 10:11am UTC](https://www.patreondevelopers.com/t/send-message-to-a-patron-using-an-api/6864/5 "2024-06-06T10:11:36Z")

</div>

I have a similar use case as the thread creator. However, there is a problem when sending emails to the addresses stored in Patreon. It is possible that someone has registered with Patreon using an Apple ID. And “relay” addresses such as “a1b2c3@privaterelay.appleid.com” could then be used there. However, only Patreon can write an e-mail to these addresses, as the domain must be registered for this, as you can read [here](https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_js/communicating_using_the_private_email_relay_service).

So it is not possible for every member to contact them by e-mail. Is there another solution for our case?

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [June 7, 2024, 9:37pm UTC](https://www.patreondevelopers.com/t/send-message-to-a-patron-using-an-api/6864/6 "2024-06-07T21:37:57Z")

</div>

Nope. That’s a very specific edge case.

---

<div class="post-metadata">

**Author:** ![momocode-de](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/momocode-de/32/2564_2.png) [@momocode-de](https://www.patreondevelopers.com/u/momocode-de)\
**Post date:** [June 12, 2024, 7:37am UTC](https://www.patreondevelopers.com/t/send-message-to-a-patron-using-an-api/6864/7 "2024-06-12T07:37:41Z")

</div>

In my community, 330 out of 4000 members have such an Apple Relay e-mail. That’s almost 10 percent, I wouldn’t say it’s a very specific edge case. It would be nice if there was a solution for this in the future.
