Search for code artifacts (Auth policies: ApiKeyOrJwt)
Sample requests:
Basic search with IDs: GET /api/search?Query=how%20to%20connect%20to%20database&DataSourceIds=67f664fd4c2a00698a52bb6f&Mode=fast
Search with workspace/repository names: GET /api/search?Query=authentication&Names=MyWorkspace&Names=my-repository&Mode=auto
Mixed search (IDs and names): GET /api/search?Query=user%20service&DataSourceIds=67f664fd4c2a00698a52bb6f&Names=MyWorkspace&Mode=auto
- Mode=auto: Intelligent search mode (recommended)
- Mode=fast: Quick search for exact matches
- Mode=deep: Thorough semantic analysis (use sparingly)
- IncludeContent=true: Include full file content in results
- DescriptionDetail=Short|Full: Control summary detail level
- DataSourceIds: Specify data sources by their IDs
- Names: Specify data sources by workspace or repository names (case-insensitive)
Legacy compatibility note: This endpoint is intentionally kept for older MCP clients, prompts, and API integrations that still call /api/search with Mode and DescriptionDetail. New integrations must use /api/search/semantic or /api/search/grep instead. The split matters because the canonical endpoints separate semantic retrieval from exact/regex search, while this legacy route bundles multiple search behaviors behind one surface and therefore exposes policy knobs that newer clients should not depend on. As part of that compatibility contract, Mode is accepted but ignored: legacy callers may still send it, but the endpoint now always executes the fast path to keep behavior stable, cheap, and predictably backward-compatible while canonical routes own the richer strategy selection.
Authorizations
API Key authentication using Bearer token. Example: "Authorization: Bearer {apiKey}"
Headers
Query Parameters
Auto, Fast, FastComplex, Deep Short, Full