indexing
Index Text
Index plain text content into a collection.
Accepts raw text content in the request body, saves it as a .txt file, and indexes it for semantic search. No file upload or cloud storage needed.
Headers:
- Authorization: Bearer {api_key} - Captain API key for authentication
- X-Organization-ID: Organization UUID
- Idempotency-Key: UUID for request deduplication (optional)
Args: collection_name: Name of the collection (path parameter) body: Text content and optional metadata
Returns: { job_id, status: "pending" }
post/v2/collections/{collection_name}/index/text
Path parameters
collection_namestring required
Headers
authorizationstring nullable
Request body
Response
Successful Response