API Issue with Voicemail Detection
# support
m
{ "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.
v
@mehkris0ft It seems there might be a discrepancy between the API documentation you're referring to and the actual API schema expectations. The error message indicates that the
tools
property should not exist within the
assistant
object for the request you're making. To resolve this issue, you should remove the
tools
property from the
assistant
object and ensure that the rest of your request aligns with the API's expected schema. If the
voicemailDetection
is a valid property, you can keep it as part of the
assistant
object, but the
tools
array including the
voicemail
type should be omitted. If you're certain that the
tools
property is supposed to be part of the request according to the API documentation, then there might be an error in the API itself or the documentation may be outdated. In that case, I would recommend reaching out to the API support team for clarification. If you need further assistance with adjusting your request or contacting support, please let me know!
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
m
I want to hang up if we get to voicemail; i'm just not sure of how to make that happen with the API
Or in the assistant settings
s
You need to pass only one thing either assitantID or assitant.
m
It doesn't seem to detect voicemail, it keeps on playing the first message. I want it to hang up if it detects voicemail
s
can you send me any call_id?
d
Do you have a solution?
4 Views