Test a webhook

Send a test notification for each kind of resource the webhook covers. Each test notification has event set to test and data set to null. We send the notifications shortly after the response, so check your endpoint to see that they arrived.

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

The ID of the webhook to test.

Authorization string required

Bearer $TOKEN

202 Accepted
{
  "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 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.