400 Error from TransferCall Tool
# support
v
Hi there! I see you're encountering a 400 error with the TransferCall Tool showing "No transfer destination returned." This is a common issue with a specific cause 🔍 This error occurs when your server doesn't return a valid destination when the
transfer-destination-request
is triggered. Here's how to fix it: 1. Check your server response - When Vapi sends a transfer-destination-request, your server must respond with a properly formatted JSON containing the destination details, like:
Copy code
json
{
  "destination": {
    "type": "number",
    "number": "+1234567890",
    "message": "Connecting your call",
    "callerId": "+0987654321"
  }
}
2. Verify your server URL configuration - Make sure the status-update Server URL is correctly set up to handle these requests and is accessible [from Vapi](https://docs.vapi.ai/server-url). 3. Check server logs - Look for any errors in your server logs when the transfer request is made. Your server might be failing to process the request or returning an incorrect format. 4. Test your endpoint - Try manually sending a test request to your endpoint to ensure it responds with the proper destination format. The status-update Server URL error (400) in your second image suggests that your server might be returning an invalid response or no response at all when Vapi tries to get the transfer destination. Let me know if you need more specific guidance on any of these steps! Sources: - [Dynamic Call Transfers](https://docs.vapi.ai/phone-calling/dynamic-call-transfers) - [Server URL setup details](https://docs.vapi.ai/server-url)
c
I'm having a problem transfering the call as well. On the call logs it is saying that it successfully transferred the call but the call is just ending for me. Anyone managed to fix this?
s
Hey! To help track down this issue, could you share: - The call ID This would really help us figure out what went wrong!
3 Views