# \[Solved\] Can you help me make a POST to Shelly using x-www-form-urlencoded calls?

**URL:** <https://community.thunkable.com/t/solved-can-you-help-me-make-a-post-to-shelly-using-x-www-form-urlencoded-calls/1890678>\
**Category:** Web API's\
**Tags:** webapi\
**Created:** [May 23, 2022, 1:28pm UTC](https://community.thunkable.com/t/solved-can-you-help-me-make-a-post-to-shelly-using-x-www-form-urlencoded-calls/1890678 "2022-05-23T13:28:38Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [May 24, 2022, 7:51pm UTC](https://community.thunkable.com/t/solved-can-you-help-me-make-a-post-to-shelly-using-x-www-form-urlencoded-calls/1890678/21 "2022-05-24T19:51:53Z")

</div>

Hooray

 ![Screenshot_2022-05-24-22-50-14-34_2bbfbfee96a5dfce998f962ebb8b5da3](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/f/5f14174fc9445a0c7d0c637ddb1d27134963fad9.jpeg)

Use all the parameters in the URL  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/0/c0efdd73b7d205915b353e6517fe60fac3ee37b4.png)

---

<div class="post-metadata">

**Author:** ![ferrarofcfei](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ferrarofcfei/32/133499_2.png) [@ferrarofcfei](https://community.thunkable.com/u/ferrarofcfei)\
**Post date:** [May 25, 2022, 7:07am UTC](https://community.thunkable.com/t/solved-can-you-help-me-make-a-post-to-shelly-using-x-www-form-urlencoded-calls/1890678/22 "2022-05-25T07:07:01Z")

</div>

@muneer I would be very happy if it worked, but this was the first test I had done, but it doesn’t work for me. Can you tell me if you did anything in particular? ☹

 ![Cattura](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/b/1b70de35eb18040a3e51175e7c1dde9d12e6de6f.png)  
 ![Cattura4](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/5/2584db46b1a9fc8403e1cbdd9c547f47cc43f874.png)

![Cattura2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/b/7b22e40986275e6dc332cf3f9a68c4a5fcf90202.png)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [May 25, 2022, 8:20am UTC](https://community.thunkable.com/t/solved-can-you-help-me-make-a-post-to-shelly-using-x-www-form-urlencoded-calls/1890678/23 "2022-05-25T08:20:31Z")

</div>

Will send you the details when I’m back home.

---

<div class="post-metadata">

**Author:** ![ferrarofcfei](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ferrarofcfei/32/133499_2.png) [@ferrarofcfei](https://community.thunkable.com/u/ferrarofcfei)\
**Post date:** [May 25, 2022, 8:26am UTC](https://community.thunkable.com/t/solved-can-you-help-me-make-a-post-to-shelly-using-x-www-form-urlencoded-calls/1890678/24 "2022-05-25T08:26:08Z")

</div>

Thanks, I can’t figure it out, I’m still testing but I can’t get it to work, I don’t understand what I’m doing wrong.  
Maybe I can share the project with you to look for the error

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [May 25, 2022, 10:46am UTC](https://community.thunkable.com/t/solved-can-you-help-me-make-a-post-to-shelly-using-x-www-form-urlencoded-calls/1890678/25 "2022-05-25T10:46:56Z")

</div>

This is how the full URL should look like

```auto
https://shelly-25-eu.shelly.cloud/device/relay/control?auth_key=XXXXXX1dWlkA7346C7C02D00A2803F9DA01D2061F3EXXXXXX74E52C07264554975660A35E61A6598134206A2B&id=XXXX9999XXXX&channel=0&turn=on

```

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/d/ddb2b323ec895b34dec4b5a20a6d3fb0efc8f8f0.png)

---

<div class="post-metadata">

**Author:** ![ferrarofcfei](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ferrarofcfei/32/133499_2.png) [@ferrarofcfei](https://community.thunkable.com/u/ferrarofcfei)\
**Post date:** [May 25, 2022, 1:19pm UTC](https://community.thunkable.com/t/solved-can-you-help-me-make-a-post-to-shelly-using-x-www-form-urlencoded-calls/1890678/26 "2022-05-25T13:19:29Z")

</div>

doesn’t work or rather I made a strange discovery.

It works with shared devices that you are not the direct owner of.

So it worked for you with the device I shared with you.

In fact, the response you receive is as follows.

{“isok”:true}

Instead the response from proprietary devices is as follows.

{“isok”:true,“data”:{“device\_id”:“e8dbxxxxb098”}}

So in conclusion the solution that worked for you , does not work with proprietary devices that respond with the following error:

{“isok”:false,“errors”:{“wrong\_channel”:“Could not control this relay channel!”}}

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [May 25, 2022, 3:18pm UTC](https://community.thunkable.com/t/solved-can-you-help-me-make-a-post-to-shelly-using-x-www-form-urlencoded-calls/1890678/27 "2022-05-25T15:18:54Z")

</div>

I sent you a PM with a working solution using your device ID and your authentication key.

Sample output  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/6/e6f9029e2df3c17fbdfb7973900d8322b4861521.png)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [May 25, 2022, 4:27pm UTC](https://community.thunkable.com/t/solved-can-you-help-me-make-a-post-to-shelly-using-x-www-form-urlencoded-calls/1890678/28 "2022-05-25T16:27:23Z")

</div>

The solution is something I have suggested earlier but now I tried it myself and can conform it works.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/5/05d9bfdf29484ddef6e084cc6b1638b75fbf03a3.png)

---

<div class="post-metadata">

**Author:** ![ferrarofcfei](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ferrarofcfei/32/133499_2.png) [@ferrarofcfei](https://community.thunkable.com/u/ferrarofcfei)\
**Post date:** [May 25, 2022, 7:15pm UTC](https://community.thunkable.com/t/solved-can-you-help-me-make-a-post-to-shelly-using-x-www-form-urlencoded-calls/1890678/29 "2022-05-25T19:15:30Z")

</div>

I want to thank @muneer for your patience and the solution about my big problem

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 25, 2022, 11:25pm UTC](https://community.thunkable.com/t/solved-can-you-help-me-make-a-post-to-shelly-using-x-www-form-urlencoded-calls/1890678/30 "2022-05-25T23:25:49Z")

</div>

🙌

API Master Muneer!!!

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [May 26, 2022, 8:19am UTC](https://community.thunkable.com/t/solved-can-you-help-me-make-a-post-to-shelly-using-x-www-form-urlencoded-calls/1890678/31 "2022-05-26T08:19:17Z")

</div>

Thank you for your nice compliment

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [August 24, 2022, 8:19am UTC](https://community.thunkable.com/t/solved-can-you-help-me-make-a-post-to-shelly-using-x-www-form-urlencoded-calls/1890678/32 "2022-08-24T08:19:17Z")

</div>

Closed on August 24, 2022, 8:19am UTC

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

[Previous page](https://community.thunkable.com/t/solved-can-you-help-me-make-a-post-to-shelly-using-x-www-form-urlencoded-calls/1890678.md?page=1)
