Search

Perform a semantic search across project documents

Authentication

AuthorizationBearer

API key with tr_ prefix (e.g., tr_abc123)

Path parameters

projectIdstringRequired
Project ID to search within

Request

This endpoint expects an object.
querystringRequired

Search query text (max 2048 tokens)

retrieval_strategyenumOptional
Allowed values:
expand_querybooleanOptionalDefaults to false
Generate query variations to improve recall
rerankbooleanOptionalDefaults to false
Rerank results using Cohere for improved relevance
generate_answerbooleanOptionalDefaults to true

Generate a natural-language answer

include_sourcesbooleanOptionalDefaults to true
Include source documents in response. Set false to reduce payload when only the answer is needed.
limitintegerOptional1-150Defaults to 50
Maximum results to return

Response

Search results
retrieval_contentslist of objects
completionstring or null

AI-generated answer (when generate_answer is true)