# Webhook for Linktap Water valve

**URL:** <https://community.homey.app/t/webhook-for-linktap-water-valve/43923>\
**Category:** Questions & Help\
**Created:** [March 2, 2021, 1:47pm UTC](https://community.homey.app/t/webhook-for-linktap-water-valve/43923 "2021-03-02T13:47:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Weber](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_weber/32/16401_2.png) [@Daniel\_Weber](https://community.homey.app/u/Daniel_Weber)\
**Post date:** [March 2, 2021, 1:47pm UTC](https://community.homey.app/t/webhook-for-linktap-water-valve/43923/1 "2021-03-02T13:47:25Z")

</div>

Hi,

I just bought a linktap G2 smart water valve which is working fine. Only issue I have is to create a working webhook.

I have to admit that I have zero experience with webhooks.

How to from the vendor:

> **[Wireless Water Timer - LinkTap](https://www.link-tap.com/#!/api-for-developers)**
>
> Wireless water timer controlled via mobile phone/computer anywhere anytime. Featured with fault detection, flow meter, rain skip, real time push notifications, 2 year battery life, 2 times greater range than WiFi, 6 watering modes and 2 minute easy...

What I created:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/a/fa2e6226f98ca67a13ad0ac9f571835a548e1ac0.png)

Code is:

{  
“username”: “Danielweb”,  
“apiKey”: “1b2a8d464e6xxxxxxxxxxxxx”,  
“gatewayId”: “963E28xxxxxxxxxxxxxx”,  
“taplinkerId”: “914D41xxxxxxxxxxxxx”,  
“action”: true,  
“duration”: 2,  
“eco”: true,  
“ecoOn”: 1,  
“ecoOff”: 2  
}

I dont’t even get an error message.

Any idea what is wrong?

thx Daniel

---

<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:** [March 2, 2021, 1:51pm UTC](https://community.homey.app/t/webhook-for-linktap-water-valve/43923/2 "2021-03-02T13:51:33Z")

</div>

The body in your screenshot and in your text are completely different.

Also, the body in the screenshot isn’t valid JSON.

---

<div class="post-metadata">

**Author:** ![Daniel\_Weber](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_weber/32/16401_2.png) [@Daniel\_Weber](https://community.homey.app/u/Daniel_Weber)\
**Post date:** [March 2, 2021, 2:01pm UTC](https://community.homey.app/t/webhook-for-linktap-water-valve/43923/3 "2021-03-02T14:01:47Z")

</div>

sorry you are right the screenshot isn’t matching. I just copied the code and pasted it like it is into the body field

---

<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:** [March 2, 2021, 2:03pm UTC](https://community.homey.app/t/webhook-for-linktap-water-valve/43923/4 "2021-03-02T14:03:23Z")

</div>

Can you show a screenshot of the flow card with that code pasted into the body field?

---

<div class="post-metadata">

**Author:** ![Daniel\_Weber](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_weber/32/16401_2.png) [@Daniel\_Weber](https://community.homey.app/u/Daniel_Weber)\
**Post date:** [March 2, 2021, 2:06pm UTC](https://community.homey.app/t/webhook-for-linktap-water-valve/43923/5 "2021-03-02T14:06:04Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/9/c94ae43ff554c2a449b8f747d7ec0785c59b5bc5.png)

---

<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:** [March 2, 2021, 2:07pm UTC](https://community.homey.app/t/webhook-for-linktap-water-valve/43923/6 "2021-03-02T14:07:49Z")

</div>

Still not valid JSON, you’re using smart quotes (`“…”`) instead of normal quotes (`"…"`). Try this:

```auto
{"username":"Danielweb","apiKey":"1b2a8d464e6xxxxxxxxxxxxx","gatewayId":"963E28xxxxxxxxxxxxxx","taplinkerId":"914D41xxxxxxxxxxxxx","action":true,"duration":2,"eco":true,"ecoOn":1,"ecoOff":2}

```

---

<div class="post-metadata">

**Author:** ![Daniel\_Weber](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daniel_weber/32/16401_2.png) [@Daniel\_Weber](https://community.homey.app/u/Daniel_Weber)\
**Post date:** [March 2, 2021, 2:21pm UTC](https://community.homey.app/t/webhook-for-linktap-water-valve/43923/7 "2021-03-02T14:21:22Z")

</div>

thanks a lot!

It still doesn’t work with the homey internal tool but with the app http requests flow cards it works 🙂
