For the complete documentation index, see llms.txt. This page is also available as Markdown.

Ai knowledge Sources

Lists all knowledge sources for a chatbot

get

Required Permission: chatbots.knowledge-source.list

Resource: chatbots/:chatbotId

Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired

The ID of the chatbot.

Query parameters
pageTokenstringOptional

The date after which to filter sources. Only sources created after this date will be fetched.

Example: 2025-09-29T07:08:00Z
limitnumberOptional

The limit for how many sources should be fetched.

Responses
200

List of all knowledge sources.

application/json
errorstringOptional

Optional error message

pageTokenstringRequired

The date of the latest fetched source.

Example: 2025-09-29T07:08:00Z
get
/v1/chatbots/{chatbotId}/ai/knowledge/sources

Deletes a batch of knowledge sources.

delete

Required Permission: chatbots.knowledge-source.delete

Resource: chatbots/:chatbotId

Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired

The ID of the chatbot.

Body
sourceIdsstring[]Required

A list of deleted source Id's.

Example: 10ß443d31264etg
Responses
200

Deletion result.

application/json
errorstringOptional

Optional error message.

deletedbooleanRequired

Indicates whether the deletion succeeded.

Example: true
delete
/v1/chatbots/{chatbotId}/ai/knowledge/sources

Retrieves a specific knowledge source

get

Required Permission: chatbots.knowledge-source.get

Resource: chatbots/:chatbotId

Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired

The ID of the chatbot.

sourceIdstringRequired

The ID of the knowledge source to retrieve.

Responses
200

Knowledge source details.

application/json
errorstringOptional

Optional error message

chunksContentstring[]Required

Content of the source split into chunks.

Example: ["Some Paragraph.","Another Paragraph"]
get
/v1/chatbots/{chatbotId}/ai/knowledge/sources/{sourceId}

Uploads knowledge source files.

post

Required Permission: chatbots.knowledge-source.create

Resource: chatbots/:chatbotId

Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired

The ID of the chatbot.

Body
filesstring · binary[]Required

Files to be uploaded as knowledge sources.

Responses
200

Upload result.

application/json
successbooleanOptional

Indicates whether the upload was successful.

Example: true
errorstringOptional

Optional error message.

post
/v1/chatbots/{chatbotId}/ai/knowledge/sources/upload

Last updated