Reference material for managing subscriber usage meter thresholds and monitoring monthly combined data usage.
Overview
The Usage Meter API allows administrators to:
Set a monthly combined usage trigger threshold (KB) for a subscriber
Monitor when subscribers reach their configured threshold
Trigger webhooks when threshold is exceeded
Reset usage meter trigger state for a subscriber
Usage meters track monthly combined data usage (downloads + uploads in KB) on a per-subscriber basis. When a subscriber's monthly usage reaches or exceeds the configured trigger threshold, a subscriber-usage-meter-triggered webhook is fired once per monthly cycle.
Monthly cycles reset automatically on the first day of each month (based on the subscriber's timezone).
Valid Authentication Token. Please see developers documentation/identity.
X
X-Tenant-ID
header
string
Request Tenant Context.
subscriber_id
url
string
Unique subscriber ID.
X
Response Status Codes
Code
Meaning
200
OK
400
Bad Request
401
Unauthorized / Require Authentication
403
Forbidden / Access Denied
404
Not Found
409
Conflict
429
Too Many Requests / Your Rate Limited
500, 501, 502, 503, 504
Service Unavailable
Request/Response Examples
See usage_meter.api.yaml for complete request/response examples for all endpoints.
How It Works
Setting a Threshold: Use POST to /v1/usage-meter/{subscriber_id} to set monthly_combined_trigger_kb (in kilobytes). When a subscriber's monthly usage reaches this value, the trigger is activated.
To stop receiving usage-meter threshold webhooks, set
monthly_combined_trigger_kb to 0 using POST.
Monthly Cycle: Each month (based on subscriber timezone), the usage counters reset automatically and the trigger flag resets to allow retrieval on first threshold breach.
Webhook Trigger: When monthly_combined_kb >= monthly_combined_trigger_kb, the system fires a subscriber-usage-meter-triggered webhook containing:
- Subscriber details
- monthly_combined_kb: Total usage in KB for the current month
- monthly_month: The current billing month (YYYY-MM)
- monthly_combined_trigger_kb: The configured threshold in KB
Resetting Trigger State: Use DELETE to reset usage-meter trigger
state for the subscriber.