Skip to main content
GET
/
knowledge
/
{knowledge_id}
/
sources
List Content Sources
curl --request GET \
  --url https://api.example.com/knowledge/{knowledge_id}/sources \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "company-s3",
    "name": "Company Documents",
    "type": "s3",
    "prefix": "documents/"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

knowledge_id
string
required

ID of the knowledge base

Query Parameters

db_id
string | null

The ID of the database to use

Response

Content sources retrieved successfully

id
string
required

Unique identifier for the content source

name
string
required

Display name for the content source

type
string
required

Type of content source (s3, gcs, sharepoint, github, azureblob)

metadata
Metadata · object

Custom metadata for the content source

prefix
string | null

Default path prefix for this source