RecordFeatureUsage records usage of a feature.
POST/api/v1/billing/subscription/features/:featureCode/usage
Called after successfully using a feature to track consumption. Usage is aggregated per billing period for billing calculations.
Authorization
Typically called by internal services with service-to-service auth. Organization ID extracted from JWT or service context.
Parameters
- feature_code: The feature used
- units: Number of units consumed (e.g., minutes, summaries)
- reference_type: Type of source ('call', 'engagement')
- reference_id: ID of the source entity
Response
Returns updated usage totals and remaining units.
Request
Responses
- 200
- default
A successful response.
An unexpected error response.