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.
id*stringuuidIdempotency-Key?stringUnique 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.
^[a-zA-Z0-9_-]+$length <= 255x-profile-id?stringProfile 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.
uuidapplication/json- body
Base request for mutation operations (POST, PUT, PATCH) with sandbox mode support
sandbox?booleanSandbox flag - when true, the operation is simulated without side effects Useful for testing integrations without actual execution
display_name*string0 <= length <= 255endpoint_url?stringevent_types?array<string>event_filters?|nullsender_profile?|nullThe 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?integerint321 <= value <= 5timeout_seconds?integerint325 <= value <= 120is_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.
Webhook updated successfully
application/json- response
Standard API response envelope for all v3 endpoints
success?booleanIndicates whether the request was successful
data?|nullThe response data (null if error)
error?|nullError 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}'{ "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" }}Create a webhook POST
Creates a new webhook endpoint for the authenticated customer. A webhook is version 2 unless the request sets webhook_version to 1: Svix delivers it, signed with the webhook-id, webhook-timestamp and webhook-signature headers, and retries it on its own schedule, so retry_count and timeout_seconds apply to version 1 only. sender_profile applies to version 1 only and is ignored on version 2; is_inheritable applies to version 2 only. A version 1 webhook's response returns its sender_profile selection, with an empty event_types when it is not cloned onto sender profiles; a version 2 webhook's response leaves sender_profile out.
Delete a webhook DELETE
Deletes a webhook for the authenticated customer.