Toggle webhook status

Activates or deactivates a webhook for the authenticated customer.

PATCH
/v3/webhooks/{id}/toggle-status

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

is_active*boolean

Response Body

Webhook status 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

Example Request
curl -X PATCH 'https://api.sent.dm/v3/webhooks/d4f5a6b7-c8d9-4e0f-a1b2-c3d4e5f6a7b8/toggle-status' \  -H 'Idempotency-Key: req_abc123_retry1' \  -H 'Content-Type: application/json' \  -d '{  "is_active": 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": null,    "is_active": false,    "event_types": [      "contact",      "message",      "templates"    ],    "event_filters": null,    "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": "2026-02-01T09:00:00+00:00"  },  "error": null,  "meta": {    "request_id": "req_7X9zKp2jDw",    "timestamp": "2026-12-01T19:21:45.028174+00:00",    "version": "v3"  }}