https://retellai.com/?utm_source=discord&utm_medium=seo logo
I want to use curl for these apis https://docs
# ❓・ai-evy-support
a
Thanks for tagging me @huynh_son. I'll look through relevant sources and get back to you shortly.
### Answer I can help you with the Create Knowledge Base API using curl based on the available documentation [(1) ]() . However, I don't have information about the "add-knowledge-base-sources" API endpoint in the provided sources. For the Create Knowledge Base API, you can use curl with a POST request to
/create-knowledge-base
. The API uses multipart/form-data and requires authentication with your API key in the format "Bearer YOUR_API_KEY" . The required parameters include: - `knowledge_base_name`: Name of the knowledge base (must be less than 40 characters) - Optional parameters:
knowledge_base_texts
,
knowledge_base_files
,
knowledge_base_urls
, and
enable_auto_refresh
For the specific curl syntax and complete parameter details, I'd recommend checking the full documentation at the Create Knowledge Base API reference , as the sources don't contain the exact curl command format. Since I don't have information about the add-knowledge-base-sources endpoint you mentioned, you might want to check if that's the correct endpoint name or if there's updated documentation available.
​ To learn more, see the sources I considered: [[1] Create Knowledge Base](https://docs.retellai.com/api-references/create-knowledge-base) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
can you give a curl example for the files case?