Track usage through api
# support
y
hey guys I am building a custom solution where I want to charge my customers on top of their Vapi usage my own fee is there a way to track usage through the api? a webhook that reports on call end with usage of the call would be perfect otherwise, what are possible ways to do this?
s
Just to confirm you want to track the usage assistant basis?
y
yes, as long as I can get which assistant costed it'd be cool if not then I can figure something out regardless
You can do it via this API
just group by assistant.
y
so I'd have to make queries every x time?
an ideal solution would be after every call a webhook gets triggered
is that possible?
s
Yup, that is also possible. You can use the end-of-call-report. We include the cost of that particular call.
y
oh wow that's awesome
where can I find docs
I couldn't find it anywhere
y
this is awesome! thanks a lot man