https://retellai.com/?utm_source=discord&utm_medium=seo logo
i cant create knowledge base with APIif i add text...
# ❓・ai-evy-support
t
@AI Evy i cant create knowledge base with API if i add texts or URLs in source api returns with 500 error
a
Thanks for tagging me @thblackboy_. I'll look through relevant sources and get back to you shortly.
### Answer The 500 error when creating a knowledge base with texts or URLs is a known issue that other users have reported [(1) ]() [(2) ]() . When creating a knowledge base, the request body should be structured as follows [(3) ]() :
Copy code
javascript
{
  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,>
  ],
}
For adding sources to an existing knowledge base, ensure you're sending the data in JSON format with the proper structure [(2) ]() :
Copy code
javascript
knowledge_base_texts: [
  {
    text: "Hello, how are you?",
    title: "Sample Question",
  }
]
[(4) ]() According to a support response in a similar case, the Retell team was working on knowledge base issues [(1) ]() . If the problem persists with properly formatted requests, I recommend reaching out to support. Would you like me to provide more details about the request format, or would you prefer to contact support directly at [Contact Sales]() or [) ?
​ To learn more, see the sources I considered: [[1] internal server error on create knowledge base by API](https://discord.com/channels/1186424376300679209/1391417148215136376) [[2] Cannot Add Source to Knowledge Base Through API](https://discord.com/channels/1186424376300679209/1428127903199269046) [[3] Create Knowledge Base](https://docs.retellai.com/api-references/create-knowledge-base) [[4] Add Knowledge Base Sources](https://docs.retellai.com/api-references/add-knowledge-base-sources) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @thblackboy_. I'll get back to you soon.
t
@AI Evy how can i reaching out to support
a
### Answer Based on the available sources, you can reach Retell AI support through these channels: - Visit [Contact Sales]() [(1) ]() - Email support at support@retellai.com [(2) ]() - Visit [) [(1) ]() For your specific knowledge base API issue with 500 errors, contacting support directly via email would be the most effective route to get technical assistance with the API problem you're experiencing.
​ To learn more, see the sources I considered: [[1] Discord message from @shaun_72049 on 2025-10-27](https://discord.com/channels/1186424376300679209/1186462578310910112/1432345333840609371) [[2] Support](https://discord.com/channels/1186424376300679209/1433077970066735194) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.