Analytics
# support
g
Hello team, i am fetching usage data for february but for some reason only receive usage until Feb 3, when i know for a fact that i have consumed minutes until today ( feb 13) . is there an issue with https://api.vapi.ai/analytics ?
@User any update please ? i need to be able to access the analytics to bill my customers. i just made another call to an assistant , then a post request to the analytics endpoint to no avail. see the response : d":"2025-02-14T00:00:00Z","step":"day","timezone":"UTC"},"groupBy":["assistantId","endedReason"],"operations":[{"operation":"sum","column":"duration","alias":"sumDuration"},{"operation":"avg","column":"cost","alias":"avgCost"}]}]}' [{"name":"usage","timeRange":{"start":"2025-02-13T00:00:00.000Z","end":"2025-02-14T00:00:00.000Z","step":"day","timezone":"UTC"},"result":[]}]%
and here is my query : curl -X POST https://api.vapi.ai/analytics -H "Authorization: Bearer xxx” -H "Content-Type: application/json" -d '{"queries":[{"name":"usage","table":"call","timeRange":{"start":"2025-02-01T00:00:00Z","end":"2025-02-14T00:00:00Z","step":"day","timezone":"UTC"},"groupBy":["assistantId","endedReason"],"operations":[{"operation":"sum","column":"duration","alias":"sumDuration"},{"operation":"avg","column":"cost","alias":"avgCost"}]}]}'
c
Hey, yes the data is currently not in sync properly and we are working on it.
g
ah ok, thanks for confirming
i can see it is working today, great job @User