v1
cURL
curl --request POST \ --url https://api.callrounded.com/v1/knowledge-bases/{knowledge_base_id}/sources \ --header 'Content-Type: multipart/form-data' \ --header 'X-Api-Key: <api-key>' \ --form file_sources=@example-file \ --form 'text_sources=<string>'
200
example
{ "message": "Sources added to knowledge base successfully", "data": { "id": "123e4567-e89b-12d3-a456-426614174000", "organization_id": "123e4567-e89b-12d3-a456-426614174001", "name": "Product Documentation", "created_at": "2023-06-15T14:30:00Z", "status": "ready", "sources": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "type": "file", "created_at": "2023-06-15T14:30:00Z", "file_name": "document.pdf", "file_url": "https://storage.example.com/files/document.pdf" } ] }, "error": { "details": [ { "field": "email", "message": "Invalid email format" } ], "message": "An error occurred while processing your request", "status": 400, "type": "generic_error" }, "status": 200}
Add PDF files or text content as sources to an existing knowledge base.
The API Key created in Rounded Studio.
Successfully added sources to knowledge base
The response is of type object.
object