Get usage count
Retrieve aggregated usage counts for a specific time period.Request
string
required
Start of the date range (ISO 8601 format)
string
required
End of the date range (ISO 8601 format)
number
Optional: Filter by specific business ID
array
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
boolean
Whether the request succeeded
object
Usage count data
Get usage history
Retrieve detailed usage records with pagination and filtering.Request
number
Page number (1-indexed, default: 1)
number
Number of results per page (default: 50, max: 100)
string
Filter by start date (ISO 8601)
string
Filter by end date (ISO 8601)
number
Filter by specific business
string
Filter by metric type (see available metrics above)
string
Field to sort by:
timestamp, amount, businessIdstring
Sort direction:
asc or descResponse
boolean
Whether the request succeeded
object
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
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