The alert config endpoints manage the webhook URLs and threshold flags that BurnGuard Cloud uses to send spend notifications. Whenever the proxy syncs usage records viaDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Verifieddanny/BurnGuard/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/usage, the server evaluates the current total spend against the configured monthly budget. If spend crosses the 50%, 80%, or 100% threshold — and the corresponding flag is enabled — BurnGuard fires an HTTP POST to the configured Slack and/or Discord webhook with a formatted alert message.
Alert configuration is stored in the cloud and managed via the dashboard settings page. The proxy itself reads alert configuration from burnguard.yaml for local in-process alerting; the cloud config is the authoritative source for the server-side webhook dispatch described above.
If no alert config exists for your account yet,
GET /v1/alerts/config returns an empty-webhook config with all three threshold flags set to true as a safe default. The first PUT call persists your actual configuration.GET /v1/alerts/config
Returns the current alert configuration for the authenticated user. Auth: Requires session —Authorization: Bearer session_<id>.
Request: No parameters or body.
Response:
Slack incoming webhook URL. Empty string if not configured.
Discord webhook URL. Empty string if not configured.
Whether to fire an alert when spend reaches 50% of the monthly budget.
Whether to fire an alert when spend reaches 80% of the monthly budget.
Whether to fire an alert when spend reaches 100% (or more) of the monthly budget.
Internal numeric ID of this alert config record. Omitted when no config exists yet (the default response is returned as a plain object without an
id).ISO 8601 timestamp of when this config was first created. Omitted in the default response.
ISO 8601 timestamp of the last update. Omitted in the default response.
When no config has been saved yet, the response omits
id, user_id, created_at, and updated_at and returns only the five webhook/threshold fields with empty strings and all thresholds set to true. After the first PUT, the full object including timestamps is returned on subsequent GET calls.PUT /v1/alerts/config
Creates or replaces the alert configuration for the authenticated user. All fields are required in the request body — send the full config object, including any fields you are not changing. Auth: Requires session —Authorization: Bearer session_<id>.
Request body:
Slack incoming webhook URL. Set to an empty string (
"") to disable Slack notifications.Discord webhook URL. Set to an empty string (
"") to disable Discord notifications.Set to
true to receive an alert when cumulative spend reaches 50% of your monthly budget.Set to
true to receive an alert when cumulative spend reaches 80% of your monthly budget.Set to
true to receive an alert when cumulative spend reaches or exceeds 100% of your monthly budget.200 OK — the updated AlertConfig object.
The stored Slack webhook URL.
The stored Discord webhook URL.
Stored 50% threshold flag.
Stored 80% threshold flag.
Stored 100% threshold flag.
Internal numeric ID of the alert config record.
ISO 8601 timestamp of when this config was first created.
ISO 8601 timestamp of the last update.
