v44

latestOpenAPI 3.1.0Proprietaryraw.githubusercontent.com2026-05-192301780.0 KB
Search

Generate AI-powered answers from web search

Generate comprehensive answers to questions using web search results. Supports two modes: native provider answers or custom LLM-powered answers using Case.dev's AI gateway. Perfect for legal research, fact-checking, and gathering supporting evidence for cases.

post/search/v1/answer

Request body

querystring required

The question or topic to research and answer

useCustomLLMboolean

Use Case.dev LLM for answer generation instead of provider's native answer

modelstring

LLM model to use when useCustomLLM is true

searchType'auto' | 'web' | 'news' | 'academic'

Type of search to perform

numResultsinteger

Number of search results to consider

includeDomainsstring[]

Only search within these domains

excludeDomainsstring[]

Exclude these domains from search

temperaturenumber

LLM temperature for answer generation

maxTokensinteger

Maximum tokens for LLM response

textboolean

Include text content in response

streamboolean

Stream the response (only for native provider answers)

Response

Answer generated successfully

answerstring

The generated answer with citations

modelstring

Model used for answer generation

searchTypestring

Type of search performed