# SendGrid Inbound Parse

**URL:** <https://forum.bubble.io/t/sendgrid-inbound-parse/36455>\
**Category:** APIs\
**Created:** [August 25, 2018, 5:42am UTC](https://forum.bubble.io/t/sendgrid-inbound-parse/36455 "2018-08-25T05:42:20Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![JP29](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@JP29](https://forum.bubble.io/u/JP29)\
**Post date:** [May 25, 2020, 7:54pm UTC](https://forum.bubble.io/t/sendgrid-inbound-parse/36455/23 "2020-05-25T19:54:37Z")

</div>

Hey @fayewatson, I know this thread is a bit old but I’m following the same set up and when I try to Detect Request Data, I get a popup that says “Trigger a request to” with a URL to copy. Did you copy and paste that in another browser? When I do that I’m getting a wrong error message stating that the method should be POST (screenshot below). Is there a way to workaround this?

Also, when I send the test email, how do I know it successfully sent?

Thanks!

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/4/1/4192cb93a1c610fbffc04c1fa7d4290b573be6d5.png)

---

<div class="post-metadata">

**Author:** ![fayewatson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/fayewatson/32/2686_2.png) [@fayewatson](https://forum.bubble.io/u/fayewatson)\
**Post date:** [May 25, 2020, 9:05pm UTC](https://forum.bubble.io/t/sendgrid-inbound-parse/36455/24 "2020-05-25T21:05:52Z")

</div>

Hi @johnny I haven’t set that up specifically before but I believe it would be possible! I remember having some trouble parsing the most recent message in an email thread that contained multiple replies. This may be easier than it used to be now in Zapier. Alternatively, it may be worth looking into Integromat for that purpose (instead of Zapier) since they seem to work well with SendGrid: [https://www.integromat.com/en/integrations/gateway/sendgrid](https://www.integromat.com/en/integrations/gateway/sendgrid). I haven’t tried it before but it may be a bit easier! 🙂

Hi @JP29 I think this is referring to the API Connector; is the API request for the Zapier webhook set to “GET”? If so, changing that to “POST” should fix the error. After setting it to POST, try clicking the ‘Request Data’ button again, and then send a test email. Within a minute, Bubble will recognize the request after the email is sent and let you modify the API workflow request types. That should work but let me know if not! 🙂

---

<div class="post-metadata">

**Author:** ![johnny](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnny/32/203020_2.png) [@johnny](https://forum.bubble.io/u/johnny)\
**Post date:** [May 25, 2020, 9:14pm UTC](https://forum.bubble.io/t/sendgrid-inbound-parse/36455/25 "2020-05-25T21:14:41Z")

</div>

Thank you for the suggestion @fayewatson!

---

<div class="post-metadata">

**Author:** ![JP29](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@JP29](https://forum.bubble.io/u/JP29)\
**Post date:** [May 26, 2020, 12:48am UTC](https://forum.bubble.io/t/sendgrid-inbound-parse/36455/26 "2020-05-26T00:48:55Z")

</div>

Hey @fayewatson, thanks for the response! This is actually for setting up SendGrid, without Zapier. Here is my API endpoint in Bubble and the options I see:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/e/2/e2602f061d558c2e55c3985637184721d6034017.png)

---

<div class="post-metadata">

**Author:** ![JP29](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@JP29](https://forum.bubble.io/u/JP29)\
**Post date:** [May 29, 2020, 4:24pm UTC](https://forum.bubble.io/t/sendgrid-inbound-parse/36455/27 "2020-05-29T16:24:53Z")

</div>

Ok, I figured out the issue. I was following the format of the “Destination URL” set up in Sendgrid in the screenshot posted above (modifying it for my app), but you have to set it to the one specified in the popup in Bubble after you click “Detect Data” which was a different format altogether.

Note: my app is setup using my own domain but in the Development view it uses [bubbleapps.io](http://bubbleapps.io) for some reason. Not sure if I’ll have to change this URL for the live version? Just wanted to pull the parameters using Detect Data for now though.

You can also set this up manually using the parameters in Sendgrid’s documentation if all else fails.

Hope this helps anyone else that might run into this problem as well!

**Bubble URL** :

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/2/1/210271a4748e7b405fcef1270d5e1d43da6f0e6f.png)

**Sendgrid URL** :  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/b/9/b96aa40ccfd2eb634d3666358ac0ffdc79399c9f.png)

---

<div class="post-metadata">

**Author:** ![JP29](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@JP29](https://forum.bubble.io/u/JP29)\
**Post date:** [June 5, 2020, 6:46pm UTC](https://forum.bubble.io/t/sendgrid-inbound-parse/36455/28 "2020-06-05T18:46:34Z")

</div>

Hi @fayewatson, one more follow up : )

For the regex pattern, in the “reply-to” address, were you able to extract the Thread’s unique ID and add it to the new message thread on your app?

I’m using the format [threaduniqueID+useruniqueID@parse.yourdomain.com](mailto:threaduniqueID+useruniqueID@parse.yourdomain.com). and for some reason nothing is extracting when I use the regex pattern /[^+]\*/ (but I verified it works with a Regex Tester). Is there anything else I could be missing?

Also did you ever figure out how to extract only the Message’s text from the email and remove the quoted text from the email thread?

Thanks!  
JP

---

<div class="post-metadata">

**Author:** ![cameron1](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@cameron1](https://forum.bubble.io/u/cameron1)\
**Post date:** [August 13, 2021, 5:43pm UTC](https://forum.bubble.io/t/sendgrid-inbound-parse/36455/30 "2021-08-13T17:43:31Z")

</div>

I have been able to successfully grab the data when I select ‘detect data’ but it doesn’t show up in my DB after any other instance.

Hoping for some help!

---

<div class="post-metadata">

**Author:** ![cameron1](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@cameron1](https://forum.bubble.io/u/cameron1)\
**Post date:** [August 14, 2021, 12:11am UTC](https://forum.bubble.io/t/sendgrid-inbound-parse/36455/31 "2021-08-14T00:11:07Z")

</div>

@JP29 @johnny any suggestions??

---

<div class="post-metadata">

**Author:** ![johnny](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnny/32/203020_2.png) [@johnny](https://forum.bubble.io/u/johnny)\
**Post date:** [August 14, 2021, 1:54am UTC](https://forum.bubble.io/t/sendgrid-inbound-parse/36455/32 "2021-08-14T01:54:52Z")

</div>

Hey @cameron1,

I would help, but I stopped using Sendgrid about a year ago and don’t really remember anymore.

---

<div class="post-metadata">

**Author:** ![cameron1](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@cameron1](https://forum.bubble.io/u/cameron1)\
**Post date:** [August 14, 2021, 2:10am UTC](https://forum.bubble.io/t/sendgrid-inbound-parse/36455/33 "2021-08-14T02:10:59Z")

</div>

No worries! 🙂

---

<div class="post-metadata">

**Author:** ![emmanuelsoi.dev](https://avatars.discourse-cdn.com/v4/letter/e/cc9497/32.png) [@emmanuelsoi.dev](https://forum.bubble.io/u/emmanuelsoi.dev)\
**Post date:** [October 10, 2023, 2:51pm UTC](https://forum.bubble.io/t/sendgrid-inbound-parse/36455/35 "2023-10-10T14:51:42Z")

</div>

> [@emmanuelsoi.dev](#):
>
> lly deleted in 1

I have copied the endpoint from bubble and added it to sendgrid also added my domain but still no response on the bubble side. Could you give me the steps @JP29

[Previous page](https://forum.bubble.io/t/sendgrid-inbound-parse/36455.md?page=1)
