Budget Alerts
Set monthly spending limits per workspace and get emailed when spend approaches your budget.
Configuration
- Budget limit -- maximum monthly spend in cents (e.g., 5000 = $50.00)
- Alert threshold -- percentage at which to send the first alert (default: 80%)
- Alerts are checked hourly and sent once per billing month
- A second alert is sent if spend exceeds 100% of the limit
API
# Get budget settings
curl https://railpush.com/api/v1/workspaces/<ws-id>/budget \
-H "Authorization: Bearer <token>"
# Set a $50/month budget with 80% alert threshold
curl -X PUT https://railpush.com/api/v1/workspaces/<ws-id>/budget \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"budget_limit_cents": 5000, "budget_alert_threshold": 80}'