获取应用信息
curl --request GET \
--url http://localhost:8000/apps/{app_name}/app-info \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8000/apps/{app_name}/app-info"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8000/apps/{app_name}/app-info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"rootAgentName": "<string>",
"description": "<string>",
"language": "yaml",
"isComputerUse": false,
"agents": {}
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}服务与应用
获取应用信息
实验性接口,返回应用与根智能体信息;根智能体不是 LlmAgent 时返回 400
GET
/
apps
/
{app_name}
/
app-info
获取应用信息
curl --request GET \
--url http://localhost:8000/apps/{app_name}/app-info \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8000/apps/{app_name}/app-info"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8000/apps/{app_name}/app-info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"rootAgentName": "<string>",
"description": "<string>",
"language": "yaml",
"isComputerUse": false,
"agents": {}
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}授权
本地未配置网关时可不提供;云部署使用 Runtime API Key 或部署要求的用户池 JWT,不能使用模型 API Key
路径参数
应用名称,CLI 部署版为 harness_agent
最后修改于 2026年9月19日