https://retellai.com/?utm_source=discord&utm_medium=seo logo
The API for creating a knowledge base always retur...
# ❓・ai-evy-support
t
@AI Evy The API for creating a knowledge base always returns a 500 error, is it operational?
a
Thanks for tagging me @tollanisshubh_27855. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, there are multiple reports of 500 Internal Server Error issues when creating or adding sources to knowledge bases. [(1) ]() [(2) ]() [(3) ]() Several users have encountered this exact problem when using the Create Knowledge Base API endpoint (` and the Add Knowledge Base Sources endpoint (` . According to one Discord discussion, the Retell support team indicated they were "working on knowledge base issue." [(2) ]() Another discussion mentioned that the API documentation itself does not support testing the knowledge base API directly, and users should "use another way to test kb api." [(3) ]() The official documentation shows the correct request format for creating a knowledge base: [(4) ]()
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
async function main() {
 const knowledgeBaseResponse = await client.knowledgeBase.create({
 knowledge_base_name: "Sample KB",
 knowledge_base_texts: [
 {
 text: "Hello, how are you?",
 title: "Sample Question",
 },
 ],
 knowledge_base_urls: [
 "<https://www.retellai.com%22,>
 "<https://docs.retellai.com%22,>
 ],
 knowledge_base_files: [
 fs.createReadStream("../sample.txt") ,
 ],
 }) ;
 console.log(knowledgeBaseResponse.knowledge_base_id) ;
}
main() ;
I recommend reaching out to Retell AI support directly about this operational issue, as it appears to be a known problem affecting multiple users. For support, visit [Contact Sales]() or [) .
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 @wagreen. on 2025-10-15](https://discord.com/channels/1186424376300679209/1294891368505937952/1428134938728730758) [[2] internal server error on create knowledge base by API](https://discord.com/channels/1186424376300679209/1391417148215136376) [[3] Create Knowledge Base Api returning : {"status":"error","message":"Internal Server Error"}](https://discord.com/channels/1186424376300679209/1318647863525380126) [[4] Create Knowledge Base](https://docs.retellai.com/api-references/create-knowledge-base) ​