MP
03/26/2025, 2:51 AMVapi Support Bot
03/26/2025, 2:52 AM/logs
endpoints are indeed deprecated. I can help you with alternatives for pulling log information for specific assistants.
Based on the information I've found, you can use the /analytics
endpoint as an alternative to retrieve data for specific assistants. Here's an example of how you can use it:
curl --location 'https://api.vapi.ai/analytics' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"queries": [
{
"name": "getAnalyticsByAssistantID",
"table": "call",
"timeRange": {
"start": "2024-01-01T00:00:00Z",
"end": "2024-12-31T23:59:59Z",
"step": "year"
},
"operations": [
{
"operation": "sum",
"column": "cost"
}
],
"groupBy": [
"assistantId",
"endedReason"
]
}
]
}'
According to the [information I found](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1331285157088333955), this query might return data for all assistants, so you may need to filter the results on your application side.
When working with assistant logs, it's crucial to use a valid assistantId
. You can find the assistantId
in the call.assistantId
or assistant.parentId
properties in end call reports, as mentioned in the [documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336915389040558160).
You can also access logs through the Vapi Dashboard by navigating to logs > calls on the left navbar and copying the ID under call ID, as noted in the [dashboard documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339467226381684789).Vapi Support Bot
03/26/2025, 2:52 AMMP
03/26/2025, 4:03 AMShubham Bajaj
03/27/2025, 12:22 AMudAIan
04/16/2025, 5:02 PMTurn latency: 1561ms (transcriber: 0ms, endpointing: 200ms, kb: N/A, model: 733ms, voice: 587ms)
I see VAPI dashboard https://docs.vapi.ai/api-reference/logs/get api is used to show this latency information however the endpoint is deprecated now. I'm wondering how the response of new api will vary from the existing APIs response.