v2

latestOpenAPI 3.1.02026-08-05100545344.4 KB

Add a knowledge base source

post/knowledge_base/{knowledge_base_id}/sources

Path parameters

knowledge_base_idstring required

Knowledge base ID.

Headers

Authorizationstring required

Bearer authentication

Request body

namestring

Source name.

type'pdf' | 'text' | 'web'

Source type.

urlstring

Source URL. Required when type is pdf (URL to a hosted PDF file) or web (URL to a website to scrape)

contentstring

The full text content for the knowledge base source. Required when type is text

Response

200

statusstring required