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.

POST
/v3/webhooks

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

Clones 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?integer

Delivery retries. Applies to version 1 only: Svix retries a version 2 webhook on its own schedule.

Formatint32
Range1 <= value <= 5
timeout_seconds?integer

Delivery timeout. Applies to version 1 only.

Formatint32
Range5 <= value <= 120
webhook_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?boolean

Also 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.

Formatuuid

Response Body

Webhook created 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 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}'
Example Response
{  "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"  }}