# Response payload in Homey Webhook

**URL:** <https://community.homey.app/t/response-payload-in-homey-webhook/75316>\
**Category:** Questions & Help\
**Created:** [January 19, 2023, 12:55pm UTC](https://community.homey.app/t/response-payload-in-homey-webhook/75316 "2023-01-19T12:55:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThaYoung1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thayoung1/32/70101_2.png) [@ThaYoung1](https://community.homey.app/u/ThaYoung1)\
**Post date:** [January 19, 2023, 12:55pm UTC](https://community.homey.app/t/response-payload-in-homey-webhook/75316/1 "2023-01-19T12:55:44Z")

</div>

Hi all,

I want to create an App to respond to webhook calls orginating from Strava ([https://www.strava.com/](https://www.strava.com/)).

For that to work I have followed the steps described on [https://developers.strava.com/docs/webhooks](https://developers.strava.com/docs/webhooks). I also created a Webhook in Homey for this.

I now want to ‘create a subscription’ on Strava by calling the [https://www.strava.com/api/v3/push\_subscriptions](https://www.strava.com/api/v3/push_subscriptions) API method. This method checks the Homey Webhook which I created by;

- calling it with a GET request to my Homey Webhook and providing a hub.challenge key in the query string
- checking the response (is the HTTP response code 200 AND does it echo the hub.challenge key in the response body as application/json content type)

The Homey Webhook responds with a HTTP 200 OK but does not echo the hub.challenge key. Therefore I get the following response from the Strava subscription API method:

`{ "message": "Bad Request", "errors": [{ "resource": "PushSubscription", "field": "callback url", "code": "not verifiable" }] }`

My question is: how can I echo the hub.challenge key to strava so it will accept my provided Webhook?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [January 19, 2023, 1:03pm UTC](https://community.homey.app/t/response-payload-in-homey-webhook/75316/2 "2023-01-19T13:03:03Z")

</div>

> [@ThaYoung1](#):
>
> My question is: how can I echo the hub.challenge key to strava so it will accept my provided Webhook?

It doesn’t look like Homey’s webhook implementation supports sending data back.

A workaround would be to implement a [public Web API endpoint](https://apps.developer.homey.app/advanced/web-api) for your app. These can be called from external hosts (like the Strava servers) and you have a bit more control over how to handle such requests and what to send back.

---

<div class="post-metadata">

**Author:** ![ThaYoung1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thayoung1/32/70101_2.png) [@ThaYoung1](https://community.homey.app/u/ThaYoung1)\
**Post date:** [January 19, 2023, 1:25pm UTC](https://community.homey.app/t/response-payload-in-homey-webhook/75316/3 "2023-01-19T13:25:44Z")

</div>

Thanks for your suggestion @robertklep. 🙂

I will do some research on using the Web API and share my results here within time.

---

<div class="post-metadata">

**Author:** ![ThaYoung1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thayoung1/32/70101_2.png) [@ThaYoung1](https://community.homey.app/u/ThaYoung1)\
**Post date:** [January 21, 2023, 12:16am UTC](https://community.homey.app/t/response-payload-in-homey-webhook/75316/4 "2023-01-21T00:16:31Z")

</div>

Just spent the evening developing the solution with the public Web API endpoint and I can confirm it works like a charm 🙂

I can send back a response body and with that it works. Thanks for the tip!
