Assistance with Analytics Query
# support
d
I would like to get the total number of minutes used for a sub-account using an analytics query on a monthly basis. Could you please guide me on how to do this?
v
To get the total number of minutes used for a sub-account (Enterprise only), you can query the
Subscription.minutesUsed
field. Here’s an example of how you might do this using a REST API call:
Copy code
http
GET /api/subscriptions/{subAccountId}
Look for the
minutesUsed
field in the response. This value represents the total minutes used for the current billing period. Note: For monthly tracking, repeat this query at the start of each billing cycle. For more details, see the documentation I have found. Source: - [Changelog November 11, 2024](https://docs.vapi.ai/changelog/2024/11/11)
3 Views