Register a new webhook to receive real-time event notifications
radar and/or signal events as they occur. Shoal will POST a JSON payload to your URL whenever a matching event is detected.
| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | HTTPS endpoint to receive events. Must not point to a private/internal address. |
event_types | string[] | Yes | Array of event types to subscribe to: radar, signal, or both. |
secret from the response — it is only returned once at creation time. You’ll need it to verify webhook signatures. See Webhook Signatures.| Status | Error | Cause |
|---|---|---|
| 400 | url is required | Missing URL |
| 400 | URL must use HTTPS | Non-HTTPS URL |
| 400 | URL must not point to a private address | URL resolves to localhost/private IP |
| 400 | event_types must be a non-empty array | Missing or empty event types |
| 400 | event_types must only contain: radar, signal | Invalid event type |
| 400 | Maximum 5 webhooks allowed | Per-account webhook limit reached |