Create a webhook alert
create_alertCreates a rule that is checked every hour after the data refresh. When any matching deployment crosses the threshold, YieldCave POSTs a JSON payload to your HTTPS webhook (Slack, Discord, Zapier, your own server). Fires at most once per 24 hours per rule. universe "rwa" (tokenized treasuries, default) or "stablecoin" (stablecoin pools with at least $10M TVL; omit symbol for all major stablecoins). Returns the alert id; keep it to delete the alert later.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Restrict to one chain | |
| label | No | Free text shown in the payload | |
| metric | Yes | "apy" in percent, "tvl" in USD | |
| symbol | No | One token, e.g. "USDY". Omit for every tokenized treasury | |
| operator | Yes | ||
| universe | No | Default rwa | |
| threshold | Yes | e.g. 4.5 for APY, 500000000 for TVL | |
| webhookUrl | Yes | Where to POST when the alert fires |