https://retellai.com/?utm_source=discord&utm_medium=seo logo
Cannot Add Source to Knowledge Base Through API
# ❓・bug-report
w
I am trying to use the API to add a new source, and it is not working no matter what I do. I am sure there is a simple answer. It cannot be that difficult. The other endpoints are working fine. Below are the details I am testing in Postman: Knowledge base ID: [Knowledge Base Source ID] Endpoint: POST /add-knowledge-base-sources/{id} Error: 500 Internal Server Error (no details) Request format: FormData with knowledge_base_texts[0][text] and knowledge_base_texts[0][title] It is not working for documents or URLs either. I am not sure this is where you report this, but I see someone else is having similar issues.
o
Hello @wagreen. ,can you show the request you made.
o
Hello @wagreen. , you will need to use JSON and send it in the JSON format like this knowledge_base_texts: [ { text: "Hello, how are you?", title: "Sample Question", } ]
Can you get it to work on Postman and then show me how you got it to work?