Index Text

Index plain text content into a collection.

Accepts raw text content in the request body, saves it as a document, and indexes it for semantic search. No file upload or cloud storage needed.

Text is always processed as basic (no OCR). Ideal for indexing scraped content, notes, articles, or any plain text data.

Returns a job_id for tracking progress via GET /v2/jobs/{job_id}.

Authentication

AuthorizationBearer
Bearer token authentication using API key

Path parameters

collection_namestringRequired
Name of the collection to index into

Headers

X-Organization-IDstringRequired
Idempotency-KeystringOptional
UUID for request deduplication

Request

This endpoint expects an object.
contentstringRequired
The text content to index.
filenamestringOptional

Optional filename for the text document. Defaults to ‘snippet-{N}.txt’ where N auto-increments.

custom_metadatamap from strings to anyOptional

Custom metadata to attach to all indexed chunks. Keys must be strings. Values: str, int, float, bool, or array of strings.

Response

Indexing job started
job_idstring
statusenum
Allowed values: