Skip to main content
POST
Add sources to a knowledge base

Authorizations

X-Api-Key
string
header
required

The API Key created in Rounded Studio.

Path Parameters

knowledge_base_id
string<uuid>
required

Body

multipart/form-data
file_sources
file[] | null

List of PDF files to upload as sources. Only PDF files are supported.

text_sources
string | null

JSON string containing an array of text sources, each with 'title' and 'content' fields.

Response

Successfully added sources to knowledge base

data
KnowledgeBaseGetApiResponseData · object
required

The updated knowledge base data.

message
string
default:Sources added to knowledge base successfully

Response message indicating the result of the operation.

error
ApiResponseError · object | null
Example:
status
integer
default:200

HTTP status code of the response.