- HTTP Request
- Content-Type
- Request Body
- Example Request (URL Type)
- Example Request (Text Type)
- Example Request (Document Type)
- Response (Success)
- Response (Error - Validation)
- Response (Error - Limit Reached)
- Validation Rules
- General Validations
- URL Type Validations
- Text Type Validations
- Document Type Validations
- Team Limits
- Processing Flow
- Error Codes
- Next Steps
Create Knowledge Item
Creates a new knowledge item and queues it for ingestion processing.
HTTP Request
Content-Type
application/jsonfor URL and text typesmultipart/form-datafor document uploads
Request Body
Example Request (URL Type)
Example Request (Text Type)
Example Request (Document Type)
Response (Success)
Response (Error - Validation)
Response (Error - Limit Reached)
Validation Rules
General Validations
- title: Required, max 50 characters
- description: Required, max 200 characters
- source_type: Required, must be one of:
document,url,text
URL Type Validations
- url: Required when source_type is
url - Must be a valid HTTP or HTTPS URL
- URL must be accessible for ingestion
Text Type Validations
- raw_text: Required when source_type is
text - Max 10,000 characters
Document Type Validations
- document: Required when source_type is
document - Must be a PDF file
- Max file size: 25MB
- File must be a valid, non-corrupted PDF
Team Limits
- Maximum of 3 knowledge items per team
- Cannot create new items when limit is reached
Processing Flow
After successful creation:
- Knowledge item is created with
status: "pending" - Ingestion job is queued automatically
- Status transitions to
processingwhen job starts - Processing includes:
- Extraction: Extract text from PDF or fetch from URL
- Chunking: Split content into optimal-sized chunks
- Embedding: Generate vector embeddings
- Indexing: Store in search index
- Status transitions to
readyon success orfailedon error - Poll Get Knowledge Item to monitor progress
Error Codes
Next Steps
After creating a knowledge item:
- Monitor Status: Poll Get Knowledge Item until status is
ready - Attach to Agent: Use Attach Knowledge Item to Agent to enable RAG for the agent
- Configure RAG: Update agent’s
search_modeandmax_chunks_per_queryvia Update Agent
