Viewing Call History in the Dashboard
Navigate to Call History in the sidebar to see all past calls.
You can filter by date range, agent, status, and contact number.
Accessing Call History via API
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.vaanivoice.ai/api/call-history?page=1&page_size=50"
Fetching a Transcript
import os, requests
response = requests.get(
f"https://api.vaanivoice.ai/api/transcript/{call_id}",
headers={"X-API-Key": os.getenv("VAANI_API_KEY")}
)
print(response.json())
Downloading Audio
import os, requests
response = requests.get(
f"https://api.vaanivoice.ai/api/stream/{call_id}",
headers={"X-API-Key": os.getenv("VAANI_API_KEY")},
stream=True
)
with open("call_audio.wav", "wb") as f:
for chunk in response.iter_content(chunk_size=8192):
f.write(chunk)
Audio files are stored in Azure Blob Storage and streamed on demand.