Create a webhook
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.
Idempotency-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?|nullClones this webhook onto every existing and future sender profile, with the same URL and signing secret, receiving these events. Only an organization's webhook can set it, and only a version 1 one (webhook_version: 1): a version 2 webhook ignores it and reaches sender profiles through is_inheritable. A version 1 webhook's responses return the selection.
retry_count?integerDelivery retries. Applies to version 1 only: Svix retries a version 2 webhook on its own schedule.
int321 <= value <= 5timeout_seconds?integerDelivery timeout. Applies to version 1 only.
int325 <= value <= 120webhook_version?|Who delivers the webhook: 2, the default, is delivered by Svix and signed with the webhook-id, webhook-timestamp and webhook-signature headers; 1 is the older delivery, signed with the X-Webhook-* headers, which will be retired.
is_inheritable?booleanAlso delivers every sender profile's events to this webhook, at the same URL and with the same signing secret, and lets each profile see the webhook and read the events about itself. Off by default: the organization's own events only. Only an organization's version 2 webhook can set it.
agent_id?|One of your Sent agents: the webhook then receives only that agent's events, its agent events and the messages it sent or received, and is never inheritable: is_inheritable set with it is refused. Only the account the agent runs on can set it, and only on a version 2 webhook.
uuidWebhook created 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 POST 'https://api.sent.dm/v3/webhooks' \ -H 'Idempotency-Key: req_abc123_retry1' \ -H 'Content-Type: application/json' \ -d '{ "display_name": "Order Notifications", "endpoint_url": "https://example.com/webhooks/orders", "event_types": [ "contact", "message", "templates" ], "event_filters": { "message": [ "delivered", "failed" ], "templates": [ "approved", "rejected" ] }, "retry_count": 3, "timeout_seconds": 30, "is_inheritable": false, "sandbox": false}'{ "success": true, "data": { "id": "d4f5a6b7-c8d9-4e0f-a1b2-c3d4e5f6a7b8", "customer_id": "00000000-0000-0000-0000-000000000000", "display_name": "Order Notifications", "endpoint_url": "https://example.com/webhooks/orders", "signing_secret": "whsec_a1b2c3d4e5f6g7h8i9j0", "is_active": true, "event_types": [ "contact", "message", "templates" ], "event_filters": { "message": [ "delivered", "failed" ] }, "sender_profile": null, "retry_count": 3, "timeout_seconds": 30, "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": null }, "error": null, "meta": { "request_id": "req_7X9zKp2jDw", "timestamp": "2026-11-27T23:31:12.3429454+00:00", "version": "v3" }}Get a webhook GET
Retrieves a single webhook by ID for the authenticated customer. A version 1 webhook includes its sender_profile selection.
Update a webhook PUT
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.