cURL
Authorizations
string
header
required
DashScope API Key,在控制台 API Key 页面 获取。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
查询当前业务空间下的类目列表,支持按类型、名称过滤
curl -X POST "https://{workspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/connector/dash/listCategory" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "UNSTRUCTURED"
}'{
"code": "Success",
"message": "",
"messageUnmodified": false,
"requestId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"data": {
"hasNext": false,
"maxResult": 20,
"totalCount": 2,
"maxId": 100602,
"categoryList": [
{
"categoryId": "cate_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxx",
"categoryName": "cscd",
"type": "UNSTRUCTURED",
"isDefault": false
}
]
},
"status": 200
}DashScope API Key,在控制台 API Key 页面 获取。
响应码,成功时为 Success。
错误或提示信息,成功时为空字符串。
请求唯一标识,排查问题时请提供此 ID。
业务状态码。成功为 200,参数错误等失败场景为 400。注意失败时 HTTP 状态码仍为 200,需根据本字段与 code 判断结果。
curl -X POST "https://{workspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/connector/dash/listCategory" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "UNSTRUCTURED"
}'{
"code": "Success",
"message": "",
"messageUnmodified": false,
"requestId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"data": {
"hasNext": false,
"maxResult": 20,
"totalCount": 2,
"maxId": 100602,
"categoryList": [
{
"categoryId": "cate_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxx",
"categoryName": "cscd",
"type": "UNSTRUCTURED",
"isDefault": false
}
]
},
"status": 200
}