register_budget_alert
Register a webhook URL to receive notifications when actual recorded spend (from record_usage) crosses a USD threshold within a rolling window. Optionally scope to a specific org_id (omit for total spend across all orgs). Fires at most once per period_days while spend stays over threshold. Returns the alert ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Webhook URL to POST when the alert fires | |
| org_id | No | Organisation to monitor. Omit for total spend across all orgs. | |
| period_days | No | Rolling look-back window for the spend check, in days (default: 30) | |
| threshold_usd | Yes | Spend level in USD that triggers the alert |