Skip to content

Realtime disruption webhook

POST
/api/webhooks/disruption

Accepts a single disruption trigger from providers that support push (e.g. Tomorrow.io Alerts). Runs processSingleTrigger immediately: inserts event, finds eligible policies, fraud checks, creates claims and payouts. Secured with WEBHOOK_SECRET or CRON_SECRET (Authorization Bearer or X-Webhook-Secret).

object
type
required
string
Allowed values: weather traffic social
subtype
string
Example
extreme_heat
severity
number
default: 7 <= 10
lat
required
number
lng
required
number
radius_km
number
default: 15
raw
object

Processed

object
ok
boolean
eventId
string format: uuid
claimsCreated
integer
payoutsInitiated
integer

Invalid body

Unauthorized

Webhook or Supabase not configured