List Content Sources
Select a knowledge base
Register a Knowledge with contents_db on AgentOS, an Agent or a Team. Read the actual generated ID from GET /config under knowledge.knowledge_instances; use that knowledge_id in the request's selector. It is not an arbitrary Knowledge.id. A selector is required when multiple instances make the request ambiguous (400); no configured knowledge base returns 503. If both selectors are supplied, knowledge_id takes precedence over db_id.
Ingestion and search also require suitable readers, vector storage, an embedder where needed, and their dependencies and credentials. See Knowledge.
This lists configured ingestion sources, not every file in them. It requires a local Knowledge; RemoteKnowledge returns 501. The file browser supports only S3 even when other source types appear in this list.
/knowledge/{knowledge_id}/sourcesList all registered content sources (S3, GCS, SharePoint, GitHub) for the knowledge base.
Authorization
HTTPBearer In: header
Path Parameters
ID of the knowledge base
Query Parameters
The ID of the database to use
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl --request GET 'https://example.com/knowledge/string/sources'[ { "id": "company-s3", "name": "Company Documents", "type": "s3", "prefix": "documents/" }]{ "detail": "string", "error_id": "string", "error_type": "string"}{ "detail": "string", "error_id": "string", "error_type": "string"}{ "detail": "string", "error_id": "string", "error_type": "string"}{ "detail": "string"}{ "detail": "string", "error_id": "string", "error_type": "string"}