https://retellai.com/?utm_source=discord&utm_medium=seo logo
I am trying to import an agent configuration but k...
# ❓・ai-evy-support
g
@AI Evy I am trying to import an agent configuration but keep getting "failed to import agent configuration failed with status code 400"
a
Thanks for tagging me @Goopa Snoops. I'll look through relevant sources and get back to you shortly.
### Answer The 400 error when importing agent configurations has been reported by other users recently. [(1) ]() [(2) ]() Here are some troubleshooting steps to try: 1. Clear browser cache and cookies [(2) ]() 2. Try using an incognito/private browser window 3. Disable browser extensions that might interfere 4. Ensure your API key is valid and has proper permissions 5. Review your JSON file — if you're using tools like "Wait", make sure the parameters are formatted correctly as an object [(3) ]() One user noted this appeared to be an issue on Retell AI's end that was affecting imports. [(1) ]() If the basic troubleshooting doesn't resolve it, I'd recommend reaching out to support directly. Would you like me to provide any additional guidance?
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] Discord message from @helloamitkg on 2025-05-21](https://discord.com/channels/1186424376300679209/1294891368505937952/1374587254160232448) [[2] Agent unable to be imported 400 error](https://discord.com/channels/1186424376300679209/1382740029532799099) [[3] Import Option does not work for outbound agents](https://discord.com/channels/1186424376300679209/1385302044956426451) ​
g
@AI Evy I can import every other agent except this one. Could it be because I modified a portion of the JSON file to have the spoken dialogue of the agent be in Spanish?
a
Thanks for the follow-up, @Goopa Snoops. I'll get back to you soon.
### Answer Yes, modifying the JSON file could cause the 400 error if the changes introduced invalid formatting or values. Based on similar import issues reported by other users, here are some things to check: [(1) ]() 1. Validate your JSON structure — Use a JSON validator like jsonlint.com to ensure the file is structurally valid 2. Check the
language
field
— If you changed the language setting, make sure it uses a valid value. The
language
field accepts specific locale codes like
"en-US"
[(2) ]() 3. Watch for encoding issues — Spanish characters (accents, ñ, etc.) could cause problems if the file encoding isn't UTF-8 4. Simplify and test — Start with a simpler version of the agent, import it, then add complexity gradually to identify what's breaking [(1) ]() Unfortunately, 400 errors during import don't provide detailed error messages in the dashboard. One workaround suggested by users is to simplify the agent JSON and incrementally add back your modifications to isolate the problematic field. If you can share which specific fields you modified for the Spanish dialogue, I can help identify if any of those have specific format requirements.
​ To learn more, see the sources I considered: [[1] Receiving 500 error while importing an agent AI with the JSON file](https://discord.com/channels/1186424376300679209/1368526955556900914) [[2] Create Voice Agent](https://docs.retellai.com/api-references/create-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.