### Answer
Based on the available sources, a 400 error in Retell AI typically indicates a client-side configuration issue or malformed request [(1) ](
) . Here are the main causes and solutions:
Common causes of 400 errors:
1.
JSON payload issues - When updating prompt trees, the error usually means there's a problem with the JSON format being sent [(2) ](
) . The JSON should include required fields like "llm_id", "version", "general_prompt", "general_tools", "states", "starting_state", and "last_modification_timestamp" .
2.
Payment/billing issues - A 402 error (Payment Required) can sometimes appear as a 400 error, especially when trial periods have ended [(3) ](
) .
3.
Imported agent formatting - Imported agents often have incorrect JSON format, which can cause 400 errors when trying to modify them [(2) ](
) .
Troubleshooting steps:
1.
Clear browser cache and cookies - This resolves many 400 errors [(4) ](
) .
2.
Validate JSON format - Use a JSON validator to ensure your payload is properly formatted [(2) ](
) .
3.
Check account status - Verify that your account is current and doesn't have payment issues [(3) ](
) .
4.
For imported agents - Consider rebuilding the agent from scratch rather than importing, as imported agents often have formatting issues [(2) ](
) .
If cl