https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hello Retell AI Support,We are experiencing an iss...
# ❓・ai-evy-support
s
@AI Evy Hello Retell AI Support, We are experiencing an issue where our API key is not being recognized, despite being configured correctly. We tested with multiple valid keys, but the system still returns the following error: [{"fieldKey":"debug_input_phone","value":"+526862105783"}, {"fieldKey":"debug_phone_normalized","value":"+526862105783"}, {"fieldKey":"debug_dynamic_variables_sent","value":"{\"nombre_cliente\":\"Alicia\",\"ingreso_liquido_crm\":\"no especificado\",\"correo_crm\":\"alichiajll@gmail.com\",\"timestamp_formulario\":\"hace poco completó nuestro formulario\",\"capacidad_ahorro_crm\":\"300.000\"}"}, {"fieldKey":"retell_call_id","value":""}, {"fieldKey":"retell_status","value":""}, {"fieldKey":"retell_error_code","value":""}, {"fieldKey":"retell_error_message","value":"API Key (retell_agente_MDR) no encontrada. Asegúrate de que esté seleccionada en la configuración del Workflow activo."}] Could you please help us identify why the API key is not being detected, even though it has been correctly configured and tested with different keys? Thank you in advance for your support. Best regards,
a
Thanks for tagging me @Shock. I'll look through relevant sources and get back to you shortly.
### Answer Based on the error message you're seeing, this appears to be a workflow configuration issue rather than an API key authentication problem with Retell AI directly. The error indicates that the API key named "retell_agente_MDR" is not found in your workflow configuration [(1) ]() . For proper Retell AI REST API authentication, your API key should be included in request headers using this format :
Copy code
Authorization: Bearer YOUR_API_KEY
Here are the key troubleshooting steps: 1. **Verify API Key Format**: Ensure you're using the correct authorization header format for REST API requests . 2. **Check Workflow Configuration**: The error suggests the API key isn't properly configured in your active workflow. Make sure the API key is correctly selected in your workflow settings . 3. **API Key Security**: Never expose your API key in public repositories or client-side code . If your API key has been exposed, rotate and revoke it immediately [(2) ]() . 4. **Test Authentication**: Try testing your API key authentication in the Retell AI API Playground to verify it works correctly [(1) ]() . 5. **Create New API Key**: If issues persist, create a new API key from your workspace, as each workspace can have multiple API keys with the same permission level . The specific error message you're seeing suggests this is a workflow integration issue where the API key reference isn't properly configured in your automation tool, rather than an issue with the API key itself. If you continue experiencing issues after checking these points, I'd recommend: - Visit [Contact Sales]() - Visit [) Would you like a general answer based on my knowledge instead?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] API Key Overview](https://docs.retellai.com/accounts/api-keys-overview) [[2] Prevent abuse](https://docs.retellai.com/reliability/prevent-abuse) ​
s
Hablas español ?
@AI Evy
a
Thanks for the follow-up, @Shock. I'll get back to you soon.
### Answer Sí, puedo responder en español. Para autenticar tus solicitudes a la API REST de Retell AI, debes incluir tu clave API en los headers de la solicitud [(1) ]() :
Copy code
Authorization: Bearer YOUR_API_KEY
Basándome en el error que reportas, parece ser un problema de configuración de workflow más que un problema de autenticación directa con Retell AI . El mensaje de error indica que la clave API llamada "retell_agente_MDR" no se encuentra en la configuración de tu workflow . Los pasos de solución de problemas son: 1. **Verificar formato de clave API**: Asegúrate de usar el formato correcto del header de autorización para solicitudes REST API 2. **Revisar configuración del workflow**: El error sugiere que la clave API no está configurada correctamente en tu workflow activo 3. **Seguridad de clave API**: Mantén tus claves API seguras y nunca las compartas en repositorios públicos o código del lado del cliente 4. **Probar autenticación**: Prueba la autenticación de tu clave API en el API Playground de Retell AI 5. **Crear nueva clave API**: Si los problemas persisten, crea una nueva clave API desde tu workspace, ya que cada workspace puede tener múltiples claves API con el mismo nivel de permisos [(2) ]() Puedes gestionar tus claves API desde la sección "API Keys" en la configuración del sistema, donde puedes crear nuevas claves, eliminar existentes y establecer una clave como webhook key . Si continúas experimentando problemas, te recomiendo: - Visitar [Contact Sales]() - Visitar [) ¿Te gustaría que proporcione una respuesta general basada en mi conocimiento en su lugar?
​ To learn more, see the sources I considered: [[1] API Key Overview](https://docs.retellai.com/accounts/api-keys-overview) [[2] Manage API Keys](https://docs.retellai.com/accounts/manage-api-keys) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.