Developers
An open API for any smart system
Create a developer account, generate API keys and webhooks, and connect the strip to any platform in minutes.
Authentication
Send your key in the x-api-key header with every request.
GET
/stripsList your strips and the state of each outlet.GET
/strips/{mac}Details for one strip: outlets, load, voltage, signal.POST
/strips/{mac}/switchSwitch on/off. Body: {"port": 1-4 or "all", "on": true}Example: turn on outlet 2
curl -X POST https://<your-domain>/api/public/v1/strips/88D03902C4C4/switch \
-H "x-api-key: kh_xxxxxxxxxxxxxxxx" \
-H "content-type: application/json" \
-d '{"port": 2, "on": true}'
# => {"success": true, "results": [{"port": 2, "ok": true}]}Home Assistant
rest_command:
kahraba_on:
url: "https://<your-domain>/api/public/v1/strips/88D03902C4C4/switch"
method: POST
headers: { x-api-key: !secret kahraba_key }
payload: '{"port": {{ port }}, "on": true}'
content_type: application/json