المطورين

API مفتوح لأي نظام ذكي

سجّل حساب مطور، أنشئ مفتاح API وWebhooks، واربط المشترك بأي منصة في دقائق.

المصادقة

ابعت المفتاح في الهيدر 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)