Ham
04/25/2025, 8:23 PMShubham Bajaj
04/25/2025, 8:27 PMtwilio
curl -X PUT \
https://api.vapi.ai/assistant/YOUR_ASSISTANT_ID \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"voicemailDetection": {
"provider": "twilio",
"enabled": true,
"machineDetectionTimeout": 30,
"machineDetectionSpeechThreshold": 2400,
"machineDetectionSpeechEndThreshold": 1000,
"machineDetectionSilenceTimeout": 5000,
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence",
"machine_end_other"
]
}
}'
ref: https://docs.vapi.ai/calls/voicemail-detection#1-using-twilios-voicemail-detectionShubham Bajaj
04/25/2025, 8:27 PMgoogle
curl -X PUT \
https://api.vapi.ai/assistant/YOUR_ASSISTANT_ID \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"voicemailDetection": {
"provider": "google",
"voicemailExpectedDurationSeconds": 25
}
}'Shubham Bajaj
04/25/2025, 8:28 PMopenai
curl -X PUT \
https://api.vapi.ai/assistant/YOUR_ASSISTANT_ID \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"voicemailDetection": {
"provider": "openai",
"voicemailExpectedDurationSeconds": 25
}
}'Ham
04/25/2025, 8:29 PMShubham Bajaj
04/25/2025, 8:30 PMShubham Bajaj
04/25/2025, 8:31 PMHam
04/25/2025, 8:32 PMHam
04/25/2025, 8:33 PMShubham Bajaj
04/25/2025, 8:34 PMHam
04/25/2025, 8:34 PMHam
04/25/2025, 8:35 PMHam
04/25/2025, 8:35 PMHam
04/25/2025, 8:36 PMShubham Bajaj
04/25/2025, 8:48 PMvapi
export interface VapiVoicemailDetection {
/** This is the provider to use for voicemail detection. */
provider: 'vapi';
VoicemailDetectionBackoffPlan;
beepMaxAwaitSeconds?: number;
enableTwilioBeepDetection?: boolean;
}
curl -X PUT \
https://api.vapi.ai/assistant/YOUR_ASSISTANT_ID \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"voicemailDetection": {
"provider": "vapi",
"backoffPlan": {
"startAtSeconds": 5,
"frequencySeconds": 5,
"maxRetries": 6
},
"beepMaxAwaitSeconds": 30,
"enableTwilioBeepDetection": true
}
}'Shubham Bajaj
04/25/2025, 8:49 PMHam
04/25/2025, 9:02 PM{
"message": [
"voicemailDetection.an unknown value was passed to the validate function"
],
"error": "Bad Request",
"statusCode": 400
}Ham
04/25/2025, 9:04 PMHam
04/25/2025, 9:12 PMArjun
04/25/2025, 9:20 PMShubham Bajaj
04/25/2025, 9:59 PMHam
04/25/2025, 10:04 PMHam
04/25/2025, 10:05 PMHam
04/25/2025, 10:06 PMHam
04/25/2025, 10:07 PMHam
04/25/2025, 10:07 PMHam
04/25/2025, 10:07 PM{
"message": [
"voicemailDetection.an unknown value was passed to the validate function"
],
"error": "Bad Request",
"statusCode": 400
}Ham
04/25/2025, 10:07 PMJay
04/25/2025, 11:30 PMHam
04/27/2025, 12:52 AMShubham Bajaj
04/27/2025, 6:15 AMHam
04/27/2025, 6:19 AMHam
04/28/2025, 12:51 AMHam
04/28/2025, 6:39 PMShubham Bajaj
04/29/2025, 2:36 PMHam
04/29/2025, 2:38 PMHam
04/29/2025, 3:08 PMHam
04/29/2025, 3:13 PMJay
04/29/2025, 5:37 PMHam
04/29/2025, 5:57 PMJay
04/29/2025, 7:12 PMJay
04/29/2025, 8:19 PMJay
04/29/2025, 8:23 PMShubham Bajaj
04/30/2025, 7:14 PM