{
"type": "balances.usage_alert_triggered",
"data": {
"customer_id": "org_123",
"feature_id": "api_calls",
"entity_id": "workspace_abc",
"usage_alert": {
"name": "80% usage warning",
"threshold": 80,
"threshold_type": "usage_percentage_threshold"
}
}
}Balances
Usage Alert Triggered
Fired when a customer crosses a configured usage alert threshold.
WEBHOOK
balances.usage_alert_triggered
{
"type": "balances.usage_alert_triggered",
"data": {
"customer_id": "org_123",
"feature_id": "api_calls",
"entity_id": "workspace_abc",
"usage_alert": {
"name": "80% usage warning",
"threshold": 80,
"threshold_type": "usage_percentage_threshold"
}
}
}Payload Fields
The ID of the customer whose usage alert was triggered.
The feature ID the alert applies to.
The entity ID the alert applies to, if the usage was entity-scoped.
Details of the usage alert that was triggered.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The webhook event type.
Allowed value:
"balances.usage_alert_triggered"Show child attributes
Show child attributes
Example:
{
"customer_id": "org_123",
"feature_id": "api_calls",
"entity_id": "workspace_abc",
"usage_alert": {
"name": "80% usage warning",
"threshold": 80,
"threshold_type": "usage_percentage_threshold"
}
}Response
200
Webhook received successfully.
⌘I