cURL
curl --request POST \ --url https://api.example.com/v1/knowledge-bases/{id}/sources \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <x-api-key>' \ --data ' { "urls": [ {} ], "texts": [ {} ] } '
{ "success": true, "knowledge_base_id": "knowledge_base_7a0682ce5fc02413", "sources_added": 3, "total_sources": 5, "message": "Sources added successfully", "powered_by": "Teli" }
Add URLs or text snippets to existing knowledge base
title
text
urls
texts
curl -X POST "https://api.teli.ai/v1/knowledge-bases/knowledge_base_7a0682ce5fc02413/sources" \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "urls": [ "https://example.com/new-docs", "https://example.com/pricing" ] }'
in_progress