Skip to content

List Knowledge Sources

GET
/api/v1/tenants/{tenant_id}/knowledge-sources

List knowledge sources for a tenant, annotated with chunk counts.

Chunk counts come from a single aggregate query over
chatbot_document_chunks filtered by the tenant's collection so the
response never requires N+1 round-trips.

Authorizations

HTTPBearer
Type
HTTP (bearer)

Parameters

Path Parameters

tenant_id*
Type
integer
Required

Responses

Successful Response

application/json
JSON
[
  
{
  
  
"id": 0,
  
  
"source_type": "string",
  
  
"source_value": "string",
  
  
"refresh_schedule": "string",
  
  
"last_synced_at": "string",
  
  
"last_error": "string",
  
  
"enabled": true,
  
  
"chunk_count": 0
  
}
]

Playground

Server
Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

XC AI Content Automation