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_name
Name of the collection to index into
Headers
X-Organization-ID
Idempotency-Key
UUID for request deduplication
Request
This endpoint expects an object.
content
The text content to index.
filename
Optional filename for the text document. Defaults to ‘snippet-{N}.txt’ where N auto-increments.
custom_metadata
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_id
status
Allowed values: