Get Usage Metrics
Analytics
Get Usage Metrics
Retrieve SMS/MMS segment counts and voice call seconds for an organization or user
GET
Get Usage Metrics
Endpoint
Authentication
RequiresX-API-Key header with your API key.
Query Parameters
Organization unique ID to get usage for. Either
organization_id or user_id is required.User unique ID to get usage for. Either
organization_id or user_id is required.Optional. Start date for filtering (ISO 8601 format, e.g.,
2026-02-10T00:00:00Z). If provided, queries usage logs instead of counters (slower but filtered).Optional. End date for filtering (ISO 8601 format, e.g.,
2026-03-12T23:59:59Z). If provided, queries usage logs instead of counters (slower but filtered).Response
Whether the request was successful
Usage metrics object
Example Requests
Example Response (Organization)
Example Response (User)
Error Responses
Notes
- All counters represent all-time totals since account creation
- SMS/MMS counts are in segments (not messages) — a long message may count as multiple segments
- Voice seconds include both regular calls and knowledge base-enhanced calls
kb_secondstracks calls that used knowledge base retrieval (premium feature)- Counters are updated in real-time as usage occurs

