Webhooks API
Manage webhook integrations for Slack, Teams, PagerDuty, and custom HTTP endpoints.
Required scope: webhooks:read or webhooks:write
Endpoints
GET
/api/webhooksList webhooksPOST
/api/webhooksCreate webhookPUT
/api/webhooks/:idUpdate webhookDELETE
/api/webhooks/:idDelete webhookPOST
/api/webhooks/:id/testTest deliveryGET
/api/webhooks/alert-typesAvailable alert typesCreate Webhook
POST
/api/webhooksRequest body:
json
{
"name": "Slack Alerts",
"url": "https://hooks.slack.com/services/...",
"alert_types": ["monitor_down", "monitor_up", "test_failure"],
"cooldown": 300,
"enabled": true
}Test Webhook
POST
/api/webhooks/:id/testSends a test payload to the webhook URL and returns the delivery result.
Alert Types
GET
/api/webhooks/alert-typesReturns the list of alert types that can trigger webhooks.