# Flic Button HTTP Request Format

**URL:** <https://forum.bondhome.io/t/flic-button-http-request-format/4450>\
**Category:** Integrations\
**Created:** [January 27, 2024, 11:18am UTC](https://forum.bondhome.io/t/flic-button-http-request-format/4450 "2024-01-27T11:18:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andyh747](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Andyh747](https://forum.bondhome.io/u/Andyh747)\
**Post date:** [January 27, 2024, 11:18am UTC](https://forum.bondhome.io/t/flic-button-http-request-format/4450/1 "2024-01-27T11:18:03Z")

</div>

Hello All,

I’ve just setup a new Bond Bridge and have this working perfectly with some Somfy RTS motors. I’m trying to integrate this with Flic for button control and am struggling getting the correct format for the Flic HTTP request. I’ve tested the curl command in Terminal on a MAC and this works perfectly:

```auto
    * curl -H "BOND-Token: BONDID" -X PUT -i http://192.168.30.67/v2/devices/DEVICEID/actions/Close -d {}

```

Here’s a screenshot of the Flic HTTP request screen. Can anyone help with what goes where in this setup?

 ![IMG_0941](https://us1.discourse-cdn.com/flex019/uploads/bond1/original/2X/1/155cdc62460b0a251997d45d7e05c7bb282d26d3.jpeg)

---

<div class="post-metadata">

**Author:** ![sburke781](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/sburke781/32/465_2.png) [@sburke781](https://forum.bondhome.io/u/sburke781)\
**Post date:** [January 27, 2024, 2:06pm UTC](https://forum.bondhome.io/t/flic-button-http-request-format/4450/2 "2024-01-27T14:06:17Z")

</div>

Based on your curl command, looks like you need to include the Bond Token in the header, but you don’t appear to have done that in Flic.

---

<div class="post-metadata">

**Author:** ![Andyh747](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Andyh747](https://forum.bondhome.io/u/Andyh747)\
**Post date:** [January 27, 2024, 2:21pm UTC](https://forum.bondhome.io/t/flic-button-http-request-format/4450/3 "2024-01-27T14:21:43Z")

</div>

Thanks for reply. Yes you’re absolutely correct. After a little playing about it now works. See screenshot below for anyone else needing this on Flic.

 ![IMG_0942](https://us1.discourse-cdn.com/flex019/uploads/bond1/original/2X/9/945e214cc39d3c8e6d0c762f2c994b9e73a25147.jpeg)

---

<div class="post-metadata">

**Author:** ![Andyh747](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Andyh747](https://forum.bondhome.io/u/Andyh747)\
**Post date:** [January 27, 2024, 2:29pm UTC](https://forum.bondhome.io/t/flic-button-http-request-format/4450/4 "2024-01-27T14:29:33Z")

</div>

Just one other query. When requesting info on the devices, the return is as follows:

> ```
> * Info: {"name":"Kitchen Curtains","type":"MS","location":"Kitchen","template":"RMS12","subtype":"CURTAIN","actions":["Close","DecreasePosition","Hold","IncreasePosition","Open","Pair","Preset","SetPosition","Stop","ToggleOpen"]
> 
> ```

All the actions work except “ToggleOpen”. Anyone know what this is supposed to do? I assumed it would toggle from open to close but doesn’t seem to do anything.

---

<div class="post-metadata">

**Author:** ![Andyh747](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Andyh747](https://forum.bondhome.io/u/Andyh747)\
**Post date:** [January 27, 2024, 2:43pm UTC](https://forum.bondhome.io/t/flic-button-http-request-format/4450/5 "2024-01-27T14:43:49Z")

</div>

Ignore above comment 🤦‍♂️ - it does work and toggles from close to open etc.

---

<div class="post-metadata">

**Author:** ![merck](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/merck/32/1238_2.png) [@merck](https://forum.bondhome.io/u/merck)\
**Post date:** [February 22, 2024, 12:23pm UTC](https://forum.bondhome.io/t/flic-button-http-request-format/4450/6 "2024-02-22T12:23:40Z")

</div>

N.B.: The Bond-Token is only used for authentication on the local network. For connection via our servers we use different, longer tokens which are ultimately protected by your password. So, unless you worry about attackers already being on your local net, it is not essential to scrub device ids and tokens in what you post.

---

<div class="post-metadata">

**Author:** ![merck](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.bondhome.io/merck/32/1238_2.png) [@merck](https://forum.bondhome.io/u/merck)\
**Post date:** [February 22, 2024, 12:25pm UTC](https://forum.bondhome.io/t/flic-button-http-request-format/4450/7 "2024-02-22T12:25:15Z")

</div>

> [@Andyh747](#):
>
> ToggleOpen

I’m looking forward to adding `ToggleOpenHold` but there are few shade technologies that support this. (That would allow linking a single Pico or Sidekick key to the shade and be able to get intermediate positions.)
