Items
Create and retrieve items (source documents).Get Item
Retrieve an item with its passages.Endpoint
Path Parameters
string
required
The item’s kos_id
Example Request
Response
Create Item
Create a new item and trigger processing.Endpoint
Request Body
string
required
Tenant identifier
string
required
User identifier
string
required
Source system (files, gmail, slack, notion, etc.)
string
required
Document title
string
required
Full text content
string
required
Content type (article, email, note, etc.)
string
ID in source system for deduplication
object
Additional metadata
Example Request
Response
After creation, an
ITEM_UPSERTED event is emitted. The worker will:- Chunk the item into passages
- Generate embeddings
- Index in text search
- Extract entities