Skip to main content
POST
/
v1
/
knowledge-bases
/
{id}
/
sources
{
  "success": true,
  "knowledge_base_id": "knowledge_base_7a0682ce5fc02413",
  "sources_added": 3,
  "total_sources": 5,
  "message": "Sources added successfully",
  "powered_by": "Teli"
}

Authentication

X-API-Key
string
required
Your Teli API key

Path Parameters

id
string
required
Knowledge base ID

Request Body

urls
array
Array of URLs to add. Each URL will be scraped and indexed.
texts
array
Array of text snippets. Each has title (string) and text (string).
At least one of urls or texts is required.

Request Examples

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"
    ]
  }'

Response

{
  "success": true,
  "knowledge_base_id": "knowledge_base_7a0682ce5fc02413",
  "sources_added": 3,
  "total_sources": 5,
  "message": "Sources added successfully",
  "powered_by": "Teli"
}

Processing

After adding sources, the knowledge base status will change to in_progress while the new content is:
  • Scraped (URLs)
  • Chunked
  • Embedded
  • Indexed
Check status via Get Knowledge Base endpoint.