Retry a GitLab trigger's webhook
curl --request POST \
--url 'https://api.flashcat.cloud/safari/automation/scm/hooks/gitlab/retry?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"rule_id": "rule_7Qm2Xc9Tb1Vk",
"trigger_id": "trg_3Kd8ZpLw"
}
'import requests
url = "https://api.flashcat.cloud/safari/automation/scm/hooks/gitlab/retry?app_key="
payload = {
"rule_id": "rule_7Qm2Xc9Tb1Vk",
"trigger_id": "trg_3Kd8ZpLw"
}
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', trigger_id: 'trg_3Kd8ZpLw'})
};
fetch('https://api.flashcat.cloud/safari/automation/scm/hooks/gitlab/retry?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/scm/hooks/gitlab/retry?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',
'trigger_id' => 'trg_3Kd8ZpLw'
]),
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/scm/hooks/gitlab/retry?app_key="
payload := strings.NewReader("{\n \"rule_id\": \"rule_7Qm2Xc9Tb1Vk\",\n \"trigger_id\": \"trg_3Kd8ZpLw\"\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/scm/hooks/gitlab/retry?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"rule_id\": \"rule_7Qm2Xc9Tb1Vk\",\n \"trigger_id\": \"trg_3Kd8ZpLw\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/safari/automation/scm/hooks/gitlab/retry?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 \"trigger_id\": \"trg_3Kd8ZpLw\"\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"hook_status": "active"
}
}Automations
Retry a GitLab trigger's webhook
Re-create the GitLab webhook of one trigger and report the resulting hook status.
POST
/
safari
/
automation
/
scm
/
hooks
/
gitlab
/
retry
Retry a GitLab trigger's webhook
curl --request POST \
--url 'https://api.flashcat.cloud/safari/automation/scm/hooks/gitlab/retry?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"rule_id": "rule_7Qm2Xc9Tb1Vk",
"trigger_id": "trg_3Kd8ZpLw"
}
'import requests
url = "https://api.flashcat.cloud/safari/automation/scm/hooks/gitlab/retry?app_key="
payload = {
"rule_id": "rule_7Qm2Xc9Tb1Vk",
"trigger_id": "trg_3Kd8ZpLw"
}
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', trigger_id: 'trg_3Kd8ZpLw'})
};
fetch('https://api.flashcat.cloud/safari/automation/scm/hooks/gitlab/retry?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/scm/hooks/gitlab/retry?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',
'trigger_id' => 'trg_3Kd8ZpLw'
]),
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/scm/hooks/gitlab/retry?app_key="
payload := strings.NewReader("{\n \"rule_id\": \"rule_7Qm2Xc9Tb1Vk\",\n \"trigger_id\": \"trg_3Kd8ZpLw\"\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/scm/hooks/gitlab/retry?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"rule_id\": \"rule_7Qm2Xc9Tb1Vk\",\n \"trigger_id\": \"trg_3Kd8ZpLw\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/safari/automation/scm/hooks/gitlab/retry?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 \"trigger_id\": \"trg_3Kd8ZpLw\"\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"hook_status": "active"
}
}Restrictions
| Aspect | Value |
|---|---|
| Rate limits | 100 requests/minute; 5 requests/second per account |
| Permissions | Automation Manage (ai-sre) |
Usage
- Use this when a trigger reports
hook_statuserroror its hook was deleted on the GitLab side: the call re-registers the webhook with the trigger’s stored token and secret. - 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. - The operation is audit-logged.
pendingmeans the request reached GitLab but the hook is not confirmed yet;deletedmeans the trigger no longer exists on GitLab, so re-save the trigger instead.
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?