How to decline a call
# support
n
Hello, I have I question regarding how to let vapi decline a call . I am using make.com so, when a call comes, vapi sends a Server message to get the assistantId who have to answer the call, but I don't want to let vapi answer the calls from all the numbers so how or what should I return as a response so that vapi just closes the line instead of answering with an error message. Thanks and best regards Nicola hanna
v
@Nicola Hello Nicola, To have Vapi decline a call, you would typically need to configure your webhook or the logic on make.com to respond with a specific command or status code that indicates to Vapi that the call should not be answered. Since Vapi does not yet have the capability to hang up the phone at the end of the call, you would need to handle this within your current setup. If you want Vapi to close the line without answering, you should return a response that instructs Vapi not to proceed with the call. This could be a specific HTTP status code or a payload that your Vapi setup recognizes as a command to reject the call. However, without specific documentation or details on how Vapi handles incoming call instructions, I cannot provide you with an exact response format. You may need to refer to the Vapi documentation or contact their support to get the precise information on how to format your response to decline a call. If you have any further questions or need assistance with another matter, feel free to ask.
You can continue this conversation by mentioning me in the message.
n
Thank you very much, how can I contact the support of vapi team
s
@Nicola Set the error to an empty string then it won't be spoken and then call will be terminated eventually. This will still answer your call instead you have to handle this at telephony level if call is not allowed such as outside buinsess hours or call coming from not allowed list end the call over there else forward the call to the Vapi assistant.
n
Thank you very much