DeepResearch
Create a DeepResearch task
Start an async research task that performs comprehensive, multi-step research. The research agent searches multiple sources, analyzes content, executes code, and generates a detailed report with citations.
Tasks run in the background and typically take 1-10 minutes depending on the mode. Poll the status endpoint or use webhooks to get results.
post/v1/deepresearch/tasks
Request
- Base URL: https://api.valyu.ai
- URL: https://api.valyu.ai/v1/deepresearch/tasks
- Auth: API key in header X-API-Key
Request body
Example request
{
"query": "Comprehensive analysis of CRISPR gene therapy clinical trials in 2024",
"workflow_id": "ib-company-profile",
"workflow_params": {
"company": "NVIDIA (NVDA)"
},
"workflow_version": 1,
"mode": "standard",
"strategy": "Focus on Phase 3 trials and compare efficacy data across studies",
"research_strategy": "Focus on Phase 3 trials and compare efficacy data across studies",
"report_format": "Write a 2-page executive summary with bullet points and a comparison table",
"urls": [
"https://clinicaltrials.gov/study/NCT12345678"
],
"files": [
{
"data": "data:application/pdf;base64,JVBERi0xLjQK...",
"filename": "research_paper.pdf",
"mediaType": "application/pdf"
}
],
"output_formats": [
"markdown",
"pdf"
],
"metadata": {
"project": "drug-discovery",
"priority": "high"
},
"mcp_servers": [
{
"url": "https://mcp.example.com/tools"
}
],
"previous_reports": [
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
],
"webhook_url": "https://your-app.com/webhooks/deepresearch",
"alert_email": {
"custom_url": "https://your-app.com/reports/{id}"
}
}Response
Research task created and queued.
Example response
{
"deepresearch_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "running",
"mode": "standard",
"created_at": "2024-06-15T10:30:00.000Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.