Lucía
10/23/2025, 4:29 PMVapi Support Bot
10/23/2025, 4:31 PMLucía
10/24/2025, 8:59 AMLucía
10/24/2025, 12:33 PMVapi Support Bot
10/24/2025, 12:34 PMjs
async function apiCallWithRetry(url, options, retries = 3, delay = 500) {
for (let i = 0; i < retries; i++) {
try {
return await axios(url, options);
} catch (err) {
if (i === retries - 1) throw err;
await new Promise(res => setTimeout(res, delay * Math.pow(2, i)));
}
}
}
This approach helps handle temporary rate limits or network issues by spacing out retries automatically. For more details, see the [call queue management guide](https://docs.vapi.ai/calls/call-queue-management).
Source:
- [Call queue management with Twilio](https://docs.vapi.ai/calls/call-queue-management)Lucía
10/24/2025, 12:42 PMVapi Support Bot
10/24/2025, 12:43 PMrequests with exponential backoff for retries:
python
import time, requests
def api_call_with_retry(url, method="get", retries=3, delay=0.5, **kwargs):
for i in range(retries):
try:
resp = requests.request(method, url, **kwargs)
resp.raise_for_status()
return resp
except requests.RequestException as err:
if i == retries - 1:
raise
time.sleep(delay * (2 ** i))
This will help handle temporary 400/404 errors by spacing out retries automatically. Adjust retries and delay as needed for your workload. For more, see the [Vapi tools documentation](https://docs.vapi.ai/tools/default-tools).
Source:
- [Default Tools | Vapi Documentation](https://docs.vapi.ai/tools/default-tools)Chiranjeet Mishra
10/24/2025, 6:48 PMphoneCallProviderBypassEnabled is set to false and your assistant does not have serverMessages set to \["phone-call-control"\].
- The transfer scenario from your call origin to the destination is supported.
- The end reason returned by the Vapi API is "assistant-forwarded-call".
If the problem persists, checking telephony provider logs, such as Twilio or Vonage, could reveal more about potential network or setup issues.Lucía
10/27/2025, 10:19 AMLucía
10/27/2025, 10:20 AMLucía
10/27/2025, 3:04 PMVapi Support Bot
10/27/2025, 3:06 PMChiranjeet Mishra
10/29/2025, 8:30 PM