Jump to content

api cloud shelly 1

Michael Mascoli

Recommended Posts

I'm trying to make a website to control a shelly 1.


I'm sending this API request:

POST /device/relay/control HTTP/1.1

Host: shelly-95-eu.shelly.cloud

User-Agent: OutSystemsPlatform

Content-Type: application/x-www-form-urlencoded


    "id": "XXXXXX4149b0",

    "auth_key": "XXXXXXXXXXXXXXXXA4A201032E89607F8719ABD217B645909EDE4D033273DD506CB2CDCBF9A8183117",

    "channel": 0,

    "turn": "off"



and getting this result:




  "isok": false,

  "errors": {

    "invalid_header": "Unauthorized! Wrong authorization header provided!",

    "invalid_token": "The login information is invalid! Please login again!"




PS: I was able to get the GetDeviceStatus, with no problem.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...