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.

GET/knowledge/{knowledge_id}/sources

List all registered content sources (S3, GCS, SharePoint, GitHub) for the knowledge base.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

knowledge_id*Knowledge Id

ID of the knowledge base

Query Parameters

db_id?|

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