列出智能体
curl --request GET \
--url https://revor.ai/api/v2/agentsimport requests
url = "https://revor.ai/api/v2/agents"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://revor.ai/api/v2/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://revor.ai/api/v2/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://revor.ai/api/v2/agents"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://revor.ai/api/v2/agents")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body智能体
列出智能体
分页读取当前用户的智能体摘要。
GET
/
api
/
v2
/
agents
列出智能体
curl --request GET \
--url https://revor.ai/api/v2/agentsimport requests
url = "https://revor.ai/api/v2/agents"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://revor.ai/api/v2/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://revor.ai/api/v2/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://revor.ai/api/v2/agents"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://revor.ai/api/v2/agents")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body分页读取当前用户的智能体摘要,返回智能体列表、总数及分页信息。
接口概览
| 方法 | GET |
| 路径 | /api/v2/agents |
| 权限 | agents:read |
| 限流桶 | read |
| 返回 | 分页列表,含 items、total、page、limit |
查询参数
未知参数返回400。
cURL
curl -X GET "https://revor.ai/api/v2/agents?page=1&limit=20&status=active" \
-H "Authorization: Bearer sk-revor-REPLACE_ME"
响应
200
{
"ok": true,
"request_id": "req_xxx",
"items": [
{
"id": "agent-uuid",
"name": "客户开发助手",
"description": "面向制造业的主动触达智能体",
"status": "active",
"default_mode": "icebreaker",
"generation_contract_version": 2,
"updated_at": "2026-11-13T04:44:50.096+00:00"
}
],
"total": 1,
"page": 1,
"limit": 20
}
摘要返回:
id、name、description、status、default_mode、generation_contract_version、updated_at。错误码
| HTTP | 错误码 | 含义 |
|---|---|---|
400 | agent_input_invalid | 参数错误(如未知参数) |
403 | permission_denied | 缺少 agents:read 权限 |
行为说明
- 资源只限 API Key 所属用户。
- 默认用户 Key 随滚动 preset 获得这些权限;只读 preset 仅获得
agents:read,显式拒绝权限继续生效。

