I'm getting HTTP 500 errors when trying to create a Knowledge Base via API, but listing existing KBs works fine.
What Works:
GET /list-knowledge-bases
Returns: HTTP 200 OK (shows 6-7 existing KBs)
What Fails:
POST /create-knowledge-base
Returns: HTTP 500 "Internal Server Error"
API Key:
key_...
Request Details (Attempt 1 - with knowledge_base_urls):
POST
https://api.retellai.com/create-knowledge-base
Headers:
Authorization: Bearer key_...
Content-Type: application/json
Body:
{
"knowledge_base_name": "Menu Ristorante TavlyAI",
"knowledge_base_urls": [
"https://my_backend.onrender.com/api/public/retell-menu/TavlyAI"
],
"enable_auto_refresh": true
}
Response: HTTP 500
{
"status": "error",
"message": "Internal Server Error"
}
Request Details (Attempt 2 - with knowledge_base_texts):
Body:
{
"knowledge_base_name": "Menu Ristorante TavlyAI",
"knowledge_base_texts": [
{
"title": "Menu Ristorante Completo",
"text": "
"
}
]
}
Response: HTTP 500 (same error)
Request Details (Attempt 3 - with auto_crawling_paths):
Body:
{
"knowledge_base_name": "Menu Ristorante TavlyAI",
"auto_crawling_paths": [{
"path": "https://my_backend.onrender.com/api/public/retell-menu/TavlyAI",
"exclusion_urls": []
}],
"enable_auto_refresh": true
}
Response: HTTP 400
{
"status": "error",
"message": "auto-crawling domain invalid"
}
Source URL Details:
- URL:
https://my_backend.onrender.com/api/public/retell-menu/TavlyAI
- Size: 68,361 bytes (66.8 KB)
- Content-Type: text/plain; charset=utf-8
- Format: Markdown
- Publicly accessible: Yes (verified with curl, downloads successfully)
- CORS headers: Access-Control-Allow-Origin: *