Create Webhook
Webhooks
Create Webhook
Register a new webhook to receive real-time event notifications
POST
Create Webhook
Register a webhook URL to receive
radar and/or signal events as they occur. Shoal will POST a JSON payload to your URL whenever a matching event is detected.
Webhook creation is available only on plans that include webhook access.
Request Body
| 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. |
Request
cURL
Python
JavaScript
Response (201)
Save the
secret from the response — it is only returned once at creation time. You’ll need it to verify webhook signatures. See Webhook Signatures.Errors
| 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 |