Ethan Tan
05/16/2024, 10:21 PMVapi Support
05/16/2024, 10:21 PMVapi Support
05/16/2024, 10:21 PMList Calls
API to retrieve the logs and details of the call. This can help understand if there were any errors or issues during the call setup [(2)]() .
3. **Deepgram API Key**: Ensure that the Deepgram API key (if used) is not expired. An expired key can lead to silent calls as mentioned in a similar issue [(1)]() .
4. **Silent Messages**: If you need to send silent messages to control the assistant's behavior during a call, you might need to implement custom handling by running your own custom LLM server [(3)]() .
Here is an example of how to list call details using the Vapi API:
python
import requests
# Your Vapi API Authorization token
auth_token = '<YOUR AUTH TOKEN>'
# Create the header with Authorization token
headers = {
'Authorization': f'Bearer {auth_token}',
'Content-Type': 'application/json',
}
# Make the GET request to Vapi to list the calls
response = requests.get(
'https://api.vapi.ai/call', headers=headers)
# Check if the request was successful and print the response
if response.status_code == 200:
print('Call details retrieved successfully')
print(response.json())
else:
print('Failed to retrieve call details')
print(response.text)
Sahil
05/16/2024, 10:28 PMEthan Tan
05/16/2024, 10:32 PMVapi Support
05/16/2024, 10:32 PM