Skip to main content
Spend alerts monitor usage-based spend against configured thresholds and notify you by webhook when a threshold is crossed. Unlike wallet and feature-usage alerts, which track balance or raw usage, spend alerts track billed spend: the same invoicing-grade calculation used to generate invoices, including commitments and overage. Spend alerts have three independent scopes:
  • Subscription: total usage-based spend across the whole subscription
  • Subscription line item: spend on a single line item
  • Group: spend summed across every line item whose feature belongs to a given group
All three scopes share the same configuration shape, the same three-level alert model (infowarningcritical), and the same webhook delivery mechanism. Pick a scope based on how granular the budget you’re protecting actually is: a whole subscription, one metered charge, or a set of related meters. Benefits:
  • Budget enforcement: Catch spend overruns before the invoice is generated
  • Granular scope: Monitor an entire subscription, a single line item, or a feature group independently
  • Invoicing-grade accuracy: Thresholds compare against the same commitment- and overage-aware spend calculation used for billing
  • Real-time evaluation: Spend is recalculated and compared against thresholds as usage events arrive, not on a delay

Alert Scopes at a Glance

Alert Levels and Conditions

Every alert configuration supports up to three independent threshold levels:
Spend alerts only support the above condition: an alert fires when spend rises above the threshold. The below condition (used by wallet balance alerts) is rejected for subscription, line item, and group scopes.
Because every threshold uses above, ordering runs from smallest to largest:
A Warning threshold requires a Critical threshold to also be set. You cannot configure Warning without Critical. Info can be set independently of the other two.

Configuration API

All three scopes are configured through the same alert_settings resource: Create request body:
PUT /v1/alerts/setting/:id replaces the stored config wholesale. It does not merge with the existing configuration. Send the complete set of thresholds you want on every update; a threshold left out of the request is cleared, not left unchanged.

Validation

What’s Next