Add knowledge source
PreviewGive agents persistent memory and versioned file collections. Manage sources, files and optional search indexes.
POST
/v1/knowledge/{collection_id}/sourcesSee authentication for credentials and permissions.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”collection_id
required
string
Knowledge collection
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
A connected repository mounted beneath a non-overlapping collection path.
object
config
Adapter-specific repository, revision and root-folder configuration, without credentials.
connection_owner
Optional GitHub connection owner; existing connection authorization still applies.
string | null format: uuid
kind
required
Source adapter: github reuses a connection; git reads a public HTTPS repository.
string
root_path
Collection-relative root under which the source hierarchy is preserved.
string
Example generated
{ "config": "example", "connection_owner": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "kind": "example", "root_path": "example"}Responses
200Connected source
Connected source
Media typeapplication/json
Example generated
example