Create webhook
POST
/api/v1/webhooksRegisters a webhook URL for campaign events. Payloads are signed with X-Phish-Signature when a secret is set.
Headers
| Name | Type | Description |
|---|---|---|
X-API-Keyrequired | string | Org API key |
Request body
| Name | Type | Description |
|---|---|---|
name | string | Webhook label |
urlrequired | string | HTTPS endpoint |
secret | string | HMAC secret |
events | string | Event filter or * |
Responses
{ "id": "…", "url": "https://ops.example.com/hooks/phish" }Example
terminal
curl -s -X POST \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
https://app-fish.pandaone.dev/api/v1/webhooks
-d ''{"name":"Ops","url":"https://ops.example.com/hooks/phish","events":"*"}''