Get usage count
Retrieve aggregated usage counts for a specific time period.Request
Start of the date range (ISO 8601 format)
End of the date range (ISO 8601 format)
Optional: Filter by specific business ID
Optional: Specific metrics to retrieve. Defaults to all metrics.Available metrics:
callMinutes- Total call duration in minutesapiRequests- Number of API requests madettsCharacters- Characters sent to TTS providerssttMinutes- Minutes of STT processingllmTokens- LLM tokens consumedembeddingTokens- Embedding tokens used
Response
Whether the request succeeded
Usage count data
Get usage history
Retrieve detailed usage records with pagination and filtering.Request
Page number (1-indexed, default: 1)
Number of results per page (default: 50, max: 100)
Filter by start date (ISO 8601)
Filter by end date (ISO 8601)
Filter by specific business
Filter by metric type (see available metrics above)
Field to sort by:
timestamp, amount, businessIdSort direction:
asc or descResponse
Whether the request succeeded
Paginated usage history
Use cases
Billing dashboard
Display usage metrics and consumption trends
Cost tracking
Monitor usage to estimate costs and budget
Usage alerts
Set up alerts when usage exceeds thresholds
Business analytics
Analyze usage patterns across businesses
Error codes
| Code | Description |
|---|---|
INVALID_DATE_RANGE | Start date must be before end date |
DATE_RANGE_TOO_LARGE | Date range exceeds maximum allowed (typically 90 days) |
INVALID_METRIC_TYPE | Specified metric type is not supported |
PERMISSION_DENIED | API key lacks required permissions |
Notes
Usage data is updated in near real-time but may have a delay of up to 5 minutes for recent activity.
Related endpoints
- User API - Retrieve user profile information
- Businesses API - Manage business accounts
- Conversations API - Access conversation details that contribute to usage