POST /api/v1/webhooks
Requires Bearer token.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | ✓ | HTTPS endpoint to receive webhook POST requests. | |
events | array | ✓ | Events to subscribe to: score.changed, permit.filed, alert.triggered, monitor.report. | |
secret | string | Signing secret for HMAC-SHA256 payload verification. |
| Field | Type | Description |
|---|---|---|
webhook.id | string | Unique webhook identifier (prefixed wh_). |
webhook.events | array | Subscribed event types. |
webhook.active | boolean | Whether the webhook is currently active. |
GET /api/v1/webhooks
Requires Bearer token.
| Field | Type | Description |
|---|---|---|
webhooks | array | All registered webhook objects. |
webhooks[].delivery_success_rate | float | Success rate of recent deliveries (0-1). |
webhooks[].last_delivery | string | Timestamp of last delivery attempt. |
DELETE /api/v1/webhooks
Requires Bearer token.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | string | ✓ | Webhook ID (prefixed wh_). |
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the webhook was successfully deleted. |