服务端 API 接口文档
文档中心/LG 开放平台/获取硬件渠道列表
获取硬件渠道列表
更新时间:2026/08/18

仅返回已上架渠道。

🔧请求信息

请求 URI

GET https://lg.jimitu.top/api/open/channels

请求头参数

Header必填说明
AuthorizationBearer {API Key},接口鉴权,所有请求均需携带
Content-Type仅 POST/PUT 携带 JSON 请求体时需要,值为 application/json

请求参数

请求示例

curl -X GET "https://lg.jimitu.top/api/open/channels" \
  -H "Authorization: Bearer <your_api_key>"

📥响应信息

响应体示例

{
  "success": true,
  "data": [
    {
      "channel_id": 100,
      "publish_name": "chirpy 初代",
      "channel_type": "official_hardware",
      "channel_type_display": "官方硬件",
      "hardware_type": "AI玩偶",
      "status": "online",
      "publishing_id": 1,
      "template_id": 10,
      "created_at": "...",
      "updated_at": "..."
    }
  ]
}

响应参数

字段类型说明
channel_idinteger渠道 ID,绑定设备时使用
publish_namestring上架名
channel_typestring渠道类型编码
channel_type_displaystring渠道类型中文名
hardware_typestring硬件子类型
statusstring渠道状态,固定为 online
publishing_idinteger关联上架 ID
template_idinteger关联模版 ID
created_atstring创建时间
updated_atstring更新时间

⚠️错误码

错误码

error_codeHTTP说明
CHANNEL_NOT_FOUND404渠道不存在
CHANNEL_OFFLINE400渠道已下架
注意

绑定/查询设备前建议先确认渠道状态:渠道不存在时返回 CHANNEL_NOT_FOUND,渠道已下架时返回 CHANNEL_OFFLINE