List Gitee trigger deliveries
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
}
]
}
}Automations
List Gitee trigger deliveries
List the webhook deliveries a Gitee trigger received, with the run each one started.
POST
/
safari
/
automation
/
delivery
/
list
List Gitee trigger deliveries
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
}
]
}
}Restrictions
| Aspect | Value |
|---|---|
| Rate limits | 1,000 requests/minute; 50 requests/second per account |
| Permissions | Automation Read (ai-sre) |
Usage
- The caller must be able to manage the rule itself — its owner, or a member of the rule’s team — or the call returns
403. - Results are newest first.
pstarts at 1 and0is treated as 1;limitdefaults to 20 when0. statusis the delivery’s own outcome;reasoncarries a machine-readable cause such asrule_not_found,rule_disabled,self_echoormcp_unavailablewhen no run started.payload_expires_atandaudit_expires_atsay when the stored payload and the record itself are purged.
Authorizations
Body
application/json
Response
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.
Was this page helpful?