Calls
Create Phone Call
POST
/
call
/
phone
Copy
Ask AI
curl --request POST \
--url https://api.vapi.ai/call/phone \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"customerId": "<string>",
"customer": {
"number": "<string>",
"name": "<string>",
"extension": "<string>"
},
"phoneNumberId": "<string>",
"phoneNumber": {
"twilioPhoneNumber": "<string>",
"twilioAccountSid": "<string>",
"twilioAuthToken": "<string>",
"name": "<string>",
"assistantId": "<string>",
"serverUrl": "<string>",
"serverUrlSecret": "<string>"
},
"metadata": {},
"assistantId": "<string>",
"assistant": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "bg",
"smartFormat": false,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant"
}
],
"tools": [
{
"async": false,
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"type": "transferCall",
"destinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
],
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"server": {
"url": "<string>",
"secret": "<string>"
}
}
],
"toolIds": [
"<string>"
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"provider": "canonical",
"topK": 123,
"fileIds": [
"<string>"
]
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputPreprocessingEnabled": true,
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": false,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"firstMessageMode": "assistant-speaks-first",
"recordingEnabled": true,
"hipaaEnabled": false,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetection": {
"provider": "twilio",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
],
"enabled": true,
"machineDetectionTimeout": 31,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000
},
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"analysisPlan": {
"summaryPrompt": "<string>",
"successEvaluationPrompt": "<string>",
"successEvaluationRubric": "NumericScale",
"structuredDataPrompt": "<string>",
"structuredDataSchema": {
"type": "string",
"items": {},
"properties": {},
"description": "<string>",
"required": [
{}
]
}
}
},
"assistantOverrides": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "bg",
"smartFormat": false,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant"
}
],
"tools": [
{
"async": false,
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"type": "transferCall",
"destinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
],
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"server": {
"url": "<string>",
"secret": "<string>"
}
}
],
"toolIds": [
"<string>"
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"provider": "canonical",
"topK": 123,
"fileIds": [
"<string>"
]
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputPreprocessingEnabled": true,
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": false,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"firstMessageMode": "assistant-speaks-first",
"recordingEnabled": true,
"hipaaEnabled": false,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"variableValues": {},
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetection": {
"provider": "twilio",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
],
"enabled": true,
"machineDetectionTimeout": 31,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000
},
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"analysisPlan": {
"summaryPrompt": "<string>",
"successEvaluationPrompt": "<string>",
"successEvaluationRubric": "NumericScale",
"structuredDataPrompt": "<string>",
"structuredDataSchema": {
"type": "string",
"items": {},
"properties": {},
"description": "<string>",
"required": [
{}
]
}
}
},
"squadId": "<string>",
"squad": {
"members": [
{
"assistantId": "<string>",
"assistant": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "bg",
"smartFormat": false,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant"
}
],
"tools": [
{
"async": false,
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"type": "transferCall",
"destinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
],
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"server": {
"url": "<string>",
"secret": "<string>"
}
}
],
"toolIds": [
"<string>"
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"provider": "canonical",
"topK": 123,
"fileIds": [
"<string>"
]
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputPreprocessingEnabled": true,
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": false,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"firstMessageMode": "assistant-speaks-first",
"recordingEnabled": true,
"hipaaEnabled": false,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetection": {
"provider": "twilio",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
],
"enabled": true,
"machineDetectionTimeout": 31,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000
},
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"analysisPlan": {
"summaryPrompt": "<string>",
"successEvaluationPrompt": "<string>",
"successEvaluationRubric": "NumericScale",
"structuredDataPrompt": "<string>",
"structuredDataSchema": {
"type": "string",
"items": {},
"properties": {},
"description": "<string>",
"required": [
{}
]
}
}
},
"assistantOverrides": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "bg",
"smartFormat": false,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant"
}
],
"tools": [
{
"async": false,
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"type": "transferCall",
"destinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
],
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"server": {
"url": "<string>",
"secret": "<string>"
}
}
],
"toolIds": [
"<string>"
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"provider": "canonical",
"topK": 123,
"fileIds": [
"<string>"
]
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputPreprocessingEnabled": true,
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": false,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"firstMessageMode": "assistant-speaks-first",
"recordingEnabled": true,
"hipaaEnabled": false,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"variableValues": {},
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetection": {
"provider": "twilio",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
],
"enabled": true,
"machineDetectionTimeout": 31,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000
},
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"analysisPlan": {
"summaryPrompt": "<string>",
"successEvaluationPrompt": "<string>",
"successEvaluationRubric": "NumericScale",
"structuredDataPrompt": "<string>",
"structuredDataSchema": {
"type": "string",
"items": {},
"properties": {},
"description": "<string>",
"required": [
{}
]
}
}
},
"assistantDestinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
]
}
]
}
}'
Copy
Ask AI
{
"type": "inboundPhoneCall",
"phoneCallProvider": "twilio",
"phoneCallTransport": "sip",
"status": "queued",
"endedReason": "assistant-error",
"id": "<string>",
"orgId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"cost": 123,
"costBreakdown": {
"transport": 123,
"stt": 123,
"llm": 123,
"tts": 123,
"vapi": 123,
"total": 123,
"llmPromptTokens": 123,
"llmCompletionTokens": 123,
"ttsCharacters": 123,
"analysisCostBreakdown": {
"summary": 123,
"summaryPromptTokens": 123,
"summaryCompletionTokens": 123,
"structuredData": 123,
"structuredDataPromptTokens": 123,
"structuredDataCompletionTokens": 123,
"successEvaluation": 123,
"successEvaluationPromptTokens": 123,
"successEvaluationCompletionTokens": 123
}
},
"transcript": "<string>",
"recordingUrl": "<string>",
"stereoRecordingUrl": "<string>",
"analysis": {
"summary": "<string>",
"structuredData": "<string>",
"successEvaluation": "<string>"
},
"messages": [
{}
],
"phoneCallProviderId": "<string>",
"phoneCallProviderBypassEnabled": true,
"phoneCallProviderDetails": {
"statusCallbackEvent": "initiated",
"machineDetection": "Enable",
"to": "<string>",
"from": "<string>",
"twiml": "<string>",
"statusCallback": "<string>",
"machineDetectionTimeout": 123,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000,
"asyncAmd": "<string>",
"asyncAmdStatusCallback": "<string>",
"record": true
},
"webCallUrl": "<string>",
"webCallSipUri": "<string>",
"forwardedPhoneNumber": "<string>",
"assistantId": "<string>",
"assistant": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "bg",
"smartFormat": false,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant"
}
],
"tools": [
{
"async": false,
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"type": "transferCall",
"destinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
],
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"server": {
"url": "<string>",
"secret": "<string>"
}
}
],
"toolIds": [
"<string>"
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"provider": "canonical",
"topK": 123,
"fileIds": [
"<string>"
]
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputPreprocessingEnabled": true,
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": false,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"firstMessageMode": "assistant-speaks-first",
"recordingEnabled": true,
"hipaaEnabled": false,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetection": {
"provider": "twilio",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
],
"enabled": true,
"machineDetectionTimeout": 31,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000
},
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"analysisPlan": {
"summaryPrompt": "<string>",
"successEvaluationPrompt": "<string>",
"successEvaluationRubric": "NumericScale",
"structuredDataPrompt": "<string>",
"structuredDataSchema": {
"type": "string",
"items": {},
"properties": {},
"description": "<string>",
"required": [
{}
]
}
}
},
"assistantOverrides": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "bg",
"smartFormat": false,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant"
}
],
"tools": [
{
"async": false,
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"type": "transferCall",
"destinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
],
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"server": {
"url": "<string>",
"secret": "<string>"
}
}
],
"toolIds": [
"<string>"
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"provider": "canonical",
"topK": 123,
"fileIds": [
"<string>"
]
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputPreprocessingEnabled": true,
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": false,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"firstMessageMode": "assistant-speaks-first",
"recordingEnabled": true,
"hipaaEnabled": false,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"variableValues": {},
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetection": {
"provider": "twilio",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
],
"enabled": true,
"machineDetectionTimeout": 31,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000
},
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"analysisPlan": {
"summaryPrompt": "<string>",
"successEvaluationPrompt": "<string>",
"successEvaluationRubric": "NumericScale",
"structuredDataPrompt": "<string>",
"structuredDataSchema": {
"type": "string",
"items": {},
"properties": {},
"description": "<string>",
"required": [
{}
]
}
}
},
"squadId": "<string>",
"squad": {
"members": [
{
"assistantId": "<string>",
"assistant": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "bg",
"smartFormat": false,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant"
}
],
"tools": [
{
"async": false,
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"type": "transferCall",
"destinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
],
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"server": {
"url": "<string>",
"secret": "<string>"
}
}
],
"toolIds": [
"<string>"
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"provider": "canonical",
"topK": 123,
"fileIds": [
"<string>"
]
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputPreprocessingEnabled": true,
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": false,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"firstMessageMode": "assistant-speaks-first",
"recordingEnabled": true,
"hipaaEnabled": false,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetection": {
"provider": "twilio",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
],
"enabled": true,
"machineDetectionTimeout": 31,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000
},
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"analysisPlan": {
"summaryPrompt": "<string>",
"successEvaluationPrompt": "<string>",
"successEvaluationRubric": "NumericScale",
"structuredDataPrompt": "<string>",
"structuredDataSchema": {
"type": "string",
"items": {},
"properties": {},
"description": "<string>",
"required": [
{}
]
}
}
},
"assistantOverrides": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "bg",
"smartFormat": false,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant"
}
],
"tools": [
{
"async": false,
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"type": "transferCall",
"destinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
],
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"server": {
"url": "<string>",
"secret": "<string>"
}
}
],
"toolIds": [
"<string>"
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"provider": "canonical",
"topK": 123,
"fileIds": [
"<string>"
]
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputPreprocessingEnabled": true,
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": false,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"firstMessageMode": "assistant-speaks-first",
"recordingEnabled": true,
"hipaaEnabled": false,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"variableValues": {},
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetection": {
"provider": "twilio",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
],
"enabled": true,
"machineDetectionTimeout": 31,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000
},
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"analysisPlan": {
"summaryPrompt": "<string>",
"successEvaluationPrompt": "<string>",
"successEvaluationRubric": "NumericScale",
"structuredDataPrompt": "<string>",
"structuredDataSchema": {
"type": "string",
"items": {},
"properties": {},
"description": "<string>",
"required": [
{}
]
}
}
},
"assistantDestinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
]
}
]
},
"customerId": "<string>",
"customer": {
"number": "<string>",
"name": "<string>",
"extension": "<string>"
},
"phoneNumberId": "<string>",
"phoneNumber": {
"twilioPhoneNumber": "<string>",
"twilioAccountSid": "<string>",
"twilioAuthToken": "<string>",
"name": "<string>",
"assistantId": "<string>",
"serverUrl": "<string>",
"serverUrlSecret": "<string>"
},
"metadata": {}
}
Body
application/json
Response
201 - application/json
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://api.vapi.ai/call/phone \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"customerId": "<string>",
"customer": {
"number": "<string>",
"name": "<string>",
"extension": "<string>"
},
"phoneNumberId": "<string>",
"phoneNumber": {
"twilioPhoneNumber": "<string>",
"twilioAccountSid": "<string>",
"twilioAuthToken": "<string>",
"name": "<string>",
"assistantId": "<string>",
"serverUrl": "<string>",
"serverUrlSecret": "<string>"
},
"metadata": {},
"assistantId": "<string>",
"assistant": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "bg",
"smartFormat": false,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant"
}
],
"tools": [
{
"async": false,
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"type": "transferCall",
"destinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
],
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"server": {
"url": "<string>",
"secret": "<string>"
}
}
],
"toolIds": [
"<string>"
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"provider": "canonical",
"topK": 123,
"fileIds": [
"<string>"
]
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputPreprocessingEnabled": true,
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": false,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"firstMessageMode": "assistant-speaks-first",
"recordingEnabled": true,
"hipaaEnabled": false,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetection": {
"provider": "twilio",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
],
"enabled": true,
"machineDetectionTimeout": 31,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000
},
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"analysisPlan": {
"summaryPrompt": "<string>",
"successEvaluationPrompt": "<string>",
"successEvaluationRubric": "NumericScale",
"structuredDataPrompt": "<string>",
"structuredDataSchema": {
"type": "string",
"items": {},
"properties": {},
"description": "<string>",
"required": [
{}
]
}
}
},
"assistantOverrides": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "bg",
"smartFormat": false,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant"
}
],
"tools": [
{
"async": false,
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"type": "transferCall",
"destinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
],
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"server": {
"url": "<string>",
"secret": "<string>"
}
}
],
"toolIds": [
"<string>"
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"provider": "canonical",
"topK": 123,
"fileIds": [
"<string>"
]
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputPreprocessingEnabled": true,
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": false,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"firstMessageMode": "assistant-speaks-first",
"recordingEnabled": true,
"hipaaEnabled": false,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"variableValues": {},
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetection": {
"provider": "twilio",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
],
"enabled": true,
"machineDetectionTimeout": 31,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000
},
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"analysisPlan": {
"summaryPrompt": "<string>",
"successEvaluationPrompt": "<string>",
"successEvaluationRubric": "NumericScale",
"structuredDataPrompt": "<string>",
"structuredDataSchema": {
"type": "string",
"items": {},
"properties": {},
"description": "<string>",
"required": [
{}
]
}
}
},
"squadId": "<string>",
"squad": {
"members": [
{
"assistantId": "<string>",
"assistant": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "bg",
"smartFormat": false,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant"
}
],
"tools": [
{
"async": false,
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"type": "transferCall",
"destinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
],
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"server": {
"url": "<string>",
"secret": "<string>"
}
}
],
"toolIds": [
"<string>"
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"provider": "canonical",
"topK": 123,
"fileIds": [
"<string>"
]
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputPreprocessingEnabled": true,
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": false,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"firstMessageMode": "assistant-speaks-first",
"recordingEnabled": true,
"hipaaEnabled": false,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetection": {
"provider": "twilio",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
],
"enabled": true,
"machineDetectionTimeout": 31,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000
},
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"analysisPlan": {
"summaryPrompt": "<string>",
"successEvaluationPrompt": "<string>",
"successEvaluationRubric": "NumericScale",
"structuredDataPrompt": "<string>",
"structuredDataSchema": {
"type": "string",
"items": {},
"properties": {},
"description": "<string>",
"required": [
{}
]
}
}
},
"assistantOverrides": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "bg",
"smartFormat": false,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant"
}
],
"tools": [
{
"async": false,
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"type": "transferCall",
"destinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
],
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"server": {
"url": "<string>",
"secret": "<string>"
}
}
],
"toolIds": [
"<string>"
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"provider": "canonical",
"topK": 123,
"fileIds": [
"<string>"
]
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputPreprocessingEnabled": true,
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": false,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"firstMessageMode": "assistant-speaks-first",
"recordingEnabled": true,
"hipaaEnabled": false,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"variableValues": {},
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetection": {
"provider": "twilio",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
],
"enabled": true,
"machineDetectionTimeout": 31,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000
},
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"analysisPlan": {
"summaryPrompt": "<string>",
"successEvaluationPrompt": "<string>",
"successEvaluationRubric": "NumericScale",
"structuredDataPrompt": "<string>",
"structuredDataSchema": {
"type": "string",
"items": {},
"properties": {},
"description": "<string>",
"required": [
{}
]
}
}
},
"assistantDestinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
]
}
]
}
}'
Copy
Ask AI
{
"type": "inboundPhoneCall",
"phoneCallProvider": "twilio",
"phoneCallTransport": "sip",
"status": "queued",
"endedReason": "assistant-error",
"id": "<string>",
"orgId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"cost": 123,
"costBreakdown": {
"transport": 123,
"stt": 123,
"llm": 123,
"tts": 123,
"vapi": 123,
"total": 123,
"llmPromptTokens": 123,
"llmCompletionTokens": 123,
"ttsCharacters": 123,
"analysisCostBreakdown": {
"summary": 123,
"summaryPromptTokens": 123,
"summaryCompletionTokens": 123,
"structuredData": 123,
"structuredDataPromptTokens": 123,
"structuredDataCompletionTokens": 123,
"successEvaluation": 123,
"successEvaluationPromptTokens": 123,
"successEvaluationCompletionTokens": 123
}
},
"transcript": "<string>",
"recordingUrl": "<string>",
"stereoRecordingUrl": "<string>",
"analysis": {
"summary": "<string>",
"structuredData": "<string>",
"successEvaluation": "<string>"
},
"messages": [
{}
],
"phoneCallProviderId": "<string>",
"phoneCallProviderBypassEnabled": true,
"phoneCallProviderDetails": {
"statusCallbackEvent": "initiated",
"machineDetection": "Enable",
"to": "<string>",
"from": "<string>",
"twiml": "<string>",
"statusCallback": "<string>",
"machineDetectionTimeout": 123,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000,
"asyncAmd": "<string>",
"asyncAmdStatusCallback": "<string>",
"record": true
},
"webCallUrl": "<string>",
"webCallSipUri": "<string>",
"forwardedPhoneNumber": "<string>",
"assistantId": "<string>",
"assistant": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "bg",
"smartFormat": false,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant"
}
],
"tools": [
{
"async": false,
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"type": "transferCall",
"destinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
],
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"server": {
"url": "<string>",
"secret": "<string>"
}
}
],
"toolIds": [
"<string>"
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"provider": "canonical",
"topK": 123,
"fileIds": [
"<string>"
]
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputPreprocessingEnabled": true,
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": false,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"firstMessageMode": "assistant-speaks-first",
"recordingEnabled": true,
"hipaaEnabled": false,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetection": {
"provider": "twilio",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
],
"enabled": true,
"machineDetectionTimeout": 31,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000
},
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"analysisPlan": {
"summaryPrompt": "<string>",
"successEvaluationPrompt": "<string>",
"successEvaluationRubric": "NumericScale",
"structuredDataPrompt": "<string>",
"structuredDataSchema": {
"type": "string",
"items": {},
"properties": {},
"description": "<string>",
"required": [
{}
]
}
}
},
"assistantOverrides": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "bg",
"smartFormat": false,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant"
}
],
"tools": [
{
"async": false,
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"type": "transferCall",
"destinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
],
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"server": {
"url": "<string>",
"secret": "<string>"
}
}
],
"toolIds": [
"<string>"
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"provider": "canonical",
"topK": 123,
"fileIds": [
"<string>"
]
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputPreprocessingEnabled": true,
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": false,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"firstMessageMode": "assistant-speaks-first",
"recordingEnabled": true,
"hipaaEnabled": false,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"variableValues": {},
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetection": {
"provider": "twilio",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
],
"enabled": true,
"machineDetectionTimeout": 31,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000
},
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"analysisPlan": {
"summaryPrompt": "<string>",
"successEvaluationPrompt": "<string>",
"successEvaluationRubric": "NumericScale",
"structuredDataPrompt": "<string>",
"structuredDataSchema": {
"type": "string",
"items": {},
"properties": {},
"description": "<string>",
"required": [
{}
]
}
}
},
"squadId": "<string>",
"squad": {
"members": [
{
"assistantId": "<string>",
"assistant": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "bg",
"smartFormat": false,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant"
}
],
"tools": [
{
"async": false,
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"type": "transferCall",
"destinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
],
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"server": {
"url": "<string>",
"secret": "<string>"
}
}
],
"toolIds": [
"<string>"
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"provider": "canonical",
"topK": 123,
"fileIds": [
"<string>"
]
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputPreprocessingEnabled": true,
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": false,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"firstMessageMode": "assistant-speaks-first",
"recordingEnabled": true,
"hipaaEnabled": false,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetection": {
"provider": "twilio",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
],
"enabled": true,
"machineDetectionTimeout": 31,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000
},
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"analysisPlan": {
"summaryPrompt": "<string>",
"successEvaluationPrompt": "<string>",
"successEvaluationRubric": "NumericScale",
"structuredDataPrompt": "<string>",
"structuredDataSchema": {
"type": "string",
"items": {},
"properties": {},
"description": "<string>",
"required": [
{}
]
}
}
},
"assistantOverrides": {
"transcriber": {
"provider": "deepgram",
"model": "nova-2",
"language": "bg",
"smartFormat": false,
"keywords": [
"<string>"
]
},
"model": {
"messages": [
{
"content": "<string>",
"role": "assistant"
}
],
"tools": [
{
"async": false,
"messages": [
{
"type": "request-start",
"content": "<string>",
"conditions": [
{
"param": "<string>",
"value": {},
"operator": "eq"
}
]
}
],
"type": "transferCall",
"destinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
],
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
},
"server": {
"url": "<string>",
"secret": "<string>"
}
}
],
"toolIds": [
"<string>"
],
"provider": "openai",
"model": "gpt-4o",
"fallbackModels": [
"gpt-4-0125-preview",
"gpt-4-0613"
],
"semanticCachingEnabled": true,
"numFastTurns": 1,
"temperature": 1,
"knowledgeBase": {
"provider": "canonical",
"topK": 123,
"fileIds": [
"<string>"
]
},
"maxTokens": 525,
"emotionRecognitionEnabled": true
},
"voice": {
"inputPreprocessingEnabled": true,
"inputMinCharacters": 10,
"inputPunctuationBoundaries": [
"。",
",",
".",
"!",
"?",
";",
")",
"،",
"۔",
"।",
"॥",
"|",
"||",
",",
":"
],
"fillerInjectionEnabled": false,
"provider": "azure",
"voiceId": "andrew",
"speed": 1.25
},
"firstMessageMode": "assistant-speaks-first",
"recordingEnabled": true,
"hipaaEnabled": false,
"clientMessages": [
"transcript",
"hang",
"tool-calls",
"speech-update",
"metadata",
"conversation-update"
],
"serverMessages": [
"end-of-call-report",
"status-update",
"hang",
"tool-calls"
],
"silenceTimeoutSeconds": 30,
"responseDelaySeconds": 0.4,
"llmRequestDelaySeconds": 0.1,
"numWordsToInterruptAssistant": 1,
"maxDurationSeconds": 1800,
"backgroundSound": "office",
"backchannelingEnabled": true,
"variableValues": {},
"name": "<string>",
"firstMessage": "<string>",
"voicemailDetection": {
"provider": "twilio",
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
],
"enabled": true,
"machineDetectionTimeout": 31,
"machineDetectionSpeechThreshold": 3500,
"machineDetectionSpeechEndThreshold": 2750,
"machineDetectionSilenceTimeout": 6000
},
"voicemailMessage": "<string>",
"endCallMessage": "<string>",
"endCallPhrases": [
"<string>"
],
"metadata": {},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"analysisPlan": {
"summaryPrompt": "<string>",
"successEvaluationPrompt": "<string>",
"successEvaluationRubric": "NumericScale",
"structuredDataPrompt": "<string>",
"structuredDataSchema": {
"type": "string",
"items": {},
"properties": {},
"description": "<string>",
"required": [
{}
]
}
}
},
"assistantDestinations": [
{
"type": "assistant",
"assistantName": "<string>",
"message": "<string>",
"description": "<string>"
}
]
}
]
},
"customerId": "<string>",
"customer": {
"number": "<string>",
"name": "<string>",
"extension": "<string>"
},
"phoneNumberId": "<string>",
"phoneNumber": {
"twilioPhoneNumber": "<string>",
"twilioAccountSid": "<string>",
"twilioAuthToken": "<string>",
"name": "<string>",
"assistantId": "<string>",
"serverUrl": "<string>",
"serverUrlSecret": "<string>"
},
"metadata": {}
}
Assistant
Responses are generated using AI and may contain mistakes.