# Control Shelly api through https

**URL:** <https://community.thunkable.com/t/control-shelly-api-through-https/2138988>\
**Category:** Questions about Thunkable X\
**Created:** [November 19, 2022, 12:08pm UTC](https://community.thunkable.com/t/control-shelly-api-through-https/2138988 "2022-11-19T12:08:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moarafa](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@moarafa](https://community.thunkable.com/u/moarafa)\
**Post date:** [November 19, 2022, 12:08pm UTC](https://community.thunkable.com/t/control-shelly-api-through-https/2138988/1 "2022-11-19T12:08:04Z")

</div>

Hi everyone,  
I am trying to access Shelly cloud api through my iPhone’s shortcuts application or URL on safari web browser. My target is to turn on the Shelly device.

I’ve seen a post by @ferrarofcfei that was solved by @muneer .However i was not successful in applying the solution.

> [@\[Solved\] Can you help me make a POST to Shelly using x-www-form-urlencoded calls?](https://community.thunkable.com/t/solved-can-you-help-me-make-a-post-to-shelly-using-x-www-form-urlencoded-calls/1890678/28):
>
> The solution is something I have suggested earlier but now I tried it myself and can conform it works.

This is my trial “failed”  
[https://shelly-48-eu.shelly.cloud/device/relay/control?id=441793a....&auth\_key=MTJhMmFhdWlkB7...&channel=0&turn=on](https://shelly-48-eu.shelly.cloud/device/relay/control?id=441793a....&auth_key=MTJhMmFhdWlkB7...&channel=0&turn=on)

I get this response from Safari browser:  
{“isok”:false,“errors”:{“wrong\_channel”:“Could not control this relay channel!”}}

I would appreciate if i could get some support on this.

---

<div class="post-metadata">

**Author:** ![moarafa](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@moarafa](https://community.thunkable.com/u/moarafa)\
**Post date:** [November 19, 2022, 1:31pm UTC](https://community.thunkable.com/t/control-shelly-api-through-https/2138988/2 "2022-11-19T13:31:44Z")

</div>

I found this Italian user community for Shelly that addressed my needs.  
[https://forum.shellyitalia.it/viewtopic.php?t=10810](https://forum.shellyitalia.it/viewtopic.php?t=10810)

After some translating I was able to apply their method and it worked perfectly through iPhone Shortcuts. Here is a snapshot of the steps:

 ![IMG_8913.PNG](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/f/efa396915c2442dfbc224f2af8b814e94669bf9f.jpeg)

This really made my day. Curtesy to the Italian Shelly User community!

---

<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:** [February 17, 2023, 1:32pm UTC](https://community.thunkable.com/t/control-shelly-api-through-https/2138988/3 "2023-02-17T13:32:02Z")

</div>

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