create_watch_rule
Create standing alert rules that watch a specific aircraft, vessel, callsign, or area and notify selected signal kinds via in-app, Discord, or webhook channels.
Instructions
Create a standing watch rule (POST /api/alerts/rules).
A rule needs a gate: either an identity pin (icao24/mmsi/callsign — follows that one entity globally, no AOI required) or a complete AOI (lat, lon; radius_nm defaults to 50 nm if omitted). kinds filters which signal kinds fire it — jamming/dark_vessel/military_air/military_vessel/incident/quake/ fire/ais_gap/rendezvous/loiter (omit for all). channel is 'inapp'|'discord'|'webhook' ('discord'/'webhook' require sink_url). The route validates and 400/422s on a bad gate, channel, sink_url, or kind — this wrapper does not re-validate, it passes the error through.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | ||
| lon | No | ||
| mmsi | No | ||
| kinds | No | ||
| label | Yes | ||
| icao24 | No | ||
| channel | No | inapp | |
| enabled | No | ||
| callsign | No | ||
| sink_url | No | ||
| radius_nm | No | ||
| min_severity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||