# Webhook integration with heroku

**URL:** <https://community.particle.io/t/webhook-integration-with-heroku/57841>\
**Category:** Cloud\
**Created:** [September 25, 2020, 10:41pm UTC](https://community.particle.io/t/webhook-integration-with-heroku/57841 "2020-09-25T22:41:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adnmcq](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@adnmcq](https://community.particle.io/u/adnmcq)\
**Post date:** [September 25, 2020, 10:41pm UTC](https://community.particle.io/t/webhook-integration-with-heroku/57841/1 "2020-09-25T22:41:32Z")

</div>

Hi. We have a django site hosted on on heroku. We made an endpoint

/events/\<device\_id\>

set up a webhook integration called tracking\_event w the following form data

```auto
{
  "event": "{{{PARTICLE_EVENT_NAME}}}",
  "data": "{{{PARTICLE_EVENT_VALUE}}}",
  "coreid": "{{{PARTICLE_DEVICE_ID}}}",
  "published_at": "{{{PARTICLE_PUBLISHED_AT}}}"
}

```

Hitting ‘test integration’ button publishes to our endpoint on heroku. My heroku logs of request.POST look like:

```auto
2020-09-25T21:58:19.955482+00:00 app[web.1]: [25/Sep/2020 21:58:19,955] 
<QueryDict: {
'event': ['tracking_event'], 
'data': ['test-event'], 
'published_at': ['2020-09-25T21:58:19.698Z'], 
'coreid': ['api']}>
2020-09-25T21:58:19.957044+00:00 app[web.1]: 10.45.161.126 - - [25/Sep/2020:21:58:19 +0000] "POST /events/api HTTP/1.1" 200 12 "-" "ParticleBot/1.1 (https://docs.particle.io/webhooks)"

```

I added the code that it says to add to firmware (setup, callback and publish) without changing anything. But I am not getting published events from firmwear to hit that heroku endpoint. Any idea what else needs to be done?

Sorry for noob question

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [September 26, 2020, 6:37am UTC](https://community.particle.io/t/webhook-integration-with-heroku/57841/2 "2020-09-26T06:37:28Z")

</div>

Have you had a look at the webhook stats at the bottom of the page [console.particle.io/integrations/](http://console.particle.io/integrations/)?  
What does it tell you there?  
Can you see the outgoing even that should trigger the webhook in [console.particle.io/logs](http://console.particle.io/logs)?  
Is your webhook actually subscribed to `tracking_event`?  
Can you share the exact code that you copied into your project?  
Have you maybe set a device filter in the webhook?

With only partial info it’s difficult to assess the issue.

---

<div class="post-metadata">

**Author:** ![adnmcq](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@adnmcq](https://community.particle.io/u/adnmcq)\
**Post date:** [September 26, 2020, 3:40pm UTC](https://community.particle.io/t/webhook-integration-with-heroku/57841/3 "2020-09-26T15:40:02Z")

</div>

We got it working. We removed the call to the handler function. Then hit “test” again. I’m not sure which one of those fixed it. But thank you for taking the time to answer.

I can see those, but we were checking heroku logs to see if endpoint was being hit.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/3/2/3291e3c9351789fe8620ae5bcec8d3fec67ff221.png) [@system](https://community.particle.io/u/system)\
**Post date:** [March 28, 2021, 3:40am UTC](https://community.particle.io/t/webhook-integration-with-heroku/57841/4 "2021-03-28T03:40:03Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
