https://retellai.com/?utm_source=discord&utm_medium=seo logo
request failed with status code 400
# ❓・ai-evy-support
a
@AI Evy request failed with status code 400
a
Thanks for tagging me @aitoolworx. I'll look through relevant sources and get back to you shortly.
### Answer The 400 Bad Request error in Retell AI typically indicates a problem with your JSON payload structure. [(1) ]() Common causes: 1. Invalid JSON format - Use a JSON validator to ensure your payload is properly formatted. 2. Missing required fields - Your JSON should include: -
llm_id
-
version
-
general_prompt
-
general_tools
-
states
-
starting_state
-
last_modification_timestamp
3. Tool configuration errors - The error message indicates issues with tool properties like missing required fields (
number
,
cal_api_key
,
event_type_id
) or incorrect
type
values. [(2) ]() 4. Parameter structure issues - Ensure
parameters
is formatted as an object and matches the expected schema. Troubleshooting steps: - Validate your JSON payload using a JSON validator [(1) ]() - Verify all required fields are present with correct data types - Check that tool configurations match the allowed values and include all required properties [(2) ]() - If you imported an agent, try rebuilding from scratch as imported agents often have formatting issues [(1) ]()
​ To learn more, see the sources I considered: [[1] Request failed with status code 400](https://discord.com/channels/1186424376300679209/1379532913703391384) [[2] Discord message from @harshith_56829 on 2024-11-07](https://discord.com/channels/1186424376300679209/1294891368505937952/1304084254598103111) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.