Knowledge

Knowledge sources for RAG

List knowledge sources

get

Returns a list of knowledge sources (RAG documents). Requires Power plan or higher.

Authorizations
X-API-KEYstringRequired
Query parameters
pageintegerOptional

Page number for pagination

Responses
chevron-right
200

A list of knowledge sources

application/json
idintegerOptional
namestringOptional
descriptionstring · nullableOptional
source_typestring · enumOptionalPossible values:
created_atstring · date-timeOptional
updated_atstring · date-time · nullableOptional
get
/v1/knowledge
200

A list of knowledge sources

Create a text knowledge source

post

Create a knowledge source from text content. For file uploads, use POST /v1/knowledge/upload.

Authorizations
X-API-KEYstringRequired
Body
namestring · max: 200Required
descriptionstring · max: 500Optional
contentstring · max: 100000Required

The text content to index

Responses
post
/v1/knowledge
201

Knowledge source created

Request upload URL for file-based knowledge

post

Get a signed URL to upload a PDF or TXT file. After uploading, call POST /v1/knowledge/{id}/confirm to trigger processing. Maximum file size: 50MB.

Authorizations
X-API-KEYstringRequired
Body
namestring · max: 200Required
descriptionstring · max: 500Optional
filenamestringRequired
content_typestring · enumRequiredPossible values:
Responses
post
/v1/knowledge/upload
201

Upload URL generated

Get a knowledge source

get

Get a single knowledge source by ID. Requires Power plan or higher.

Authorizations
X-API-KEYstringRequired
Path parameters
idintegerRequired

Knowledge source ID

Responses
chevron-right
200

Knowledge source detail

application/json
idintegerOptional
namestringOptional
descriptionstring · nullableOptional
source_typestring · enumOptionalPossible values:
created_atstring · date-timeOptional
updated_atstring · date-time · nullableOptional
get
/v1/knowledge/{id}
200

Knowledge source detail

Delete a knowledge source

delete

Delete a knowledge source and its embeddings. Requires Power plan or higher.

Authorizations
X-API-KEYstringRequired
Path parameters
idintegerRequired

Knowledge source ID

Responses
delete
/v1/knowledge/{id}
204

Knowledge source deleted

No content

Update a knowledge source

patch

Update knowledge source metadata (name, description, etc.). Requires Power plan or higher.

Authorizations
X-API-KEYstringRequired
Path parameters
idintegerRequired

Knowledge source ID

Body
namestringOptional
descriptionstring · nullableOptional
site_idstring · uuid · nullableOptional
enabledbooleanOptional
Responses
chevron-right
200

Knowledge source updated

application/json
idintegerOptional
namestringOptional
descriptionstring · nullableOptional
source_typestring · enumOptionalPossible values:
created_atstring · date-timeOptional
updated_atstring · date-time · nullableOptional
patch
/v1/knowledge/{id}
200

Knowledge source updated

Last updated

Was this helpful?