VICIdial Error: API Authentication Failed — Cause & Fix
Error Summary
Error Message
API Authentication Failed Severity
WarningComponent
WebWhat Causes This Error
A VICIdial API call (from an external CRM, reporting tool, or integration) is failing authentication. Causes include: expired or revoked API credentials, IP address of calling system not whitelisted in VICIdial, API user lacks required permissions, or the API endpoint URL is incorrect.
How to Fix It
- 1 Check API user configuration: Admin > API Users
- 2 Verify the API user is active and has the required permissions
- 3 Check allowed IP for the API user — must match the calling system's IP
- 4 Verify API URL format: https://VICIDIAL_SERVER/vicidial/non_agent_api.php
- 5 Test API call manually with curl: curl 'https://SERVER/vicidial/non_agent_api.php?source=test&user=API_USER&pass=API_PASS&function=version'
- 6 Check Apache logs for 403 or 401 errors: grep 'non_agent_api' /var/log/apache2/access.log
- 7 Reset API password if credentials may have been compromised
How to Prevent It
Document all API integrations with their credentials and IP requirements. Implement API key rotation schedule. Monitor API error rates in Apache logs. Use least-privilege API users for each integration.
Related Errors
Still Stuck?
ViciStack's free 30-day support plan includes unlimited live VICIdial troubleshooting. If you can't resolve this error with the steps above, our engineers will connect to your system and fix it directly — no support tickets, no hourly billing.
Get Free VICIdial Support →