Skip to main content
PATCH
/
webhooks
/
{webhook_id}
Update a webhook
curl --request PATCH \
  --url https://api.getdialed.ai/flows/webhooks/{webhook_id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "definition_id": "<string>",
  "description": "<string>",
  "input_template": {},
  "dispatch_retry": {},
  "rate_limit": 1,
  "enabled": true
}
'
import requests

url = "https://api.getdialed.ai/flows/webhooks/{webhook_id}"

payload = {
    "definition_id": "<string>",
    "description": "<string>",
    "input_template": {},
    "dispatch_retry": {},
    "rate_limit": 1,
    "enabled": True
}
headers = {
    "X-API-Key": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'PATCH',
  headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    definition_id: '<string>',
    description: '<string>',
    input_template: {},
    dispatch_retry: {},
    rate_limit: 1,
    enabled: true
  })
};

fetch('https://api.getdialed.ai/flows/webhooks/{webhook_id}', 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}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'definition_id' => '<string>',
    'description' => '<string>',
    'input_template' => [
        
    ],
    'dispatch_retry' => [
        
    ],
    'rate_limit' => 1,
    'enabled' => true
  ]),
  CURLOPT_HTTPHEADER => [
    "Content-Type: application/json",
    "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"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.getdialed.ai/flows/webhooks/{webhook_id}"

	payload := strings.NewReader("{\n  \"definition_id\": \"<string>\",\n  \"description\": \"<string>\",\n  \"input_template\": {},\n  \"dispatch_retry\": {},\n  \"rate_limit\": 1,\n  \"enabled\": true\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("X-API-Key", "<api-key>")
	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.patch("https://api.getdialed.ai/flows/webhooks/{webhook_id}")
  .header("X-API-Key", "<api-key>")
  .header("Content-Type", "application/json")
  .body("{\n  \"definition_id\": \"<string>\",\n  \"description\": \"<string>\",\n  \"input_template\": {},\n  \"dispatch_retry\": {},\n  \"rate_limit\": 1,\n  \"enabled\": true\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.getdialed.ai/flows/webhooks/{webhook_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"definition_id\": \"<string>\",\n  \"description\": \"<string>\",\n  \"input_template\": {},\n  \"dispatch_retry\": {},\n  \"rate_limit\": 1,\n  \"enabled\": true\n}"

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",
  "input_template": {
    "amount": "{{ payload.data.object.amount }}"
  },
  "mode": "trigger",
  "org_id": "org_e5f6g7h8",
  "provider": "standard",
  "rate_limit": 1000,
  "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

Body

application/json

PATCH /webhooks/{id} body — partial semantics; mode/provider immutable.

Router uses body.model_dump(exclude_unset=True). mode/provider are intentionally omitted — they are not mutable once a config exists.

description/enabled/definition_id keep their | None typing ONLY so they stay unset-omittable for partial semantics — an explicit JSON null for any of them is rejected with 422 at the router (CR-04 / T-41-35), because the underlying WebhookConfig fields are required non-null and a null $set would corrupt the stored document. input_template/dispatch_retry/ rate_limit are legitimately nullable and remain clearable with null.

definition_id
string | null
description
string | null
Required string length: 1 - 200
input_template
Input Template · object | null
dispatch_retry
Dispatch Retry · object | null
rate_limit
integer | null
Required range: x > 0
enabled
boolean | null

Response

Successful Response

GET response — NEVER carries the signing secret (T-41-05).

Surfaces rate_limit + dispatch_retry so admins can read back the current policy.

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