| Trigger | Fires when |
|---|---|
| Webhook | A POST arrives at the workflow's generated URL. The body is available as {{trigger.body}}. |
| Schedule | A cron expression matches. Evaluated in UTC by the backend scheduler. |
| Manual | Someone presses Test run, or the API is called directly. |
A webhook URL carries a secret token. Rotating it issues a new URL and immediately invalidates every previously shared one.
bash
curl -X POST \
"$NUDGE_API/api/v1/hooks/$WORKFLOW_ID/$TOKEN" \
-H "Content-Type: application/json" \
-d '{"email":"lead@example.com","plan":"pro"}'