Search Chat History
Perform raw semantic search across all imported chat conversations. Returns matched chunks with scores and surrounding context. For most use cases, use the Recall endpoint (POST /api/chat-history/inject) instead — it performs search and AI synthesis in one step.
Overview
Perform semantic search across all imported chat conversations. This endpoint uses hybrid vector + keyword search with AI reranking for high relevance results.How it works
- Your query is embedded and compared against all conversation chunks using vector similarity
- Results are enriched with surrounding context messages
- An AI reranker scores and orders results by relevance (can be skipped for faster responses)
Example
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The search query. Semantic search is performed across all imported conversations.
"how to set up authentication"
Maximum number of results to return.
1 <= x <= 100Filter results by platform. 'all' searches everything, or specify a platform ID (e.g., 'chatgpt', 'claude', 'custom').
Number of surrounding message chunks to include for context around each result.
Skip the AI reranking step. Faster but potentially less relevant ordering.