Rotate a webhook signing secret
curl --request POST \
--url https://api.getdialed.ai/v1/flows/webhooks/{webhook_id}/rotate-secret \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getdialed.ai/v1/flows/webhooks/{webhook_id}/rotate-secret"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getdialed.ai/v1/flows/webhooks/{webhook_id}/rotate-secret', 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.getdialed.ai/v1/flows/webhooks/{webhook_id}/rotate-secret",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getdialed.ai/v1/flows/webhooks/{webhook_id}/rotate-secret"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.getdialed.ai/v1/flows/webhooks/{webhook_id}/rotate-secret")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getdialed.ai/v1/flows/webhooks/{webhook_id}/rotate-secret")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"created_at": "2026-07-09T09:00:00Z",
"definition_id": "def_a1b2c3d4",
"description": "Inbound Stripe payment webhook",
"enabled": true,
"id": "wh_1a2b3c4d5e6f",
"mode": "trigger",
"org_id": "org_e5f6g7h8",
"provider": "standard",
"rate_limit": 1000,
"receive_url": "/flows/webhooks/acme/wh_1a2b3c4d5e6f",
"signing_secret": "whsec_...",
"updated_at": "2026-07-09T09:00:00Z"
}{
"detail": "Authentication required"
}{
"detail": "Admin role required"
}{
"detail": "Webhook not found"
}{
"detail": "Validation error"
}{
"detail": "Rate limit exceeded"
}Webhooks
Rotate a webhook signing secret
Rotates the HMAC signing secret. The previous secret stays valid for a 24-hour overlap window so in-flight requests signed with the old secret still verify — update your sender within 24h. The new signing_secret is returned exactly once. Cross-tenant access returns 404.
POST
/
flows
/
webhooks
/
{webhook_id}
/
rotate-secret
Rotate a webhook signing secret
curl --request POST \
--url https://api.getdialed.ai/v1/flows/webhooks/{webhook_id}/rotate-secret \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getdialed.ai/v1/flows/webhooks/{webhook_id}/rotate-secret"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getdialed.ai/v1/flows/webhooks/{webhook_id}/rotate-secret', 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.getdialed.ai/v1/flows/webhooks/{webhook_id}/rotate-secret",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getdialed.ai/v1/flows/webhooks/{webhook_id}/rotate-secret"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.getdialed.ai/v1/flows/webhooks/{webhook_id}/rotate-secret")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getdialed.ai/v1/flows/webhooks/{webhook_id}/rotate-secret")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"created_at": "2026-07-09T09:00:00Z",
"definition_id": "def_a1b2c3d4",
"description": "Inbound Stripe payment webhook",
"enabled": true,
"id": "wh_1a2b3c4d5e6f",
"mode": "trigger",
"org_id": "org_e5f6g7h8",
"provider": "standard",
"rate_limit": 1000,
"receive_url": "/flows/webhooks/acme/wh_1a2b3c4d5e6f",
"signing_secret": "whsec_...",
"updated_at": "2026-07-09T09:00:00Z"
}{
"detail": "Authentication required"
}{
"detail": "Admin role required"
}{
"detail": "Webhook not found"
}{
"detail": "Validation error"
}{
"detail": "Rate limit exceeded"
}Authorizations
APIKeyHeaderHTTPBearer
Path Parameters
Response
Successful Response
POST response — the ONLY place the signing secret + receive URL appear.
Show-once at create (and on explicit rotate); the read model omits both.