API Issue with Voicemail Detection
{
"assistantId": "x",
"phoneNumberId": "x",
"type": "outboundPhoneCall",
"customer": {
"number": "x"
},
"assistant": {
"tools": [
{
"type": "voicemail"
}
],
"voicemailDetection": {
"provider": "twilio",
"enabled": true,
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
]
}
}
}
I keep getting:
{"message":["assistant.property tools should not exist"],"error":"Bad Request","statusCode":400}
But it looks like that's how it should be structured according to the API docs.
"assistantId": "x",
"phoneNumberId": "x",
"type": "outboundPhoneCall",
"customer": {
"number": "x"
},
"assistant": {
"tools": [
{
"type": "voicemail"
}
],
"voicemailDetection": {
"provider": "twilio",
"enabled": true,
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence"
]
}
}
}
I keep getting:
{"message":["assistant.property tools should not exist"],"error":"Bad Request","statusCode":400}
But it looks like that's how it should be structured according to the API docs.