查询 Gitee 触发器投递记录
curl --request POST \
--url 'https://api.flashcat.cloud/safari/automation/delivery/list?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"rule_id": "rule_7Qm2Xc9Tb1Vk",
"p": 1,
"limit": 20
}
'import requests
url = "https://api.flashcat.cloud/safari/automation/delivery/list?app_key="
payload = {
"rule_id": "rule_7Qm2Xc9Tb1Vk",
"p": 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({rule_id: 'rule_7Qm2Xc9Tb1Vk', p: 1, limit: 20})
};
fetch('https://api.flashcat.cloud/safari/automation/delivery/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/automation/delivery/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([
'rule_id' => 'rule_7Qm2Xc9Tb1Vk',
'p' => 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/automation/delivery/list?app_key="
payload := strings.NewReader("{\n \"rule_id\": \"rule_7Qm2Xc9Tb1Vk\",\n \"p\": 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/automation/delivery/list?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"rule_id\": \"rule_7Qm2Xc9Tb1Vk\",\n \"p\": 1,\n \"limit\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/safari/automation/delivery/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 \"rule_id\": \"rule_7Qm2Xc9Tb1Vk\",\n \"p\": 1,\n \"limit\": 20\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z3KQ7M2NTFQ5YJ8P9R4",
"data": {
"total": 1,
"deliveries": [
{
"delivery_id": "gitee_8d3f11c2-7b0e-4d6a-9f21-2c5b8e4a7d10",
"account_id": 10001,
"rule_id": "rule_7Qm2Xc9Tb1Vk",
"trigger_id": "trg_6Wm2QaLz",
"hook_id": "hook_4412",
"event_type": "merge_request",
"object_id": "2096",
"action": "merge",
"effective_timestamp": 1716962400000,
"summary_json": "{\"title\":\"fix: bound the retry queue\",\"author\":\"li.na\",\"head_branch\":\"fix/retry-queue\",\"base_branch\":\"main\"}",
"status": "started",
"reason": "",
"run_id": "run_6Hc1Vd8Np3",
"attempts": 1,
"payload_expires_at": 1717567200,
"audit_expires_at": 1719559200,
"created_at": 1716962403,
"updated_at": 1716962411
}
]
}
}自动化
查询 Gitee 触发器投递记录
查询 Gitee 触发器收到的 webhook 投递,以及每次投递启动的运行。
POST
/
safari
/
automation
/
delivery
/
list
查询 Gitee 触发器投递记录
curl --request POST \
--url 'https://api.flashcat.cloud/safari/automation/delivery/list?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"rule_id": "rule_7Qm2Xc9Tb1Vk",
"p": 1,
"limit": 20
}
'import requests
url = "https://api.flashcat.cloud/safari/automation/delivery/list?app_key="
payload = {
"rule_id": "rule_7Qm2Xc9Tb1Vk",
"p": 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({rule_id: 'rule_7Qm2Xc9Tb1Vk', p: 1, limit: 20})
};
fetch('https://api.flashcat.cloud/safari/automation/delivery/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/automation/delivery/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([
'rule_id' => 'rule_7Qm2Xc9Tb1Vk',
'p' => 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/automation/delivery/list?app_key="
payload := strings.NewReader("{\n \"rule_id\": \"rule_7Qm2Xc9Tb1Vk\",\n \"p\": 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/automation/delivery/list?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"rule_id\": \"rule_7Qm2Xc9Tb1Vk\",\n \"p\": 1,\n \"limit\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/safari/automation/delivery/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 \"rule_id\": \"rule_7Qm2Xc9Tb1Vk\",\n \"p\": 1,\n \"limit\": 20\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z3KQ7M2NTFQ5YJ8P9R4",
"data": {
"total": 1,
"deliveries": [
{
"delivery_id": "gitee_8d3f11c2-7b0e-4d6a-9f21-2c5b8e4a7d10",
"account_id": 10001,
"rule_id": "rule_7Qm2Xc9Tb1Vk",
"trigger_id": "trg_6Wm2QaLz",
"hook_id": "hook_4412",
"event_type": "merge_request",
"object_id": "2096",
"action": "merge",
"effective_timestamp": 1716962400000,
"summary_json": "{\"title\":\"fix: bound the retry queue\",\"author\":\"li.na\",\"head_branch\":\"fix/retry-queue\",\"base_branch\":\"main\"}",
"status": "started",
"reason": "",
"run_id": "run_6Hc1Vd8Np3",
"attempts": 1,
"payload_expires_at": 1717567200,
"audit_expires_at": 1719559200,
"created_at": 1716962403,
"updated_at": 1716962411
}
]
}
}限制说明
| 项目 | 说明 |
|---|---|
| 速率限制 | 每个账户 1,000 次/分钟;50 次/秒 |
| 权限要求 | Automation 查看(ai-sre) |
使用说明
- 调用方必须能管理该规则本身(规则创建者,或规则所属团队的成员),否则返回
403。 - 结果按时间倒序。
p从 1 开始,0按 1 处理;limit为0时默认 20。 status是投递自身的结果;未启动运行时reason给出机器可读原因,例如rule_not_found、rule_disabled、self_echo、mcp_unavailable。payload_expires_at与audit_expires_at分别给出载荷与记录的清理时刻。
授权
请求体
application/json
响应
Success
所有 Flashduty 公开 API 共用的标准响应结构。成功时 data 为接口专属载荷且不含 error;失败时 error 存在而 data 缺失。request_id 始终存在,并会同步写入 Flashcat-Request-Id 响应头。
此页面对您有帮助吗?