https://retellai.com/?utm_source=discord&utm_medium=seo logo
Create Knowledge Base Through API
# ❓・bug-report
i
Hello, I'm trying to create a Knowledge base through the API / /create-knowledge-base. I'm sending a POST request with the correct API Key and it is responding with a status code 500 (attached). Can you please advise on how to get this working? Will this not work with a free account? https://cdn.discordapp.com/attachments/1442245748275019860/1442245748870615191/image.png?ex=6924bb86&is=69236a06&hm=5350c496546585f5dc75111a88480ffff92cfcfd1415e44b10a0957d5ee23594&
I'm even using the UI in the api reference and it doesn't seem to be working here (attached image). Responding with "error" "not an array" https://cdn.discordapp.com/attachments/1442245748275019860/1442258277500195000/image.png?ex=6924c731&is=692375b1&hm=06c9a05f19eee6b5082c315dc6bd344b66677109a061a8da1d5345b927ad1e47&
f
I can help you troubleshoot this API issue! The error "not an array" suggests the API is expecting knowledge_base_texts to be an array format, but it's receiving something else. Looking at your request body, it appears you're sending an object structure when it might need an array of text objects. Can you share the exact JSON body you're sending in your POST request? That will help me identify the formatting issue causing the 500 error. @intellicall