개발자

모든 스마트 시스템을 위한 오픈 API

개발자 계정을 만들고 API 키와 웹훅을 생성해 몇 분 만에 멀티탭을 연결하세요.

인증

모든 요청에 x-api-key 헤더로 키를 보내세요.

GET/strips내 멀티탭 목록과 콘센트별 상태.
GET/strips/{mac}멀티탭 상세: 콘센트, 부하, 전압, 신호.
POST/strips/{mac}/switch켜기/끄기. 본문: {"port": 1-4 또는 "all", "on": true}

예시: 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
개발자 포털API 가이드 다운로드 (PDF, 아랍어)