API reference
Create Webhook Endpoint
POST /webhooks/endpoints · Monitors
POSThttps://api.clawifi.dev/webhooks/endpoints
- Send your key as
Authorization: Bearer $CLAWIFI_API_KEY; see Authentication. - Credits: see Pricing and credits.
Request#
curl -X POST https://api.clawifi.dev/webhooks/endpoints \
-H "Authorization: Bearer $CLAWIFI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://your-app.example/hooks/clawifi","secret":"a-long-random-secret","event_types":["monitor.change.detected"]}'
from clawifi import Clawifi
client = Clawifi() # reads CLAWIFI_API_KEY
result = client.post("/webhooks/endpoints", json={"url":"https://your-app.example/hooks/clawifi","secret":"a-long-random-secret","event_types":["monitor.change.detected"]})
Body
| Field | Type | Default | Required |
|---|---|---|---|
enabled | boolean | true | no |
event_types | array of string | no | |
secret | string | yes | |
url | string | yes |
Response#
200 with a WebhookEndpointResponse object: created_at, enabled, event_types, id, url.
Errors use the shared shape; see Errors. Try public operations without a key in the playground.
Was this page helpful? Tell us · Last updated 2026-10-22