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
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

Last updated

Was this helpful?