查询 A2A 智能体列表
curl --request POST \
--url 'https://api.flashcat.cloud/safari/a2a-agent/list?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"offset": 0,
"limit": 20,
"include_account": true
}
'import requests
url = "https://api.flashcat.cloud/safari/a2a-agent/list?app_key="
payload = {
"offset": 0,
"limit": 20,
"include_account": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({offset: 0, limit: 20, include_account: true})
};
fetch('https://api.flashcat.cloud/safari/a2a-agent/list?app_key=', 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://api.flashcat.cloud/safari/a2a-agent/list?app_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'offset' => 0,
'limit' => 20,
'include_account' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flashcat.cloud/safari/a2a-agent/list?app_key="
payload := strings.NewReader("{\n \"offset\": 0,\n \"limit\": 20,\n \"include_account\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flashcat.cloud/safari/a2a-agent/list?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"offset\": 0,\n \"limit\": 20,\n \"include_account\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/safari/a2a-agent/list?app_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"offset\": 0,\n \"limit\": 20,\n \"include_account\": true\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"items": [
{
"agent_id": "a2a_6mWqZ2pK9nLcR3tY8uVb4D",
"account_id": 10023,
"team_id": 0,
"can_edit": true,
"environments": [
"env_8s7Hn2kLpQ3xYbVc4Wd2m"
],
"agent_name": "deploy-bot",
"instructions": "Inspect deployment pipelines and propose rollbacks when a canary fails health checks.",
"card_url": "https://agents.example.com/deploy-bot/card",
"auth_type": "bearer",
"auth_config": {
"token": "sk-a****9f2c"
},
"streaming": true,
"status": "enabled",
"card_resolve_timeout": 0,
"task_timeout": 0,
"auth_mode": "shared",
"created_by": 80011,
"created_at": 1716960000000,
"updated_at": 1717046400000
}
],
"total": 1
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InvalidParameter",
"message": "The specified parameter skill_id is not valid."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "AccessDenied",
"message": "Access Denied."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
}
}A2A 智能体
查询 A2A 智能体列表
分页查询调用者在账户与团队范围内可见的 A2A 智能体。
POST
/
safari
/
a2a-agent
/
list
查询 A2A 智能体列表
curl --request POST \
--url 'https://api.flashcat.cloud/safari/a2a-agent/list?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"offset": 0,
"limit": 20,
"include_account": true
}
'import requests
url = "https://api.flashcat.cloud/safari/a2a-agent/list?app_key="
payload = {
"offset": 0,
"limit": 20,
"include_account": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({offset: 0, limit: 20, include_account: true})
};
fetch('https://api.flashcat.cloud/safari/a2a-agent/list?app_key=', 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://api.flashcat.cloud/safari/a2a-agent/list?app_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'offset' => 0,
'limit' => 20,
'include_account' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flashcat.cloud/safari/a2a-agent/list?app_key="
payload := strings.NewReader("{\n \"offset\": 0,\n \"limit\": 20,\n \"include_account\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flashcat.cloud/safari/a2a-agent/list?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"offset\": 0,\n \"limit\": 20,\n \"include_account\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/safari/a2a-agent/list?app_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"offset\": 0,\n \"limit\": 20,\n \"include_account\": true\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"items": [
{
"agent_id": "a2a_6mWqZ2pK9nLcR3tY8uVb4D",
"account_id": 10023,
"team_id": 0,
"can_edit": true,
"environments": [
"env_8s7Hn2kLpQ3xYbVc4Wd2m"
],
"agent_name": "deploy-bot",
"instructions": "Inspect deployment pipelines and propose rollbacks when a canary fails health checks.",
"card_url": "https://agents.example.com/deploy-bot/card",
"auth_type": "bearer",
"auth_config": {
"token": "sk-a****9f2c"
},
"streaming": true,
"status": "enabled",
"card_resolve_timeout": 0,
"task_timeout": 0,
"auth_mode": "shared",
"created_by": 80011,
"created_at": 1716960000000,
"updated_at": 1717046400000
}
],
"total": 1
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InvalidParameter",
"message": "The specified parameter skill_id is not valid."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "AccessDenied",
"message": "Access Denied."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
}
}限制说明
| 项目 | 说明 |
|---|---|
| 速率限制 | 每个账户 1,000 次/分钟;50 次/秒 |
| 权限要求 | 无 —— 持有有效的 app_key 即可调用 |
使用说明
- 分页使用
offset/limit(而非p/limit);limit小于等于 0 时按 20 处理。结果按创建时间倒序排列。 - 可见范围对所有调用者(含 owner 和管理员)都按真实团队成员关系计算:账户级记录,加上调用者所属团队的记录;
team_ids中不在此范围内的团队 ID 会被忽略。 scope=account只返回账户级记录;scope=team只返回团队记录;all(默认)返回团队记录,并在include_account不为false时一并返回账户级记录。query会在智能体名称、指令、卡片 URL、智能体 ID 和卡片名称中执行不区分大小写的子串搜索。- 每条记录的
can_edit表示调用者能否更新、启用、停用或删除该智能体。
授权
请求体
application/json
查询 A2A 智能体列表的分页、范围与搜索过滤参数。
响应
成功
所有 Flashduty 公开 API 共用的标准响应结构。成功时 data 为接口专属载荷且不含 error;失败时 error 存在而 data 缺失。request_id 始终存在,并会同步写入 Flashcat-Request-Id 响应头。
此页面对您有帮助吗?