Skip to main content

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:
  1. Chunk the item into passages
  2. Generate embeddings
  3. Index in text search
  4. Extract entities
Passages will appear in subsequent GET requests after processing.

Source Types