Skip to main content
POST
/
webhooks
/
{webhook_id}
/
rotate-secret
Rotate a webhook signing secret
curl --request POST \
  --url https://api.getdialed.ai/flows/webhooks/{webhook_id}/rotate-secret \
  --header 'X-API-Key: <api-key>'
import requests

url = "https://api.getdialed.ai/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/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/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/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/flows/webhooks/{webhook_id}/rotate-secret")
.header("X-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.getdialed.ai/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": "/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

X-API-Key
string
header
required

Path Parameters

webhook_id
string
required

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.

id
string
required
definition_id
string
required
org_id
string
required
description
string
required
mode
string
required
provider
string
required
input_template
Input Template · object | null
required
dispatch_retry
Dispatch Retry · object | null
required
rate_limit
integer | null
required
enabled
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
signing_secret
string
required
receive_url
string
required