查询产物列表
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": "SK 海力士 2026 Q2 财报深度分析",
"team_id": 2477033058131,
"team_name": "研发团队",
"person_id": 2476444212131,
"creator_name": "yushuangyu",
"is_mine": true,
"can_edit": true,
"session_id": "sess_VCbVPZrq9YoyBu8sNCmqUy",
"session_title": "分析海力士财报并发布报告",
"file_id": "pf_SdhEA5fbZJGnHzwrNJMMSB",
"name": "sk-hynix-q2-2026-report.html",
"size": 18996,
"content_type": "text/html",
"created_at": 1785293373899,
"updated_at": 1785747910219,
"share_enabled": true,
"public_url": "https://console.flashcat.cloud/share/artifact/art_VnfrWic8UbB9q3EfYR4Gmg",
"shared_by": 3790925372131,
"shared_at": 1785747928665,
"share_file_id": "pf_SdhEA5fbZJGnHzwrNJMMSB"
},
{
"artifact_id": "art_CWQzDU2PXSRJvKDhQbuMKu",
"title": "rum_recommendation",
"team_id": 2477033058131,
"team_name": "研发团队",
"person_id": 3790925372131,
"creator_name": "牛伟利",
"is_mine": false,
"can_edit": true,
"session_id": "sess_QXUC9C2PYWP5EE7vETR3UD",
"session_title": "生成 RUM 文档多格式",
"file_id": "pf_Jnc4E5YBcWLGzunB4ntP9s",
"name": "rum_recommendation.pdf",
"size": 137107,
"content_type": "application/pdf",
"created_at": 1785229432881,
"updated_at": 1785741344822
}
],
"total": 17
}
}{
"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": "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."
}
}产物
查询产物列表
分页查询调用者可见的产物列表,支持按标题搜索。
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": "SK 海力士 2026 Q2 财报深度分析",
"team_id": 2477033058131,
"team_name": "研发团队",
"person_id": 2476444212131,
"creator_name": "yushuangyu",
"is_mine": true,
"can_edit": true,
"session_id": "sess_VCbVPZrq9YoyBu8sNCmqUy",
"session_title": "分析海力士财报并发布报告",
"file_id": "pf_SdhEA5fbZJGnHzwrNJMMSB",
"name": "sk-hynix-q2-2026-report.html",
"size": 18996,
"content_type": "text/html",
"created_at": 1785293373899,
"updated_at": 1785747910219,
"share_enabled": true,
"public_url": "https://console.flashcat.cloud/share/artifact/art_VnfrWic8UbB9q3EfYR4Gmg",
"shared_by": 3790925372131,
"shared_at": 1785747928665,
"share_file_id": "pf_SdhEA5fbZJGnHzwrNJMMSB"
},
{
"artifact_id": "art_CWQzDU2PXSRJvKDhQbuMKu",
"title": "rum_recommendation",
"team_id": 2477033058131,
"team_name": "研发团队",
"person_id": 3790925372131,
"creator_name": "牛伟利",
"is_mine": false,
"can_edit": true,
"session_id": "sess_QXUC9C2PYWP5EE7vETR3UD",
"session_title": "生成 RUM 文档多格式",
"file_id": "pf_Jnc4E5YBcWLGzunB4ntP9s",
"name": "rum_recommendation.pdf",
"size": 137107,
"content_type": "application/pdf",
"created_at": 1785229432881,
"updated_at": 1785741344822
}
],
"total": 17
}
}{
"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": "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."
}
}限制说明
| 项目 | 说明 |
|---|---|
| 速率限制 | 每个 app_key 1,000 次/分钟;50 次/秒 |
| 权限要求 | 无 —— 持有有效的 app_key 即可调用 |
使用说明
scope可选all(默认 —— 调用者自己的个人产物 + 其所属全部团队的产物)、personal(仅自己创建的)、team(仅所属团队的团队产物)。team_ids可在可见范围内进一步限定团队 —— 调用者不属于的团队不会有任何返回。- 默认按
updated_at倒序;设置orderby为created_at可更换排序字段,asc: true改为升序。 - 使用
app_key调用时,可见范围按 key 所属成员的身份计算 —— 返回该成员的个人产物及其所在团队的产物。
授权
App key issued from the Flashduty console. Required on every public API call. Keep it secret — it grants the same access as the owning account.
请求体
application/json
产物库列表的过滤与分页参数。
可见范围。all(默认)= 调用者自己的个人产物 + 其所在团队的产物;personal = 仅调用者自己创建的;team = 仅调用者所属团队的团队产物。
可用选项:
all, personal, team 只看指定团队的产物,与调用者可见范围取交集 —— 不属于调用者的团队不会有任何返回。
按产物标题做大小写不敏感的子串匹配。
页码,从 1 开始。
必填范围:
x >= 1每页条数。默认 20,最大 100。
必填范围:
x <= 100排序字段:created_at 或 updated_at。留空按 updated_at 倒序。
可用选项:
created_at, updated_at 为 true 时升序,为 false 时降序。仅在设置了 orderby 时生效。
响应
Success
Standard response envelope used by every Flashduty public API. On success data contains the endpoint-specific payload and error is absent. On failure error is present and data is absent. request_id is always present and is also mirrored in the Flashcat-Request-Id response header.
此页面对您有帮助吗?