Test connection says “Invalid API credentials” or “API authentication failed”
- Likely cause
VICIdial did not accept the API user, or your web server answered HTTP 401 or 403. A 403 does not always mean a wrong password: a web server or firewall rule that blocks the master server address gives the same answer. The table in What does each Test connection message mean? explains each message.
“API authentication failed” means VICIdial answered with an error that is not a plain login failure. The usual reason is an API user without API access.
- How to check
Open the VICIdial connection on Integrations and read API user and API password. Use the show-password icon to look for a typo or a trailing space.
Ask your VICIdial admin to confirm that the API user exists, that the password matches, and that it has the settings in Connect VICIdial: API Access and Agent API Access set to 1, and Modify Leads set to 1 (not 5, which is read-only). The VoiceOI team confirms the exact permissions during onboarding.
Ask your admin whether a web server or firewall rule limits who may use the API, and whether the master server address the team gave you is allowed.
- How to fix it
Correct the user or the password in the connection on Integrations, press Save, then press Test connection again. If your login cannot edit the connection, ask the VoiceOI team how to hand over the new password safely. Do not send it in an ordinary message.
Have your VICIdial admin fix the permissions, or allow the master server address on the web server.
If the Server URL is wrong, see the wrong-address entry.
- Still stuck
The exact message, the Server URL as saved and the API user name. Never the password.