Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Telnyx API key

Body

application/json
query
string
required

The research question or topic.

Required string length: 1 - 2000
Example:

"Compare the performance of RAG vs fine-tuning for domain-specific QA"

research_effort
enum<string>

Research depth level. lite is fastest, deep is most thorough.

Available options:
lite,
standard,
deep
Example:

"standard"

max_sources
integer

Maximum number of sources to use.

Required range: 1 <= x <= 50
Example:

20

background
boolean

When true, the research runs asynchronously. The response returns a task_id immediately instead of waiting for the result. Poll GET /web_search/research/{task_id} to check status.

Example:

false

Response

Research response. Shape depends on background:

  • Synchronous (background false/unset): returns answer + citations.
  • Asynchronous (background true): returns task_id + status.
data
object

Synchronous research response (when background is false or unset).