Skip to main content

Register a webhook

POST
https://dev.breeze-technologies.de/api/v3/wildfires/webhooks

Register a new webhook to receive real-time notifications for wildfire events.

POST /api/v3/wildfires/webhooks
curl -X POST 'https://dev.breeze-technologies.de/api/v3/wildfires/webhooks' \
-H 'Content-Type: application/json' \
-d '{
"api_token": "<YOUR_API_TOKEN>",
"url": "https://your-domain.com/webhooks/wildfire",
"eventType": "wildfire.event.created",
"secret": "your-secret-key"
}'

Parameters

NameDescriptionTypeData typeRequired
api_tokenThe current user's API tokenquerystringYes
urlHTTPS endpoint where we'll send webhook notificationsbodystringYes
eventTypeType of event to subscribe to (wildfire.event.created or wildfire.event.updated)bodystringYes
secretSecret key used to sign webhook requests (HMAC-SHA256). Auto-generated if not providedbodystringNo

Requirements

  • URL must use HTTPS - We only send webhooks to HTTPS endpoints
  • Keep the secret secure - Use it to validate webhook signatures

Returns

{
"id": "550e8400-e29b-41d4-a716-446655440000",
"message": "Webhook registered"
}