Appearance
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
Requiredinteger
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 }
[
]