codai Triggers API
Event triggers: an inbound webhook source you own (GitHub, Sentry, GCP Cloud Monitoring, a generic signed JSON sender, a form, or a manual fire) that turns each delivery into a normalized event card and runs it through a policy — `notify` (inbox only, the default), `assisted`, `autopilot`, or `smart` (severity, keywords and subject decide). A started event opens a shared session `trigger::` and dispatches a `send` control to your freshest online desktop or Android device; with nobody online it degrades to a notification. Deliveries are idempotent per (trigger, delivery id), repeated dedupe keys append to the open session, resolved events close it, and failed deliveries are retried every 60 s (at most 5 attempts). The owner API needs a `codai_` key and only ever sees your own triggers — a foreign or malformed id is 404. The signing secret is shown exactly once, on create and on rotate; it is stored sealed and never returned again.