Update a webhook

Update a webhook's name, URL, kinds of resources or status. To stop notifications for a while, set status to paused instead of deleting the webhook.

PATCH https://{availability_zone}.betterstackcloud.com/v1/webhooks/{id}
id string required

The ID of the webhook to update.

Authorization string required

Bearer $TOKEN

Content-Type string

application/json

name string

The webhook's name.

url string

The URL we send notifications to. Use an HTTPS URL to protect what the notifications contain. To check that the URL receives notifications, send a test notification.

webhook_types array of strings

The kinds of resources we notify about. Accepts server, snapshot, reserved_ip, network, firewall, ssh_key, placement_group, scheduled_snapshot, load_balancer, certificate, volume, volume_snapshot, scheduled_volume_snapshot, valkey, mysql, postgres, clickhouse, kafka and object_proxy. A notification names its kind in its object field.

status string

Whether we send notifications to the webhook.
Valid values:
active: We send notifications.
paused: We send no notifications until you set it back to active.

200 OK
{
  "id": "example",
  "name": "Example webhook",
  "url": "https://example.com",
  "webhook_types": [
    "server"
  ],
  "status": "active",
  "failed_deliveries": 1,
  "secret": "example",
  "created_at": "2026-07-01T12:00:00.000Z",
  "updated_at": "2026-07-01T12:00:00.000Z",
  "team_id": "t123"
}

Returns the updated webhook.

id string

The webhook's ID, a UUID.

name string

The webhook's name.

url string

The URL we send notifications to.

webhook_types array of strings

The kinds of resources we notify about. Accepts server, snapshot, reserved_ip, network, firewall, ssh_key, placement_group, scheduled_snapshot, load_balancer, certificate, volume, volume_snapshot, scheduled_volume_snapshot, valkey, mysql, postgres, clickhouse, kafka and object_proxy. A notification names its kind in its object field.

status string

Whether we send notifications to the webhook.
Valid values:
active: We send notifications.
paused: We send no notifications until you set it back to active.

failed_deliveries integer

The number of notifications in a row that we couldn't deliver. A delivered notification resets it to 0.

secret string

The secret we sign notifications with. Each notification has an X-Signature header with sha256= followed by the HMAC-SHA256 of the body, keyed with this secret. The secret is created with the webhook, and you can get it at any time.

created_at datetime

When the webhook was created. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

updated_at datetime

When the webhook was last updated. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

team_id string

The ID of the team that owns the webhook. betterstack team list shows it.