查询产物列表
curl --request POST \
--url 'https://api.flashcat.cloud/safari/artifact/gallery/list?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"scope": "all",
"page": 1,
"limit": 20
}
'import requests
url = "https://api.flashcat.cloud/safari/artifact/gallery/list?app_key="
payload = {
"scope": "all",
"page": 1,
"limit": 20
}
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({scope: 'all', page: 1, limit: 20})
};
fetch('https://api.flashcat.cloud/safari/artifact/gallery/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/artifact/gallery/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([
'scope' => 'all',
'page' => 1,
'limit' => 20
]),
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/artifact/gallery/list?app_key="
payload := strings.NewReader("{\n \"scope\": \"all\",\n \"page\": 1,\n \"limit\": 20\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/artifact/gallery/list?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"scope\": \"all\",\n \"page\": 1,\n \"limit\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/safari/artifact/gallery/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 \"scope\": \"all\",\n \"page\": 1,\n \"limit\": 20\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"items": [
{
"artifact_id": "art_VnfrWic8UbB9q3EfYR4Gmg",
"title": "Checkout API latency postmortem",
"team_id": 4012,
"team_name": "SRE",
"person_id": 2476001,
"creator_name": "Alice",
"is_mine": true,
"can_edit": true,
"session_id": "sess_VCbVPZrq9YoyBu8sNCmqUy",
"session_title": "Investigate checkout API latency spike",
"file_id": "pf_SdhEA5fbZJGnHzwrNJMMSB",
"name": "checkout-latency-postmortem.html",
"size": 18996,
"content_type": "text/html",
"created_at": 1785293373899,
"updated_at": 1785747910219,
"pinned_at": 1785750000000,
"share_enabled": true,
"public_url": "https://console.flashcat.cloud/share/artifact/art_VnfrWic8UbB9q3EfYR4Gmg",
"shared_by": 2476001,
"shared_at": 1785747928665,
"share_file_id": "pf_SdhEA5fbZJGnHzwrNJMMSB"
},
{
"artifact_id": "art_CWQzDU2PXSRJvKDhQbuMKu",
"title": "Weekly alert noise report",
"team_id": 4012,
"team_name": "SRE",
"person_id": 2476002,
"creator_name": "Bob",
"is_mine": false,
"can_edit": true,
"session_id": "sess_QXUC9C2PYWP5EE7vETR3UD",
"session_title": "Summarize last week's alert noise",
"file_id": "pf_Jnc4E5YBcWLGzunB4ntP9s",
"name": "alert-noise-weekly.pdf",
"size": 137107,
"content_type": "application/pdf",
"created_at": 1785229432881,
"updated_at": 1785741344822
}
],
"total": 17
}
}产物
查询产物列表
分页查询调用者可见的产物列表,支持按标题搜索。
POST
/
safari
/
artifact
/
gallery
/
list
查询产物列表
curl --request POST \
--url 'https://api.flashcat.cloud/safari/artifact/gallery/list?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"scope": "all",
"page": 1,
"limit": 20
}
'import requests
url = "https://api.flashcat.cloud/safari/artifact/gallery/list?app_key="
payload = {
"scope": "all",
"page": 1,
"limit": 20
}
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({scope: 'all', page: 1, limit: 20})
};
fetch('https://api.flashcat.cloud/safari/artifact/gallery/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/artifact/gallery/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([
'scope' => 'all',
'page' => 1,
'limit' => 20
]),
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/artifact/gallery/list?app_key="
payload := strings.NewReader("{\n \"scope\": \"all\",\n \"page\": 1,\n \"limit\": 20\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/artifact/gallery/list?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"scope\": \"all\",\n \"page\": 1,\n \"limit\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/safari/artifact/gallery/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 \"scope\": \"all\",\n \"page\": 1,\n \"limit\": 20\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"items": [
{
"artifact_id": "art_VnfrWic8UbB9q3EfYR4Gmg",
"title": "Checkout API latency postmortem",
"team_id": 4012,
"team_name": "SRE",
"person_id": 2476001,
"creator_name": "Alice",
"is_mine": true,
"can_edit": true,
"session_id": "sess_VCbVPZrq9YoyBu8sNCmqUy",
"session_title": "Investigate checkout API latency spike",
"file_id": "pf_SdhEA5fbZJGnHzwrNJMMSB",
"name": "checkout-latency-postmortem.html",
"size": 18996,
"content_type": "text/html",
"created_at": 1785293373899,
"updated_at": 1785747910219,
"pinned_at": 1785750000000,
"share_enabled": true,
"public_url": "https://console.flashcat.cloud/share/artifact/art_VnfrWic8UbB9q3EfYR4Gmg",
"shared_by": 2476001,
"shared_at": 1785747928665,
"share_file_id": "pf_SdhEA5fbZJGnHzwrNJMMSB"
},
{
"artifact_id": "art_CWQzDU2PXSRJvKDhQbuMKu",
"title": "Weekly alert noise report",
"team_id": 4012,
"team_name": "SRE",
"person_id": 2476002,
"creator_name": "Bob",
"is_mine": false,
"can_edit": true,
"session_id": "sess_QXUC9C2PYWP5EE7vETR3UD",
"session_title": "Summarize last week's alert noise",
"file_id": "pf_Jnc4E5YBcWLGzunB4ntP9s",
"name": "alert-noise-weekly.pdf",
"size": 137107,
"content_type": "application/pdf",
"created_at": 1785229432881,
"updated_at": 1785741344822
}
],
"total": 17
}
}限制说明
| 项目 | 说明 |
|---|---|
| 速率限制 | 每个账户 1,000 次/分钟;50 次/秒 |
| 权限要求 | 无 —— 持有有效的 app_key 即可调用 |
使用说明
scope可选all(默认:调用者自己的个人产物加上其所属全部团队的产物)、personal(仅调用者自己的个人产物)、team(仅调用者所属团队拥有的产物)。未知取值按all处理。- 可见范围按
app_key所属成员的身份和实际团队成员关系计算,账户所有者和管理员在此也不会多看到产物。要按 ID 打开账户内任意产物,请用/safari/artifact/gallery/get。 - 调用者置顶的产物总排在最前;其余默认按
updated_at倒序,可通过orderby/asc调整。
授权
请求体
application/json
产物库列表的过滤与分页参数。
响应
成功
所有 Flashduty 公开 API 共用的标准响应结构。成功时 data 为接口专属载荷且不含 error;失败时 error 存在而 data 缺失。request_id 始终存在,并会同步写入 Flashcat-Request-Id 响应头。
此页面对您有帮助吗?