Skip to content
Docs
GitHub

Add knowledge source

Preview

Give agents persistent memory and versioned file collections. Manage sources, files and optional search indexes.

Public APIEverruns Cloud and self-hosted Platform

POST/v1/knowledge/{collection_id}/sources

See authentication for credentials and permissions.

collection_id
required
string

Knowledge collection

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