Update a webhook

Updates an existing webhook for the authenticated customer. Its version does not change. sender_profile applies to a version 1 webhook and is_inheritable to a version 2 one; retry_count and timeout_seconds apply to version 1 only. A version 1 webhook's response returns its sender_profile selection as saved; a version 2 webhook's response leaves sender_profile out.

PUT
/v3/webhooks/{id}

Path Parameters

id*string
Formatuuid

Header Parameters

Idempotency-Key?string

Unique key to ensure idempotent request processing. Must be 1-255 alphanumeric characters, hyphens, or underscores. Responses are cached for 24 hours per key per customer.

Match^[a-zA-Z0-9_-]+$
Lengthlength <= 255
x-profile-id?string

Profile UUID to scope the request to a child profile. Only organization API keys can use this header. The profile must belong to the calling organization.

Formatuuid

Request Body

application/json
  1. body

Base request for mutation operations (POST, PUT, PATCH) with sandbox mode support

sandbox?boolean

Sandbox flag - when true, the operation is simulated without side effects Useful for testing integrations without actual execution

display_name*string
Length0 <= length <= 255
endpoint_url?string
event_types?array<string>
event_filters?|null
sender_profile?|null

The sender profile clones of a version 1 webhook. Omit or pass null to keep them; pass an empty event_types list to delete them. Other changes to this webhook are copied onto its clones. At least one event must remain across both selections after the update. An empty result returns a V3 validation error. The response returns the selection as saved. A version 2 webhook ignores it: set is_inheritable instead.

retry_count?integer
Formatint32
Range1 <= value <= 5
timeout_seconds?integer
Formatint32
Range5 <= value <= 120
is_inheritable?|

Makes this webhook inheritable by the organization's sender profiles (see create), or stops it being inheritable. Omit or pass null to keep it as it is. Only a version 2 webhook can be inheritable, and never an agent's.

Response Body

Webhook updated successfully

application/json
  1. response

Standard API response envelope for all v3 endpoints

success?boolean

Indicates whether the request was successful

data?|null

The response data (null if error)

error?|null

Error details (null if successful)

meta?

Metadata about the request and response

curl -X PUT 'https://api.sent.dm/v3/webhooks/d4f5a6b7-c8d9-4e0f-a1b2-c3d4e5f6a7b8' \  -H 'Idempotency-Key: req_abc123_retry1' \  -H 'Content-Type: application/json' \  -d '{  "display_name": "Updated Order Notifications",  "endpoint_url": "https://example.com/webhooks/orders-v2",  "event_types": [    "contact",    "message",    "templates"  ],  "event_filters": {    "message": [      "delivered",      "failed"    ]  },  "retry_count": 5,  "timeout_seconds": 60,  "sandbox": false}'
Example Response
{  "success": true,  "data": {    "id": "d4f5a6b7-c8d9-4e0f-a1b2-c3d4e5f6a7b8",    "customer_id": "00000000-0000-0000-0000-000000000000",    "display_name": "Updated Order Notifications",    "endpoint_url": "https://example.com/webhooks/orders-v2",    "signing_secret": null,    "is_active": true,    "event_types": [      "contact",      "message",      "templates"    ],    "event_filters": {      "message": [        "delivered",        "failed"      ]    },    "sender_profile": null,    "retry_count": 5,    "timeout_seconds": 60,    "is_inheritable": false,    "agent_id": null,    "webhook_version": 2,    "last_delivery_attempt_at": null,    "last_successful_delivery_at": null,    "consecutive_failures": 0,    "created_at": "2026-01-15T10:30:00+00:00",    "updated_at": "2026-02-05T16:45:00+00:00"  },  "error": null,  "meta": {    "request_id": "req_7X9zKp2jDw",    "timestamp": "2026-11-24T18:42:18.2161865+00:00",    "version": "v3"  }}