切换主题
查询可用列表
该接口用于查询已申请通过或自建线路列表(仅返回开启状态线路)
GEThttps://dashboard.avavox.com/open/api/task/line
请求头
Authorization string
必填
鉴权使用,格式为 Authorization: Bearer <Key>
,key 从系统中获取
响应数据
code int
状态码,200 为成功,其他状态均为失败。
success boolean
是否成功,true
表示成功,false
表示失败。
message string
描述信息
data array
线路列表数据,结构如下:
点击展开字段说明
lineId string
线路 ID。
lineName string
线路名称
category string
线路类型,枚举值。 custom
: 自有线路,platform
: 申请的平台线路
请求示例
shell
curl --location 'https://dashboard.avavox.com/open/api/task/line' \
--header 'Authorization: Bearer $Key' \
--header 'Content-Type: application/json'
响应示例
json
{
"code": 200,
"message": "操作成功",
"success": true,
"data": [
{
"lineId": "xxx",
"lineName": "线路1",
"category": "platform"
}
]
}