API referenceWebhooks

Update a webhook subscription

PUT
/webhooks/{id}

Updates a webhook subscription. Send only the fields to change; events: ["*"] receives every event, those added later included.

Authorization

apiKey
X-API-Key<token>

API key (prefix spk_test_ or spk_live_) or personal access token (prefix pat_)

In: header

Path Parameters

id*string

Subscription ID

Header Parameters

Idempotency-Key*string

Idempotency key that prevents processing a request twice. Use a unique UUID v4 per request.

Lengthlength <= 255

Request Body

application/json

events?array<>

Events the subscription receives, or ["*"] for every event, those added later included; * is never listed beside a name

is_active?boolean

Turns deliveries on or off. true on a paused subscription re-enables it; its skipped deliveries stay skipped until replayed

metadata?

Free-form data kept with the subscription

url?string

New URL; changing it sends a webhook.ping

Response Body

application/json

application/json

curl -X PUT "https://example.com/webhooks/whs_abc123" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{}'
{  "conversation_id": "string",  "created_at": "2019-08-24T14:15:22Z",  "created_by": "string",  "environment": "test",  "events": [    "*"  ],  "failing_since": "2019-08-24T14:15:22Z",  "id": "whs_abc123",  "is_active": true,  "metadata": {    "property1": null,    "property2": null  },  "organization_id": "string",  "paused_at": "2019-08-24T14:15:22Z",  "tenant_id": "string",  "updated_at": "2019-08-24T14:15:22Z",  "url": "string"}