Upload a document (File or Text) to the knowledge base. This triggers an ingestion process to make the content searchable by agents.
The name of the document.
The file to upload (e.g., PDF, DOCX, TXT). Required if text is not provided.
Raw text content. Required if file is not provided.
Optional Agent ID to immediately attach this document to.
Response
The unique identifier of the created document.
ID of the background job processing the document.
{
"documentation_id": "doc_123",
"name": "FAQ.pdf",
"type": "file",
"message": "File 'FAQ.pdf' uploaded and syncing to knowledge base",
"ingestion_job_id": "job_abc"
}