POST /v1/deepresearch/tasks reference: create a DeepResearch task with a mode from instant to max, output format, deliverables, sources, tools and webhooks.
Run a multi-step investigation and receive a cited report. Provide a focused question, the intended audience and the evidence or comparisons the report needs to cover.
Start, store and retrieve
Create a task and store its deepresearch_id in your application.
Poll Get status, or configure a completion webhook.
When status is completed, read output, sources and any requested deliverables.
Handle failed and cancelled separately from successful completion. If checkpoints are enabled, handle awaiting_input and paused too.
The response can carry warnings about the request, for example named datasets outside your plan, a tool the chosen mode doesn’t have, or a cover_art or brand kit file that cannot be used. The task still runs. Each warning is an object with type, message and an optional detail, not a string. Relay each message to your user.Use research_strategy to guide investigation and report_format to describe presentation. Choose output_formats for machine-readable output, or request deliverables for files. A json deliverable takes an optional JSON Schema in schema. It is separate from output_formats. See deliverables. Report instructions express the requested result; validate the returned output before inserting it into a downstream workflow.For repeatable tasks, run a Workflow with workflow_id and workflow_params instead of freeform query fields.
Modes and billing
Mode
Credits per task
instant
8
fast
25
standard
100
heavy
500
max
2,500
Tool add-ons (screenshots, code execution, browser use, extra deliverables) are charged on top: Excel, PowerPoint and Word files are 55 credits each. HTML files are 100 credits each. Neither has an included file. For CSV and JSON, one file per task is included (they share it), then 15 credits for each extra file. PDF files are always included and never charged. See pricing.When you create a task, its mode price is held against your balance until the task is charged. If your balance, minus amounts held for your other queued and running tasks, can’t cover it, the request returns 402 with an Insufficient credits error and no task is created. A 503 with Billing temporarily unavailable means billing couldn’t be checked; no task was created, so retry with backoff.Failed tasks are free. Cancelling a running or awaiting_input task charges the full mode price; cancelling a queued or paused task is free.
A task can be either freeform (provide query/input plus optional research_strategy, report_format, etc.) or workflow-driven (provide workflow_id + workflow_params). The two modes are mutually exclusive: passing workflow_id alongside freeform fields (query, input, research_strategy, report_format) returns 400 workflow_and_freeform_mutually_exclusive. When running a workflow, any mode/deliverables/tools you pass in the body override the template defaults.
query
string
required
The research query or question. Use query (preferred) or input (deprecated). Maximum 25,000 characters. Mutually exclusive with workflow_id.
Maximum string length: 25000
Example:
"Comprehensive analysis of CRISPR gene therapy clinical trials in 2024"
input
string
deprecated
Deprecated. Use query instead.
workflow_id
string
Beta. Slug of a workflow to run instead of a freeform query. When set, the task is resolved from the workflow's prompt template using workflow_params. Mutually exclusive with freeform fields (query, input, research_strategy, report_format); supplying both returns 400 workflow_and_freeform_mutually_exclusive. See the Workflows endpoints.
Example:
"ib-company-profile"
workflow_params
object
Beta. Values for the workflow's template variables, keyed by variable key. Required when workflow_id is set. Values must satisfy the workflow's declared variable types and validation rules.
Show child attributes
Example:
{ "company": "NVIDIA (NVDA)" }
workflow_version
integer
Beta. Pin the run to a specific immutable version of the workflow. Defaults to the workflow's current version when omitted. Only valid with workflow_id.
Required range: x >= 1
Example:
1
mode
enum<string>
default:standard
Research mode controlling depth and cost. Prices are credits per task; tool add-ons are extra. See pricing.
Mode
Credits
Best For
Max Steps
instant
8
Short, cited answers in under 30 seconds
1
fast
25
Quick queries, batch processing
12
standard
100
Balanced research
25
heavy
500
Complex topics requiring deep analysis
45
max
2,500
Larger research budget for complex tasks
75
Available options:
instant,
fast,
standard,
heavy,
max
Example:
"standard"
model
enum<string>
deprecated
Deprecated. Use mode instead.
Available options:
fast,
standard,
heavy,
max
strategy
string
deprecated
Deprecated. Use research_strategy instead. Natural language strategy to guide the research agent's approach.
Example:
"Focus on Phase 3 trials and compare efficacy data across studies"
research_strategy
string
Natural language strategy to guide the research phase. Controls how the agent searches, what sources to prioritize, and research methodology. Combined length of research_strategy and report_format must not exceed 15,000 characters.
Maximum string length: 15000
Example:
"Focus on Phase 3 trials and compare efficacy data across studies"
report_format
string
Natural language instructions for the output format. Has highest priority and overrides default formatting. Controls structure, style, length, and presentation of the final report. Combined length of research_strategy and report_format must not exceed 15,000 characters.
Maximum string length: 15000
Example:
"Write a 2-page executive summary with bullet points and a comparison table"
search
object
Search configuration for DeepResearch tasks.
Show child attributes
urls
string<uri>[]
URLs to include in the research context. Max 50. The first 10 are free. Each extra URL costs 8 credits. Scanned pages (OCR) in URL files cost 2.4 credits per page, for tasks created from 2026-11-13.
Maximum array length: 50
Example:
["https://example.com/selected-trial-record"]
files
object[]
Files to analyze as part of the research. Max 10. Scanned pages (OCR) cost 2.4 credits per page, for tasks created from 2026-11-13.
Maximum array length: 10
Show child attributes
output_formats
(enum<string> | object)[]
Desired output formats. Defaults to ["markdown"].
"markdown" - Markdown report (default)
"pdf" - PDF document (can combine with "markdown")
"toon" - Token-efficient structured output; requires a JSON Schema object to also be supplied
JSON Schema object - Structured JSON output
A JSON Schema object cannot be combined with "markdown" or "pdf". "toon" requires a JSON Schema object.
enum<string>
object
Available options:
markdown,
pdf,
toon
Example:
["markdown", "pdf"]
metadata
object
Arbitrary key-value metadata to attach to the task.
MCP servers to provide additional tools during research. Max 5.
Maximum array length: 5
Show child attributes
code_execution
boolean
default:false
deprecated
Deprecated: use tools.code_execution instead. Enable code execution capability.
tools
object
Controls which optional tools the research agent can use. Each tool accepts an object with enabled (boolean, default true) and optional max_calls (integer, capped at system default).
Show child attributes
previous_reports
string[]
DeepResearch task IDs to use as context for this task. Max 3.
Maximum array length: 3
Example:
["a1b2c3d4-e5f6-7890-abcd-ef1234567890"]
webhook_url
string<uri>
HTTPS URL to receive a webhook POST when the task completes. Signed with HMAC-SHA256.
Example:
"https://example.com/webhooks/deepresearch"
alert_email
string<email>object
Email notification on completion. Pass a string (email address) or an object with email and optional custom_url. The custom_url must contain {id} which gets replaced with the task ID. Email must belong to your organization.
brand_collection_id
string
Brand kit to apply to the PDF report and the deliverables. Send a kit ID from the Valyu platform, or "none" for no branding. If you don't send it, the organisation's default kit applies to the report and any deliverables, if the default kit is ready. Brand kits need the Comfortably Pro, Serious Business or Enterprise plan. See Brand kits.
Example:
"YOUR_KIT_ID"
cover_art
object
Cover art for this one report. It replaces the brand kit's cover art on the PDF report cover, the PDF deliverable and the title slide of a PPTX deck, and works without a kit. Send exactly one of data or url. The picture must be a PNG or JPEG, at most 2 MB after base64 decoding, and at least 800 px on the short side. Cropping it to the A4 page must keep at least 25% of it. For a large picture, send url. A malformed field returns 400. A picture that cannot be used, including a private or unreachable url, never fails the task: the kit's cover art or the standard cover applies, and warnings carries cover_art_not_used. See Brand kits.
Show child attributes
deliverables
(string | object)[]
Deliverable files to generate from the research (e.g. Excel reports, presentations). Max 10.
Maximum array length: 10
string
object
A deliverable to generate from the research. Can be a string (natural language description, max 500 chars) or a structured object.
Maximum string length: 500
hitl
object
Human-in-the-loop configuration. Enable checkpoints that pause execution at key decision points. Not available for batch requests.
Show child attributes
share_with
string[]
People or company domains who can open the report. Each entry is an email address (name@company.com) or a whole company domain (@company.com). The report stays private: only these people and members of your organization can open it. Viewers open the share link and sign in to Valyu with that email address, which must be verified. A domain covers anyone with a verified email at exactly that domain, not its subdomains. Public email providers such as gmail.com and outlook.com can't be shared as a domain; add those people individually. An invalid entry returns 400 and no task is created. Max 100. See Share a report.
Maximum array length: 100
Example:
["anna@client.com", "@acme.com"]
share_notify
boolean
default:true
Email each person in share_with a link to the report. Domains are never emailed.
Response
Research task created and queued.
Response after creating a DeepResearch task.
deepresearch_id
string
required
Unique identifier for the research task.
Example:
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
status
enum<string>
required
Initial task status. "running" if started immediately, "queued" if waiting for capacity.
Available options:
running,
queued
Example:
"running"
mode
enum<string>
required
Research mode used for this task.
Available options:
fast,
standard,
heavy,
max
Example:
"standard"
created_at
string<date-time>
required
ISO 8601 timestamp of task creation.
Example:
"2024-06-15T10:30:00.000Z"
metadata
object
Metadata attached to the task.
public
boolean
Whether the task is publicly accessible.
Example:
false
webhook_secret
string
HMAC-SHA256 secret for verifying webhook payloads. Only present when webhook_url was provided.
message
string
Status message. Present when task is queued.
warnings
object[]
Problems with the request, for example named datasets outside your plan, a tool the mode doesn't have, a cover_art that cannot be used, or share_with_not_applied when sharing could not be applied after the task was created. The task still runs. Each entry is an object with type, message and an optional detail, not a string. New warning types may be added at any time. See Warnings.
Show child attributes
sharing
object
Who the report is shared with. Present when share_with was applied.
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Valyu","colors":{"primary":"#5E3454","light":"#C7E04A","dark":"#5E3454"},"logo":{"light":"https://mintcdn.com/valyu/XSNGAn-w-x47KJwH/logo/valyu-wordmark-light.svg?fit=max\u0026auto=format\u0026n=XSNGAn-w-x47KJwH\u0026q=85\u0026s=334dd47b5c8dd1f11877b78e19848e24","dark":"https://mintcdn.com/valyu/XSNGAn-w-x47KJwH/logo/valyu-wordmark-dark.svg?fit=max\u0026auto=format\u0026n=XSNGAn-w-x47KJwH\u0026q=85\u0026s=0c6b3fd58f6d88e020a0ed506dfc7752"},"favicon":"https://mintcdn.com/valyu/ji-tdRNtRRe7QxMv/favicon.ico?fit=max\u0026auto=format\u0026n=ji-tdRNtRRe7QxMv\u0026q=85\u0026s=fef49c51724555d91437907a324be0a3","appearance":{"default":"light"},"background":{"color":{"light":"#FFFFFF","dark":"#141118"}},"navbar":{"links":[{"icon":"wave-pulse","href":"https://status.valyu.ai","label":"API status"},{"href":"/integrations/onboard-agents","label":"Connect your agents"}],"primary":{"type":"button","label":"Get an API key","href":"https://platform.valyu.ai/user/account/apikeys"}},"footer":{"socials":{"discord":"https://discord.gg/umtmSsppRY","x":"https://x.com/ValyuOfficial","github":"https://github.com/valyuAI","linkedin":"https://linkedin.com/company/valyu-ai"},"links":[{"header":"Product","items":[{"label":"Platform","href":"https://platform.valyu.ai"},{"label":"Data sources","href":"https://platform.valyu.ai/data-sources"},{"label":"Pricing","href":"https://docs.valyu.ai/pricing"}]},{"header":"Developers","items":[{"label":"API status","href":"https://status.valyu.ai"},{"label":"OpenAPI spec","href":"https://docs.valyu.ai/api-reference/openapi.json"},{"label":"Cookbook","href":"https://github.com/valyuAI/cookbook"},{"label":"All guides","href":"/guides"}]},{"header":"Company","items":[{"label":"valyu.ai","href":"https://www.valyu.ai"},{"label":"Blog","href":"https://valyu.ai/blog"},{"label":"Contact","href":"mailto:contact@valyu.ai"}]}]},"seo":{"metatags":{"viewport":"width=device-width, initial-scale=1.0","description":"Search API and agents for knowledge work.","og:type":"website","og:site_name":"Valyu","twitter:card":"summary_large_image","twitter:site":"@ValyuOfficial","twitter:creator":"@ValyuOfficial","robots":"index, follow","googlebot":"index, follow","author":"Valyu"},"organization":{"name":"Valyu","url":"https://www.valyu.ai","sameAs":["https://x.com/ValyuOfficial","https://linkedin.com/company/valyu-ai","https://github.com/valyuAI"]},"indexing":"all"},"fonts":{"family":"Schibsted Grotesk","weight":400},"styling":{"eyebrows":"breadcrumbs","latex":false},"integrations":{"posthog":{"apiKey":"phc_5WQIKDC13UTOCbh5VHAxwaDNzGL8wdmHfXON0ErVDxM","apiHost":"https://eu.i.posthog.com","sessionRecording":true}},"contextual":{"options":["copy","view","assistant","chatgpt","claude","perplexity","mcp","add-mcp","cursor","vscode",{"title":"Open in Valyu","description":"Run this page as a query in Valyu DeepResearch","icon":"magnifying-glass","href":{"base":"https://platform.valyu.ai/playground/deepresearch","query":[{"key":"q","value":"$page"}]}},{"title":"Join our Discord","description":"Get help and discuss with the Valyu community","icon":"discord","href":"https://discord.gg/umtmSsppRY"}],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"valyu","hasAudioNarration":false,"actualSubdomain":"valyu","customDomains":["docs.valyu.ai"],"gitSource":{"type":"github","owner":"valyuai","repo":"valyu-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6b007f8457be3405ccaac208","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Documentation","count":89},{"language":"default","tag":"Build and connect","count":38},{"language":"default","tag":"API Reference","count":37},{"language":"default","tag":"DeepResearch","count":24},{"language":"default","tag":"Integrations","count":18},{"language":"default","tag":"SDKs","count":18},{"language":"default","tag":"APIs","count":16},{"language":"default","tag":"Start here","count":12},{"language":"default","tag":"Sciences workflows","count":10},{"language":"default","tag":"Finance workflows","count":10}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Source Serif 4';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/sourceserif4/v15/vEFI2_tTDB4M7-auWDN0ahZJW1gW8tenXg.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Source Serif 4';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/sourceserif4/v15/vEFI2_tTDB4M7-auWDN0ahZJW1gf8tenXg.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: 'Source Serif 4';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/sourceserif4/v15/vEFI2_tTDB4M7-auWDN0ahZJW1gY8tenXg.woff2) format('woff2');\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Source Serif 4';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/sourceserif4/v15/vEFI2_tTDB4M7-auWDN0ahZJW1gU8tenXg.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Source Serif 4';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/sourceserif4/v15/vEFI2_tTDB4M7-auWDN0ahZJW1gV8tenXg.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Source Serif 4';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/sourceserif4/v15/vEFI2_tTDB4M7-auWDN0ahZJW1gb8tc.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Source Serif 4';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/sourceserif4/v15/vEFI2_tTDB4M7-auWDN0ahZJW1gW8tenXg.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Source Serif 4';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/sourceserif4/v15/vEFI2_tTDB4M7-auWDN0ahZJW1gf8tenXg.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: 'Source Serif 4';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/sourceserif4/v15/vEFI2_tTDB4M7-auWDN0ahZJW1gY8tenXg.woff2) format('woff2');\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Source Serif 4';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/sourceserif4/v15/vEFI2_tTDB4M7-auWDN0ahZJW1gU8tenXg.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Source Serif 4';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/sourceserif4/v15/vEFI2_tTDB4M7-auWDN0ahZJW1gV8tenXg.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Source Serif 4';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/sourceserif4/v15/vEFI2_tTDB4M7-auWDN0ahZJW1gb8tc.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Spline Sans Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/splinesansmono/v13/R70BjzAei_CDNLfgZxrW6wrZOF2WX5yZmF2a.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Spline Sans Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/splinesansmono/v13/R70BjzAei_CDNLfgZxrW6wrZOF2WX5KZmA.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Spline Sans Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/splinesansmono/v13/R70BjzAei_CDNLfgZxrW6wrZOF2WX5yZmF2a.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Spline Sans Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/splinesansmono/v13/R70BjzAei_CDNLfgZxrW6wrZOF2WX5KZmA.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--vx-ink: #17141A;--vx-body: #54525C;--vx-muted: #8C8A93;--vx-line: #E7E5EA;--vx-surface: #FBFAFB;--vx-wash: #F4F1F5;--vx-plum: #5E3454;--vx-plum-soft: #7D4A6F;--vx-lilac: #CBB1C4;--vx-citron: #C7E04A;--vx-citron-ink: #2C3400;--vx-display: \"Helvetica Now Display\", \"Helvetica Neue\", Helvetica, \"Schibsted Grotesk\", Arial, sans-serif;--vx-serif: \"Source Serif 4\", Georgia, serif;--vx-mono: \"Spline Sans Mono\", ui-monospace, SFMono-Regular, Menlo, monospace}.dark{--vx-ink: #F3F0F5;--vx-body: #B9B4BF;--vx-muted: #8E8995;--vx-line: #2D2832;--vx-surface: #1B171F;--vx-wash: #1E1A22;--vx-plum: #CBB1C4;--vx-plum-soft: #E2D2DE;--vx-lilac: #6E5468}::selection{background:var(--vx-citron);color:var(--vx-citron-ink)}#page-title,#content-area :is(h1,h2,h3){font-family:var(--vx-display);font-weight:500;letter-spacing:-0.015em;color:var(--vx-ink)}#page-title{font-size:clamp(2rem, 3.4vw, 2.6rem);line-height:1.12;letter-spacing:-0.022em}#content-area h2{letter-spacing:-0.012em}#header .breadcrumb-item,.sidebar-group-header,.vx-label{font-family:var(--vx-mono);font-size:0.72rem!important;font-weight:400;letter-spacing:0.02em;text-transform:none}.sidebar-group-header{color:var(--vx-muted)!important}#content-area code:not(pre code){font-size:0.86em}.nav-tabs-item .bg-primary,.nav-tabs-item .dark\\:bg-primary-light{background:var(--vx-citron)!important}.nav-tabs-item:hover>[class*=\"group-hover\"]{background:var(--vx-plum-soft)!important}.callout,[class*=\"rounded-2xl\"]:not([class*=\"navbar-primary\"]):not([class*=\"pill\"]),[class*=\"rounded-xl\"]:not([class*=\"navbar-primary\"]):not([class*=\"pill\"]),[class*=\"rounded-lg\"]:not([class*=\"navbar-primary\"]):not([class*=\"pill\"]),[class*=\"rounded-md\"],[class*=\"rounded-sm\"],.nav-tabs-item,input[type=\"text\"],button:not([class*=\"pill\"]):not([class*=\"rounded-full\"]),pre,code{border-radius:0!important}[class*=\"navbar-primary\"] a,[class*=\"navbar-primary\"] button{border-radius:0!important}a[class*=\"rounded-full\"],button[class*=\"rounded-full\"]{border-radius:9999px!important}img.nav-logo{height:17px!important}#sidebar{border-right:1px solid var(--vx-line)}#sidebar-content{padding-right:1rem}#sidebar a[aria-current=\"page\"]{box-shadow:inset 2px 0 var(--vx-citron)}#header{position:relative;padding-bottom:1.25rem;border-bottom:1px solid var(--vx-line)}#header::after{content:\"\";position:absolute;bottom:-1px;left:0;width:40px;height:2px;background:var(--vx-citron)}#content-area .card{border-color:var(--vx-line);transition:border-color .15s ease, background-color .15s ease}#content-area .card:hover{border-color:var(--vx-plum-soft);background:var(--vx-surface)}#content-area table th{font-family:var(--vx-mono);font-size:0.72rem;font-weight:500;letter-spacing:0.02em;color:var(--vx-muted)}.vx-panel{position:relative;overflow:hidden;margin:1.75rem 0 2rem;padding:1.5rem;border:1px solid var(--vx-line);background:radial-gradient(120% 90% at 0% 0%, rgba(203, 177, 196, 0.28), transparent 60%),\n radial-gradient(90% 80% at 100% 100%, rgba(199, 224, 74, 0.2), transparent 62%),\n var(--vx-surface)}.dark .vx-panel{background:radial-gradient(120% 90% at 0% 0%, rgba(126, 84, 115, 0.22), transparent 60%),\n radial-gradient(90% 80% at 100% 100%, rgba(199, 224, 74, 0.07), transparent 62%),\n var(--vx-surface)}.vx-query{display:flex;align-items:center;gap:0.75rem;padding:0.85rem 1rem;border:1px solid var(--vx-line);background:rgba(255, 255, 255, 0.72);font-family:var(--vx-serif);font-size:1.05rem;color:var(--vx-ink)}.dark .vx-query{background:rgba(20, 17, 24, 0.6)}.vx-query .vx-ico{flex:0 0 18px;width:18px;height:18px;color:var(--vx-muted)}.vx-flow{display:grid;grid-template-columns:minmax(0, 1fr) 44px 112px 44px minmax(0, 1.08fr);height:288px;margin-top:1.25rem}.vx-stack{display:grid;gap:8px;min-width:0}.vx-sources{grid-template-rows:18px repeat(4, minmax(0, 1fr))}.vx-outputs{grid-template-rows:repeat(2, minmax(0, 1fr));gap:12px}.vx-stack>.vx-label{align-self:end;line-height:1;color:var(--vx-muted)}.vx-source{display:flex;min-width:0;align-items:center;gap:0.7rem;padding:0.6rem 0.75rem;border:1px solid var(--vx-line);background:#fff}.dark .vx-source,.dark .vx-output{background:#17141B}.vx-source .vx-ico{flex:0 0 18px;width:18px;height:18px;color:var(--vx-plum)}.vx-source b{display:block;font-size:0.84rem;font-weight:500;line-height:1.3;color:var(--vx-ink)}.vx-source div span{display:block;font-family:var(--vx-mono);font-size:0.66rem;line-height:1.4;color:var(--vx-muted)}.vx-wires{position:relative;display:block;width:100%;height:100%}.vx-wires::before,.vx-wires::after{content:\"\";position:absolute;inset:0}.vx-wires::before{background-color:var(--vx-lilac);-webkit-mask:var(--vx-wire-base) 0 0 / 100% 100% no-repeat;mask:var(--vx-wire-base) 0 0 / 100% 100% no-repeat}.vx-wires::after{background:var(--vx-wire-live) 0 0 / 100% 100% no-repeat}.vx-node{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:center;gap:0.55rem;width:112px;height:112px;background:#17141A;color:#fff;box-shadow:0 18px 40px -22px rgba(23, 20, 26, 0.55)}.vx-node::after{content:\"\";position:absolute;top:10px;right:10px;width:5px;height:5px;background:var(--vx-citron)}.vx-node .vx-ico{width:34px;height:34px}.vx-node span:not(.vx-ico){font-family:var(--vx-serif);font-size:1.15rem;line-height:1}.dark .vx-node{background:#000;outline:1px solid var(--vx-line)}.vx-output{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:1rem 1.1rem;border:1px solid var(--vx-line);background:#fff;color:inherit;text-decoration:none!important;border-bottom-width:1px!important;border-bottom-color:var(--vx-line)!important;transition:border-color .15s ease}.vx-output:hover{border-color:var(--vx-plum-soft)!important}.vx-output .vx-label{color:var(--vx-muted)}.vx-output b{display:block;margin:0.3rem 0 0.25rem;font-family:var(--vx-serif);font-size:1.35rem;font-weight:400;line-height:1.15;color:var(--vx-plum)}.vx-output p{margin:0;font-size:0.86rem;line-height:1.5;color:var(--vx-body)}.prose td{font-variant-numeric:normal}.vx-cr{white-space:nowrap}.vx-cr::before{content:\"\";display:inline-block;width:1em;height:1em;margin-right:0.3em;vertical-align:-0.15em;background-color:var(--vx-plum);-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M240,132c0,19.88-35.82,36-80,36-19.6,0-37.56-3.17-51.47-8.44h0C146.76,156.85,176,142,176,124V96.72h0C212.52,100.06,240,114.58,240,132ZM176,84c0-19.88-35.82-36-80-36S16,64.12,16,84s35.82,36,80,36S176,103.88,176,84Z' opacity='0.2'/%3E%3Cpath d='M184,89.57V84c0-25.08-37.83-44-88-44S8,58.92,8,84v40c0,20.89,26.25,37.49,64,42.46V172c0,25.08,37.83,44,88,44s88-18.92,88-44V132C248,111.3,222.58,94.68,184,89.57ZM232,132c0,13.22-30.79,28-72,28-3.73,0-7.43-.13-11.08-.37C170.49,151.77,184,139,184,124V105.74C213.87,110.19,232,122.27,232,132ZM72,150.25V126.46A183.74,183.74,0,0,0,96,128a183.74,183.74,0,0,0,24-1.54v23.79A163,163,0,0,1,96,152,163,163,0,0,1,72,150.25Zm96-40.32V124c0,8.39-12.41,17.4-32,22.87V123.5C148.91,120.37,159.84,115.71,168,109.93ZM96,56c41.21,0,72,14.78,72,28s-30.79,28-72,28S24,97.22,24,84,54.79,56,96,56ZM24,124V109.93c8.16,5.78,19.09,10.44,32,13.57v23.37C36.41,141.4,24,132.39,24,124Zm64,48v-4.17c2.63.1,5.29.17,8,.17,3.88,0,7.67-.13,11.39-.35A121.92,121.92,0,0,0,120,171.41v23.46C100.41,189.4,88,180.39,88,172Zm48,26.25V174.4a179.48,179.48,0,0,0,24,1.6,183.74,183.74,0,0,0,24-1.54v23.79a165.45,165.45,0,0,1-48,0Zm64-3.38V171.5c12.91-3.13,23.84-7.79,32-13.57V172C232,180.39,219.59,189.4,200,194.87Z'/%3E%3C/svg%3E\") center / contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M240,132c0,19.88-35.82,36-80,36-19.6,0-37.56-3.17-51.47-8.44h0C146.76,156.85,176,142,176,124V96.72h0C212.52,100.06,240,114.58,240,132ZM176,84c0-19.88-35.82-36-80-36S16,64.12,16,84s35.82,36,80,36S176,103.88,176,84Z' opacity='0.2'/%3E%3Cpath d='M184,89.57V84c0-25.08-37.83-44-88-44S8,58.92,8,84v40c0,20.89,26.25,37.49,64,42.46V172c0,25.08,37.83,44,88,44s88-18.92,88-44V132C248,111.3,222.58,94.68,184,89.57ZM232,132c0,13.22-30.79,28-72,28-3.73,0-7.43-.13-11.08-.37C170.49,151.77,184,139,184,124V105.74C213.87,110.19,232,122.27,232,132ZM72,150.25V126.46A183.74,183.74,0,0,0,96,128a183.74,183.74,0,0,0,24-1.54v23.79A163,163,0,0,1,96,152,163,163,0,0,1,72,150.25Zm96-40.32V124c0,8.39-12.41,17.4-32,22.87V123.5C148.91,120.37,159.84,115.71,168,109.93ZM96,56c41.21,0,72,14.78,72,28s-30.79,28-72,28S24,97.22,24,84,54.79,56,96,56ZM24,124V109.93c8.16,5.78,19.09,10.44,32,13.57v23.37C36.41,141.4,24,132.39,24,124Zm64,48v-4.17c2.63.1,5.29.17,8,.17,3.88,0,7.67-.13,11.39-.35A121.92,121.92,0,0,0,120,171.41v23.46C100.41,189.4,88,180.39,88,172Zm48,26.25V174.4a179.48,179.48,0,0,0,24,1.6,183.74,183.74,0,0,0,24-1.54v23.79a165.45,165.45,0,0,1-48,0Zm64-3.38V171.5c12.91-3.13,23.84-7.79,32-13.57V172C232,180.39,219.59,189.4,200,194.87Z'/%3E%3C/svg%3E\") center / contain no-repeat}.vx-stat-row{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:1px;background:var(--vx-line);border:1px solid var(--vx-line);margin:1.5rem 0 2rem}.vx-stat{padding:1rem 1.1rem;background:#fff}.dark .vx-stat{background:#141118}.vx-stat .vx-label{display:block;color:var(--vx-muted)}.vx-stat b{display:block;margin-top:0.35rem;font-family:var(--vx-display);font-size:1.6rem;font-weight:500;letter-spacing:-0.02em;line-height:1.1;color:var(--vx-ink);font-variant-numeric:tabular-nums}.vx-stat b.vx-cr::before{width:0.8em;height:0.8em;margin-right:0.2em;vertical-align:-0.06em}.vx-stat span:not(.vx-label){display:block;margin-top:0.3rem;font-size:0.8rem;color:var(--vx-body)}.vx-mark{background:var(--vx-citron);color:var(--vx-citron-ink);padding:0 0.12em;box-decoration-break:clone;-webkit-box-decoration-break:clone}.vx-plans{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:1px;background:var(--vx-line);border:1px solid var(--vx-line);margin:1.5rem 0 1rem}.vx-plan{position:relative;display:flex;flex-direction:column;padding:1.25rem 1.35rem;background:#fff}.dark .vx-plan{background:#141118}.vx-plan .vx-label{color:var(--vx-muted)}.vx-plan .vx-plan-name{margin:0.45rem 0 0;font-family:var(--vx-serif);font-size:1.3rem;line-height:1.2;color:var(--vx-plum)}.vx-plan .vx-price{margin:0.85rem 0 0.15rem;font-family:var(--vx-display);font-size:2rem;font-weight:500;letter-spacing:-0.025em;line-height:1;color:var(--vx-ink);font-variant-numeric:tabular-nums}.vx-plan .vx-price-unit{font-family:inherit;font-size:0.8rem;font-weight:400;letter-spacing:0;color:var(--vx-muted)}.vx-plan .vx-includes{margin:0.5rem 0 0.9rem;font-size:0.86rem;color:var(--vx-body)}.vx-plan .vx-includes b{color:var(--vx-ink);font-weight:500}.vx-plan ul{margin:auto 0 0;padding:0.85rem 0 0;border-top:1px solid var(--vx-line);list-style:none}.vx-plan li{position:relative;margin:0 0 0.35rem;padding-left:1rem;font-size:0.8rem;line-height:1.45;color:var(--vx-body)}.vx-plan li::before{content:\"\";position:absolute;left:0;top:0.5em;width:5px;height:5px;background:var(--vx-lilac)}.vx-plans .vx-plan-featured{background:var(--vx-surface);box-shadow:inset 0 2px 0 var(--vx-citron)}.vx-badge{display:inline-block;margin-left:0.4rem;padding:0.05rem 0.35rem;background:var(--vx-citron);color:var(--vx-citron-ink);font-family:var(--vx-mono);font-size:0.62rem;letter-spacing:0.02em;vertical-align:0.15em}.vx-wf-grid{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:1px;background:var(--vx-line);border:1px solid var(--vx-line);margin:1.25rem 0 2.25rem}.vx-wf{display:flex;flex-direction:column;padding:1.1rem 1.25rem 1.15rem;background:#fff;text-decoration:none;transition:background-color .15s ease}.dark .vx-wf{background:#141118}.vx-wf:hover{background:var(--vx-surface)}.vx-wf:last-child:nth-child(odd){grid-column:1 / -1}.vx-wf .vx-label{color:var(--vx-muted)}.vx-wf b{margin-top:0.4rem;font-family:var(--vx-serif);font-size:1.15rem;font-weight:400;line-height:1.25;color:var(--vx-plum)}.vx-wf b::after{content:\"→\";display:inline-block;margin-left:0.35em;font-family:var(--vx-display);font-size:0.9em;transition:transform .15s ease}.vx-wf:hover b::after{transform:translateX(3px)}.vx-wf-desc{margin-top:0.35rem;font-size:0.84rem;line-height:1.5;color:var(--vx-body)}.vx-wf-ex{margin-top:auto;padding-top:0.8rem;font-family:var(--vx-mono);font-size:0.68rem;letter-spacing:0.01em;color:var(--vx-muted)}.vx-wf-ex:not(.vx-wf-meta)::before{content:\"e.g. \"}.vx-reports{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:1px;background:var(--vx-line);border:1px solid var(--vx-line);margin:1.25rem 0 2.25rem}.vx-report{display:flex;flex-direction:column;padding:1.15rem 1.25rem 1.1rem;background:#fff}.dark .vx-report{background:#141118}.vx-report:last-child:nth-child(odd){grid-column:1 / -1}.vx-report .vx-label{color:var(--vx-muted)}.vx-report h3{margin:0.4rem 0 0!important;font-family:var(--vx-serif)!important;font-size:1.15rem!important;font-weight:400!important;letter-spacing:0!important;line-height:1.25;color:var(--vx-plum)!important}.vx-report p{margin:0.4rem 0 0;font-size:0.84rem;line-height:1.5;color:var(--vx-body)}.vx-report-meta{display:flex;flex-wrap:wrap;gap:0.35rem;margin-top:0.75rem}.vx-report-meta span{padding:0.1rem 0.4rem;border:1px solid var(--vx-line);font-family:var(--vx-mono);font-size:0.66rem;color:var(--vx-body)}.vx-report-meta .vx-mode{background:var(--vx-citron);border-color:var(--vx-citron);color:var(--vx-citron-ink)}.vx-report-links{display:flex;flex-wrap:wrap;gap:0.9rem;margin-top:auto;padding-top:0.9rem;font-size:0.8rem}.vx-report-links a{color:var(--vx-plum);font-weight:500;text-decoration:none;border-bottom:1px solid var(--vx-lilac)}.vx-report-links a:hover{border-bottom-color:var(--vx-plum)}.vx-report-links a:first-child::after{content:\" →\"}@media (max-width: 640px){.vx-plans,.vx-stat-row,.vx-wf-grid,.vx-reports{grid-template-columns:1fr}}@media (max-width: 900px){.vx-flow{grid-template-columns:1fr;gap:1rem;height:auto}.vx-sources,.vx-outputs{grid-template-rows:none}.vx-wires{display:none}.vx-node{width:100%;height:auto;flex-direction:row;padding:0.9rem}.vx-node .vx-ico{width:22px;height:22px}}@media (prefers-reduced-motion: reduce){.vx-wires::after{background-image:var(--vx-wire-still)}#content-area .card,.vx-output,.vx-wf,.vx-wf b::after{transition:none}}:is(nav[aria-label=\"Main\"],.navbar-link) a[href=\"/integrations/onboard-agents\"]::after{content:\"\";width:63px;height:18px;flex-shrink:0;margin-left:3px;background:url('/icons/agent-marks-light.svg') center / contain no-repeat}.dark :is(nav[aria-label=\"Main\"],.navbar-link) a[href=\"/integrations/onboard-agents\"]::after{background-image:url('/icons/agent-marks-dark.svg')}:is(nav[aria-label=\"Main\"],.navbar-link) a:focus-visible{outline:2px solid var(--vx-plum-soft);outline-offset:5px}#content-area a:focus-visible{outline:2px solid var(--vx-plum-soft);outline-offset:3px}.agent-deeplinks{display:flex;flex-wrap:wrap;gap:0.5rem;margin:1.25rem 0 1.5rem}.agent-deeplink{display:inline-flex;align-items:center;gap:0.5rem;padding:0.8rem 1.15rem;border:1px solid rgba(60, 31, 53, 0.16);background:#fff;font-size:0.9375rem;font-weight:600;color:#17141A;text-decoration:none;white-space:nowrap;cursor:pointer;transition:border-color 0.15s ease, background 0.15s ease, transform 0.15s ease,\n box-shadow 0.15s ease}.agent-deeplink:hover{border-color:#9A6E8F;background:rgba(154, 110, 143, 0.05);color:#17141A;text-decoration:none;transform:translateY(-1px);box-shadow:0 6px 16px -8px rgba(23, 20, 26, 0.28)}.agent-mark{display:block;width:22px;height:22px;flex-shrink:0;background-color:#D97757;-webkit-mask:var(--vx-ico-src) center / contain no-repeat;mask:var(--vx-ico-src) center / contain no-repeat}.agent-mark-mono{background-color:#000}.agent-arrow{font-size:0.8125rem;opacity:0.35;transition:opacity 0.15s ease, transform 0.15s ease}.agent-deeplink:hover .agent-arrow{opacity:0.85;transform:translate(1px, -1px)}.agent-deeplink-plain{border-style:dashed;font-weight:500;color:#6b6570}.dark .agent-deeplink{border-color:rgba(255, 255, 255, 0.14);background:rgba(255, 255, 255, 0.03);color:#E6DCE3}.dark .agent-deeplink:hover{border-color:#CBB1C4;background:rgba(203, 177, 196, 0.1);color:#fff}.dark .agent-mark-mono{background-color:#fff}.dark img[src$=\"/icons/mcp.svg\"]{filter:invert(1)}.dark .agent-deeplink-plain{color:#A9A2AE}.dark #sidebar-content img[src$=\".png\"]{filter:invert(1)}.docs-sidebar-cta{--cta-background: #2A1524;--cta-border: rgba(255, 255, 255, 0.14);--cta-text: #FFFFFF;--cta-muted: #D8C6D3;margin-top:24px!important;padding:20px;border:1px solid var(--cta-border);border-radius:12px;background:var(--cta-background);color:var(--cta-text);font-size:14px;line-height:1.5}.docs-sidebar-cta-logo{display:block;width:100px;height:auto;margin-bottom:20px}.docs-sidebar-cta-title{margin:0 0 8px;color:var(--cta-text);font-size:20px;font-weight:600;letter-spacing:-0.4px;line-height:1.3}.docs-sidebar-cta-description,.docs-sidebar-cta-credits{margin:0 0 16px;color:var(--cta-muted)}.docs-sidebar-cta-primary,.docs-sidebar-cta-secondary{display:flex;align-items:center;justify-content:center;position:relative;min-height:44px;padding:10px 32px;border:1px solid transparent;border-radius:6px;font-weight:600;line-height:1.5;text-decoration:none;transition:background-color 150ms, border-color 150ms}.docs-sidebar-cta-primary{background:#C7E04A;color:#2C3400}.docs-sidebar-cta-primary:hover{background:#D6EC73;color:#2C3400}.docs-sidebar-cta-secondary{margin-top:8px;border-color:var(--cta-border);background:transparent;color:var(--cta-text);font-weight:500}.docs-sidebar-cta-secondary:hover{border-color:rgba(255, 255, 255, 0.4);background:#3C1F35;color:var(--cta-text)}.docs-sidebar-cta-primary span,.docs-sidebar-cta-secondary span{position:absolute;right:14px;font-size:16px}.docs-sidebar-cta a:focus-visible{outline:2px solid #C7E04A;outline-offset:3px}.docs-sidebar-cta-note{margin:12px 0 0;color:var(--cta-muted);font-size:12px;text-align:center}@media (prefers-reduced-motion: reduce){.docs-sidebar-cta a{transition:none}}#footer>div{padding-top:2.5rem!important;padding-bottom:1.75rem!important;gap:1.75rem!important}#footer .flex-col.gap-4{gap:0.6rem!important}.vx-report .vx-report-finding{margin-top:0.7rem;padding:0.55rem 0.7rem;background:var(--vx-wash);font-size:0.8rem;color:var(--vx-ink)}.vx-report .vx-report-finding .vx-label{display:block;margin-bottom:0.15rem}.vx-report .vx-report-note{margin-top:0.5rem;font-size:0.74rem;color:var(--vx-muted)}.vx-ico{display:block;background-color:currentColor;-webkit-mask:var(--vx-ico-src) center / contain no-repeat;mask:var(--vx-ico-src) center / contain no-repeat}.vx-ico-search{--vx-ico-src: url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.6%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M18 11a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z%22 /%3E%3Cpath d=%22m20 20-3.5-3.5%22 /%3E%3C/svg%3E\")}.vx-ico-globe{--vx-ico-src: url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22%3E%3Cpath d=%22M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z%22 /%3E%3Cpath d=%22M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3Z%22 /%3E%3C/svg%3E\")}.vx-ico-file{--vx-ico-src: url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22%3E%3Cpath d=%22M7 3h7l4 4v14H7z%22 /%3E%3Cpath d=%22M14 3v4h4M10 12h5M10 16h5%22 /%3E%3C/svg%3E\")}.vx-ico-book{--vx-ico-src: url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22%3E%3Cpath d=%22M4 5.5C6.5 4.5 9.5 4.5 12 6c2.5-1.5 5.5-1.5 8-.5V19c-2.5-1-5.5-1-8 .5-2.5-1.5-5.5-1.5-8-.5z%22 /%3E%3Cpath d=%22M12 6v13.5%22 /%3E%3C/svg%3E\")}.vx-ico-flask{--vx-ico-src: url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22%3E%3Cpath d=%22M9 3h6M10 3v6l-5 9a2 2 0 0 0 1.8 3h10.4a2 2 0 0 0 1.8-3l-5-9V3%22 /%3E%3Cpath d=%22M7.5 15h9%22 /%3E%3C/svg%3E\")}.vx-ico-valyu{--vx-ico-src: url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linejoin=%22miter%22%3E%3Cpath d=%22M3.5 4.5h17L12 20z%22 /%3E%3C/svg%3E\")}.vx-wires-in{--vx-wire-base: url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22 preserveAspectRatio=%22none%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221%22%3E%3Cpath vector-effect=%22non-scaling-stroke%22 d=%22M0 19.4 C55 19.4 45 50 100 50%22 /%3E%3Cpath vector-effect=%22non-scaling-stroke%22 d=%22M0 66.2 C55 66.2 45 50 100 50%22 /%3E%3C/svg%3E\");--vx-wire-live: url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22 preserveAspectRatio=%22none%22 fill=%22none%22%3E%3Cpath vector-effect=%22non-scaling-stroke%22 stroke=%22%23C7E04A%22 stroke-width=%221.5%22 stroke-dasharray=%224 8%22 d=%22M0 42.8 C55 42.8 45 50 100 50%22 /%3E%3Cpath vector-effect=%22non-scaling-stroke%22 stroke=%22%23C7E04A%22 stroke-width=%221.5%22 stroke-dasharray=%224 8%22 d=%22M0 89.6 C55 89.6 45 50 100 50%22 /%3E%3Cstyle%3Epath%7Banimation:d 1.6s linear infinite%7D%40keyframes d%7Bto%7Bstroke-dashoffset:-24%7D%7D%3C/style%3E%3C/svg%3E\");--vx-wire-still: url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22 preserveAspectRatio=%22none%22 fill=%22none%22%3E%3Cpath vector-effect=%22non-scaling-stroke%22 stroke=%22%23C7E04A%22 stroke-width=%221.5%22 stroke-dasharray=%224 8%22 d=%22M0 42.8 C55 42.8 45 50 100 50%22 /%3E%3Cpath vector-effect=%22non-scaling-stroke%22 stroke=%22%23C7E04A%22 stroke-width=%221.5%22 stroke-dasharray=%224 8%22 d=%22M0 89.6 C55 89.6 45 50 100 50%22 /%3E%3C/svg%3E\")}.vx-wires-out{--vx-wire-base: url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22 preserveAspectRatio=%22none%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221%22%3E%3Cpath vector-effect=%22non-scaling-stroke%22 d=%22M0 50 C45 50 55 76 100 76%22 /%3E%3C/svg%3E\");--vx-wire-live: url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22 preserveAspectRatio=%22none%22 fill=%22none%22%3E%3Cpath vector-effect=%22non-scaling-stroke%22 stroke=%22%23C7E04A%22 stroke-width=%221.5%22 stroke-dasharray=%224 8%22 d=%22M0 50 C45 50 55 24 100 24%22 /%3E%3Cstyle%3Epath%7Banimation:d 1.6s linear infinite%7D%40keyframes d%7Bto%7Bstroke-dashoffset:-24%7D%7D%3C/style%3E%3C/svg%3E\");--vx-wire-still: url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22 preserveAspectRatio=%22none%22 fill=%22none%22%3E%3Cpath vector-effect=%22non-scaling-stroke%22 stroke=%22%23C7E04A%22 stroke-width=%221.5%22 stroke-dasharray=%224 8%22 d=%22M0 50 C45 50 55 24 100 24%22 /%3E%3C/svg%3E\")}.agent-mark-claude{--vx-ico-src: url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22%23000%22%3E%3Cpath d=%22m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z%22 /%3E%3C/svg%3E\")}.agent-mark-codex{--vx-ico-src: url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22%23000%22%3E%3Cpath d=%22M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z%22 /%3E%3C/svg%3E\")}.agent-mark-cursor{--vx-ico-src: url(\"data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22%23000%22%3E%3Cpath d=%22M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23%22 /%3E%3C/svg%3E\")}"}]}
{"page":{"pagePath":"api-reference/endpoint/deepresearch-create","slug":"/api-reference/endpoint/deepresearch-create","pageMetadata":{"title":"Create Task","description":"POST /v1/deepresearch/tasks reference: create a DeepResearch task with a mode from instant to max, output format, deliverables, sources, tools and webhooks.","og:title":"Create a DeepResearch task - POST /v1/deepresearch/tasks | Valyu","og:description":"POST /v1/deepresearch/tasks reference: create a DeepResearch task with a mode from instant to max, output format, deliverables, sources, tools and webhooks.","twitter:title":"Create a DeepResearch task - POST /v1/deepresearch/tasks | Valyu","twitter:description":"POST /v1/deepresearch/tasks reference: create a DeepResearch task with a mode from instant to max, output format, deliverables, sources, tools and webhooks.","keywords":"DeepResearch API, POST /v1/deepresearch/tasks, create research task, deep research API reference, research modes, deliverables","openapi":"POST /v1/deepresearch/tasks","href":"/api-reference/endpoint/deepresearch-create"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"POST /v1/deepresearch/tasks reference: create a DeepResearch task with a mode from instant to max, output format, deliverables, sources, tools and webhooks.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,Table,Visibility}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Visibility)_missingMdxReference(`Visibility`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Run a multi-step investigation and receive a cited report. Provide a focused question, the intended audience and the evidence or comparisons the report needs to cover.`}),`\n`,_jsx(Visibility,{for:`agents`,children:_jsxs(_components.p,{children:[`Agent note: for research, reports or any question that needs more than one search, use DeepResearch (`,_jsx(_components.code,{children:`POST /v1/deepresearch/tasks`}),`) instead of writing your own loop of Search calls. Pick a `,_jsx(_components.code,{children:`mode`}),`: `,_jsx(_components.code,{children:`instant`}),` returns a short cited answer in under 30 seconds; `,_jsx(_components.code,{children:`fast`}),`, `,_jsx(_components.code,{children:`standard`}),`, `,_jsx(_components.code,{children:`heavy`}),` and `,_jsx(_components.code,{children:`max`}),` run longer investigations that return cited reports and files. Use Search when your own model needs raw results to reason over. Docs index: `,_jsx(_components.a,{href:`https://docs.valyu.ai/llms.txt`,children:`/llms.txt`}),`. Append `,_jsx(_components.code,{children:`.md`}),` to any page URL for Markdown. Docs MCP server: `,_jsx(_components.code,{children:`https://docs.valyu.ai/mcp`}),`. Integration guide for coding agents: `,_jsx(_components.a,{href:`https://docs.valyu.ai/AGENTS.md`,children:`/AGENTS.md`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`start-store-and-retrieve`,children:`Start, store and retrieve`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Create a task and store its `,_jsx(_components.code,{children:`deepresearch_id`}),` in your application.`]}),`\n`,_jsxs(_components.li,{children:[`Poll `,_jsx(_components.a,{href:`/api-reference/endpoint/deepresearch-status`,children:`Get status`}),`, or configure a completion webhook.`]}),`\n`,_jsxs(_components.li,{children:[`When `,_jsx(_components.code,{children:`status`}),` is `,_jsx(_components.code,{children:`completed`}),`, read `,_jsx(_components.code,{children:`output`}),`, `,_jsx(_components.code,{children:`sources`}),` and any requested `,_jsx(_components.code,{children:`deliverables`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Handle `,_jsx(_components.code,{children:`failed`}),` and `,_jsx(_components.code,{children:`cancelled`}),` separately from successful completion. If checkpoints are enabled, handle `,_jsx(_components.code,{children:`awaiting_input`}),` and `,_jsx(_components.code,{children:`paused`}),` too.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The response can carry `,_jsx(_components.a,{href:`/api-reference/warnings`,children:`warnings`}),` about the request, for example named datasets outside your plan, a tool the chosen mode doesn’t have, or a `,_jsx(_components.code,{children:`cover_art`}),` or brand kit file that cannot be used. The task still runs. Each warning is an object with `,_jsx(_components.code,{children:`type`}),`, `,_jsx(_components.code,{children:`message`}),` and an optional `,_jsx(_components.code,{children:`detail`}),`, not a string. Relay each `,_jsx(_components.code,{children:`message`}),` to your user.`]}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`research_strategy`}),` to guide investigation and `,_jsx(_components.code,{children:`report_format`}),` to describe presentation. Choose `,_jsx(_components.code,{children:`output_formats`}),` for machine-readable output, or request `,_jsx(_components.code,{children:`deliverables`}),` for files. A `,_jsx(_components.code,{children:`json`}),` deliverable takes an optional JSON Schema in `,_jsx(_components.code,{children:`schema`}),`. It is separate from `,_jsx(_components.code,{children:`output_formats`}),`. See `,_jsx(_components.a,{href:`/guides/deepresearch#deliverables`,children:`deliverables`}),`. Report instructions express the requested result; validate the returned output before inserting it into a downstream workflow.`]}),`\n`,_jsxs(_components.p,{children:[`For repeatable tasks, run a `,_jsx(_components.a,{href:`/guides/workflows`,children:`Workflow`}),` with `,_jsx(_components.code,{children:`workflow_id`}),` and `,_jsx(_components.code,{children:`workflow_params`}),` instead of freeform query fields.`]}),`\n`,_jsx(Heading,{level:`2`,id:`modes-and-billing`,children:`Modes and billing`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Mode`}),_jsx(_components.th,{children:`Credits per task`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`instant`})}),_jsx(_components.td,{children:_jsx(`span`,{className:`vx-cr`,children:`8`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fast`})}),_jsx(_components.td,{children:_jsx(`span`,{className:`vx-cr`,children:`25`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`standard`})}),_jsx(_components.td,{children:_jsx(`span`,{className:`vx-cr`,children:`100`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`heavy`})}),_jsx(_components.td,{children:_jsx(`span`,{className:`vx-cr`,children:`500`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`max`})}),_jsx(_components.td,{children:_jsx(`span`,{className:`vx-cr`,children:`2,500`})})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Tool add-ons (screenshots, code execution, browser use, extra deliverables) are charged on top: Excel, PowerPoint and Word files are `,_jsx(`span`,{className:`vx-cr`,children:`55`}),` credits each. HTML files are `,_jsx(`span`,{className:`vx-cr`,children:`100`}),` credits each. Neither has an included file. For CSV and JSON, one file per task is included (they share it), then `,_jsx(`span`,{className:`vx-cr`,children:`15`}),` credits for each extra file. PDF files are always included and never charged. See `,_jsx(_components.a,{href:`/pricing`,children:`pricing`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`When you create a task, its mode price is held against your balance until the task is charged. If your balance, minus amounts held for your other queued and running tasks, can’t cover it, the request returns `,_jsx(_components.code,{children:`402`}),` with an `,_jsx(_components.code,{children:`Insufficient credits`}),` error and no task is created. A `,_jsx(_components.code,{children:`503`}),` with `,_jsx(_components.code,{children:`Billing temporarily unavailable`}),` means billing couldn’t be checked; no task was created, so retry with backoff.`]}),`\n`,_jsxs(_components.p,{children:[`Failed tasks are free. Cancelling a `,_jsx(_components.code,{children:`running`}),` or `,_jsx(_components.code,{children:`awaiting_input`}),` task charges the full mode price; cancelling a `,_jsx(_components.code,{children:`queued`}),` or `,_jsx(_components.code,{children:`paused`}),` task is free.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Task","description":"POST /v1/deepresearch/tasks reference: create a DeepResearch task with a mode from instant to max, output format, deliverables, sources, tools and webhooks.","og:title":"Create a DeepResearch task - POST /v1/deepresearch/tasks | Valyu","og:description":"POST /v1/deepresearch/tasks reference: create a DeepResearch task with a mode from instant to max, output format, deliverables, sources, tools and webhooks.","twitter:title":"Create a DeepResearch task - POST /v1/deepresearch/tasks | Valyu","twitter:description":"POST /v1/deepresearch/tasks reference: create a DeepResearch task with a mode from instant to max, output format, deliverables, sources, tools and webhooks.","keywords":"DeepResearch API, POST /v1/deepresearch/tasks, create research task, deep research API reference, research modes, deliverables","openapi":"POST /v1/deepresearch/tasks","href":"/api-reference/endpoint/deepresearch-create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Start, store and retrieve","slug":"start-store-and-retrieve","depth":2,"children":[]},{"title":"Modes and billing","slug":"modes-and-billing","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/valyu/10e5b40d4d63eeec/custom.js","/_mintlify/custom/valyu/de07148e46689f3a/cta-attribution.js"],"openApiReferenceData":{"operation":{"operationId":"createDeepResearch","summary":"Create a DeepResearch task","description":"POST /v1/deepresearch/tasks reference: create a DeepResearch task with a mode from instant to max, output format, deliverables, sources, tools and webhooks.","tags":["DeepResearch"],"requestBody":"6e6453c1-d43c-4454-86cc-220fcf57a190","responses":{"202":"03548a10-64cc-4e80-aff5-cf65b13a6b74","400":"b0351963-94cc-495d-a4ab-834b2ee2afcc","401":"a2085639-0fd1-4776-ab7e-367bf84bb061","402":"fb3d40d4-b9e3-447b-9362-1c801550ffc4","403":"57863eba-66b7-48b8-a2eb-9e3b810edb18","429":"35bace8d-0272-4392-8cf5-4b6a9b980a1a","500":"fdbd6d39-9900-402c-8f0c-fd37e42bf2bf","503":"f319284e-2a68-4d39-912f-4126489f96bd"},"method":"post","type":"path","servers":["5c79bd7d-3d0c-4d75-84fd-9ae5ec5a00cb"],"security":["84b82f72-aa5c-41a5-b5cd-ff37871d5319"],"path":"/v1/deepresearch/tasks","baseUrlOptions":["https://api.valyu.ai"],"title":"Create a DeepResearch task","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Request to create a DeepResearch task.\n\nA task can be either **freeform** (provide `query`/`input` plus optional `research_strategy`, `report_format`, etc.) or **workflow-driven** (provide `workflow_id` + `workflow_params`). The two modes are mutually exclusive: passing `workflow_id` alongside freeform fields (`query`, `input`, `research_strategy`, `report_format`) returns `400 workflow_and_freeform_mutually_exclusive`. When running a workflow, any `mode`/`deliverables`/`tools` you pass in the body override the template defaults.","required":["query"],"properties":{"query":{"type":"string","description":"The research query or question. Use `query` (preferred) or `input` (deprecated). Maximum 25,000 characters. Mutually exclusive with `workflow_id`.","maxLength":25000,"example":"Comprehensive analysis of CRISPR gene therapy clinical trials in 2024","isRequired":true,"uniqueKey":"oneOf.0.query","typeLabel":"string"},"input":{"type":"string","deprecated":true,"description":"**Deprecated.** Use `query` instead.","uniqueKey":"oneOf.0.input","typeLabel":"string"},"workflow_id":{"type":"string","description":"**Beta.** Slug of a workflow to run instead of a freeform query. When set, the task is resolved from the workflow's prompt template using `workflow_params`. Mutually exclusive with freeform fields (`query`, `input`, `research_strategy`, `report_format`); supplying both returns `400 workflow_and_freeform_mutually_exclusive`. See the [Workflows](#tag/Workflows) endpoints.","example":"ib-company-profile","uniqueKey":"oneOf.0.workflow_id","typeLabel":"string"},"workflow_params":{"type":"object","description":"**Beta.** Values for the workflow's template variables, keyed by variable `key`. Required when `workflow_id` is set. Values must satisfy the workflow's declared variable types and validation rules.","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.workflow_params.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"oneOf.0.workflow_params.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"oneOf.0.workflow_params.additionalProperties.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"oneOf.0.workflow_params.additionalProperties","typeLabel":"string | number | boolean"},"example":{"company":"NVIDIA (NVDA)"},"uniqueKey":"oneOf.0.workflow_params","typeLabel":"object"},"workflow_version":{"type":"integer","description":"**Beta.** Pin the run to a specific immutable version of the workflow. Defaults to the workflow's current version when omitted. Only valid with `workflow_id`.","minimum":1,"example":1,"uniqueKey":"oneOf.0.workflow_version","typeLabel":"integer"},"mode":{"type":"string","description":"Research mode controlling depth and cost. Prices are credits per task; tool add-ons are extra. See [pricing](https://docs.valyu.ai/pricing).\n\n| Mode | Credits | Best For | Max Steps |\n| --- | --- | --- | --- |\n| `instant` | 8 | Short, cited answers in under 30 seconds | 1 |\n| `fast` | 25 | Quick queries, batch processing | 12 |\n| `standard` | 100 | Balanced research | 25 |\n| `heavy` | 500 | Complex topics requiring deep analysis | 45 |\n| `max` | 2,500 | Larger research budget for complex tasks | 75 |","enum":["instant","fast","standard","heavy","max"],"default":"standard","example":"standard","uniqueKey":"oneOf.0.mode","typeLabel":"enum\u003cstring>"},"model":{"type":"string","deprecated":true,"description":"**Deprecated.** Use `mode` instead.","enum":["fast","standard","heavy","max"],"uniqueKey":"oneOf.0.model","typeLabel":"enum\u003cstring>"},"strategy":{"type":"string","deprecated":true,"description":"**Deprecated.** Use `research_strategy` instead. Natural language strategy to guide the research agent's approach.","example":"Focus on Phase 3 trials and compare efficacy data across studies","uniqueKey":"oneOf.0.strategy","typeLabel":"string"},"research_strategy":{"type":"string","description":"Natural language strategy to guide the research phase. Controls how the agent searches, what sources to prioritize, and research methodology. Combined length of `research_strategy` and `report_format` must not exceed 15,000 characters.","maxLength":15000,"example":"Focus on Phase 3 trials and compare efficacy data across studies","uniqueKey":"oneOf.0.research_strategy","typeLabel":"string"},"report_format":{"type":"string","description":"Natural language instructions for the output format. Has highest priority and overrides default formatting. Controls structure, style, length, and presentation of the final report. Combined length of `research_strategy` and `report_format` must not exceed 15,000 characters.","maxLength":15000,"example":"Write a 2-page executive summary with bullet points and a comparison table","uniqueKey":"oneOf.0.report_format","typeLabel":"string"},"search":{"type":"object","description":"Search configuration for DeepResearch tasks.","properties":{"search_type":{"type":"string","enum":["all","web","proprietary"],"description":"Controls which data sources are searched.","default":"all","uniqueKey":"oneOf.0.search.search_type","typeLabel":"enum\u003cstring>"},"included_sources":{"type":"array","description":"Sources to include. Max 20 items.","items":{"type":"string","uniqueKey":"oneOf.0.search.included_sources.items.[INDEX]","typeLabel":"string"},"maxItems":20,"uniqueKey":"oneOf.0.search.included_sources","typeLabel":"string[]"},"excluded_sources":{"type":"array","description":"Sources to exclude. Max 20 items.","items":{"type":"string","uniqueKey":"oneOf.0.search.excluded_sources.items.[INDEX]","typeLabel":"string"},"maxItems":20,"uniqueKey":"oneOf.0.search.excluded_sources","typeLabel":"string[]"},"source_biases":{"type":"object","description":"Bias values for specific sources to influence ranking (-5 to +5). Applied to every search call during research.","additionalProperties":{"type":"integer","minimum":-5,"maximum":5,"uniqueKey":"oneOf.0.search.source_biases.additionalProperties","typeLabel":"integer"},"uniqueKey":"oneOf.0.search.source_biases","typeLabel":"object"},"country_code":{"type":"string","enum":["ALL","AR","AU","AT","BE","BR","CA","CL","DK","FI","FR","DE","HK","IN","ID","IT","JP","KR","MY","MX","NL","NZ","NO","CN","PL","PT","PH","RU","SA","ZA","ES","SE","CH","TW","TR","GB","US"],"description":"Country code for geo-targeted search.","uniqueKey":"oneOf.0.search.country_code","typeLabel":"enum\u003cstring>"},"start_date":{"type":"string","format":"date","description":"Filter results from this date. Format: `YYYY-MM-DD`.","uniqueKey":"oneOf.0.search.start_date","typeLabel":"string\u003cdate>"},"end_date":{"type":"string","format":"date","description":"Filter results until this date. Format: `YYYY-MM-DD`. Must be >= `start_date`.","uniqueKey":"oneOf.0.search.end_date","typeLabel":"string\u003cdate>"},"historical_cache":{"type":"boolean","description":"With `end_date`, pins the run to that date for backtests: research is limited to sources published by that date, and searches prefer snapshots captured on or before it. Dates before 2026 return a 400.","uniqueKey":"oneOf.0.search.historical_cache","typeLabel":"boolean"},"historical_cache_strict":{"type":"string","enum":["off","prefer","only"],"description":"Snapshot policy for a backtest run (`reference_date`, or `end_date` with `historical_cache: true`). Applies to every web search, page read, screenshot and URL in the task. `prefer` uses a snapshot captured at or before the cutoff when one exists, and otherwise reads the live page, so a page can contain text written after the cutoff. `only` never reads a live page: a page with no snapshot at or before the cutoff is dropped. `off` allows live pages without snapshot checks; the cutoff still bounds publication dates. For strict backtests, use `only`. Has no effect when the run has no cutoff.","default":"prefer","uniqueKey":"oneOf.0.search.historical_cache_strict","typeLabel":"enum\u003cstring>"},"reference_date":{"type":"string","description":"Pins the run to this date for backtests, as `historical_cache` does with `end_date`. Takes precedence over `end_date`. Format: `YYYY-MM-DD` or an ISO-8601 datetime. Dates before 2026 return a 400.","example":"2026-07-31","uniqueKey":"oneOf.0.search.reference_date","typeLabel":"string"}},"uniqueKey":"oneOf.0.search","typeLabel":"object"},"urls":{"type":"array","description":"URLs to include in the research context. Max 50. The first 10 are free. Each extra URL costs 8 credits. Scanned pages (OCR) in URL files cost 2.4 credits per page, for tasks created from 2026-11-13.","items":{"type":"string","format":"uri","uniqueKey":"oneOf.0.urls.items.[INDEX]","typeLabel":"string\u003curi>"},"maxItems":50,"example":["https://example.com/selected-trial-record"],"uniqueKey":"oneOf.0.urls","typeLabel":"string\u003curi>[]"},"files":{"type":"array","description":"Files to analyze as part of the research. Max 10. Scanned pages (OCR) cost 2.4 credits per page, for tasks created from 2026-11-13.","items":{"type":"object","description":"A file to include in the research task.","required":["data","filename","mediaType"],"properties":{"data":{"type":"string","description":"File content as a data URL. Format: `data:\u003cmediaType>;base64,\u003cbase64data>`.","example":"data:application/pdf;base64,JVBERi0xLjQK...","isRequired":true,"uniqueKey":"oneOf.0.files.items.[INDEX].data","typeLabel":"string"},"filename":{"type":"string","description":"Original filename.","example":"research_paper.pdf","isRequired":true,"uniqueKey":"oneOf.0.files.items.[INDEX].filename","typeLabel":"string"},"mediaType":{"type":"string","description":"MIME type of the file.","example":"application/pdf","isRequired":true,"uniqueKey":"oneOf.0.files.items.[INDEX].mediaType","typeLabel":"string"},"context":{"type":"string","description":"Optional context about the file to guide the research agent. Maximum 50,000 characters per file and 100,000 characters combined across all files.","maxLength":50000,"uniqueKey":"oneOf.0.files.items.[INDEX].context","typeLabel":"string"}},"uniqueKey":"oneOf.0.files.items.[INDEX]","typeLabel":"object"},"maxItems":10,"uniqueKey":"oneOf.0.files","typeLabel":"object[]"},"output_formats":{"type":"array","description":"Desired output formats. Defaults to `[\"markdown\"]`.\n\n- `\"markdown\"` - Markdown report (default)\n- `\"pdf\"` - PDF document (can combine with `\"markdown\"`)\n- `\"toon\"` - Token-efficient structured output; requires a JSON Schema object to also be supplied\n- JSON Schema object - Structured JSON output\n\nA JSON Schema object cannot be combined with `\"markdown\"` or `\"pdf\"`. `\"toon\"` requires a JSON Schema object.","items":{"oneOf":[{"type":"string","enum":["markdown","pdf","toon"],"uniqueKey":"oneOf.0.output_formats.items.[INDEX].oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"object","description":"JSON Schema for structured output.","uniqueKey":"oneOf.0.output_formats.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.output_formats.items.[INDEX]","typeLabel":"enum\u003cstring> | object"},"default":["markdown"],"example":["markdown","pdf"],"uniqueKey":"oneOf.0.output_formats","typeLabel":"(enum\u003cstring> | object)[]"},"metadata":{"type":"object","description":"Arbitrary key-value metadata to attach to the task.","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.metadata.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"oneOf.0.metadata.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"oneOf.0.metadata.additionalProperties.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"oneOf.0.metadata.additionalProperties","typeLabel":"string | number | boolean"},"example":{"project":"drug-discovery","priority":"high"},"uniqueKey":"oneOf.0.metadata","typeLabel":"object"},"mcp_servers":{"type":"array","description":"MCP servers to provide additional tools during research. Max 5.","items":{"type":"object","description":"MCP (Model Context Protocol) server configuration for tool access during research.","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"HTTP/HTTPS URL of the MCP server.","example":"https://mcp.example.com/tools","isRequired":true,"uniqueKey":"oneOf.0.mcp_servers.items.[INDEX].url","typeLabel":"string\u003curi>"},"name":{"type":"string","description":"Display name for the MCP server.","uniqueKey":"oneOf.0.mcp_servers.items.[INDEX].name","typeLabel":"string"},"tool_prefix":{"type":"string","description":"Prefix for tool names. Defaults to the server hostname.","uniqueKey":"oneOf.0.mcp_servers.items.[INDEX].tool_prefix","typeLabel":"string"},"auth":{"type":"object","description":"Authentication configuration.","properties":{"type":{"type":"string","enum":["bearer","header","none"],"description":"Authentication type.","uniqueKey":"oneOf.0.mcp_servers.items.[INDEX].auth.type","typeLabel":"enum\u003cstring>"},"token":{"type":"string","description":"Bearer token (when `type` is `\"bearer\"`).","uniqueKey":"oneOf.0.mcp_servers.items.[INDEX].auth.token","typeLabel":"string"},"headers":{"type":"object","description":"Custom headers (when `type` is `\"header\"`).","additionalProperties":{"type":"string","uniqueKey":"oneOf.0.mcp_servers.items.[INDEX].auth.headers.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.0.mcp_servers.items.[INDEX].auth.headers","typeLabel":"object"}},"uniqueKey":"oneOf.0.mcp_servers.items.[INDEX].auth","typeLabel":"object"},"allowed_tools":{"type":"array","description":"Whitelist of tool names to expose. If omitted, all tools are available.","items":{"type":"string","uniqueKey":"oneOf.0.mcp_servers.items.[INDEX].allowed_tools.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0.mcp_servers.items.[INDEX].allowed_tools","typeLabel":"string[]"}},"uniqueKey":"oneOf.0.mcp_servers.items.[INDEX]","typeLabel":"object"},"maxItems":5,"uniqueKey":"oneOf.0.mcp_servers","typeLabel":"object[]"},"code_execution":{"type":"boolean","description":"Deprecated: use tools.code_execution instead. Enable code execution capability.","default":false,"deprecated":true,"uniqueKey":"oneOf.0.code_execution","typeLabel":"boolean"},"tools":{"type":"object","description":"Controls which optional tools the research agent can use. Each tool accepts an object with `enabled` (boolean, default true) and optional `max_calls` (integer, capped at system default).","properties":{"x_search":{"type":"boolean","description":"X search runs automatically for organisations with X access. It costs 32 credits for each call that returns posts. Send `false` to turn it off.","default":true,"uniqueKey":"oneOf.0.tools.x_search","typeLabel":"boolean"},"code_execution":{"oneOf":[{"type":"boolean","description":"Enable code execution in a sandboxed Python environment. System default max_calls: 10.","uniqueKey":"oneOf.0.tools.code_execution.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Enable code execution in a sandboxed Python environment. System default max_calls: 10.","properties":{"enabled":{"type":"boolean","default":true,"description":"Enable or disable the tool.","uniqueKey":"oneOf.0.tools.code_execution.oneOf.1.enabled","typeLabel":"boolean"},"max_calls":{"type":"integer","description":"Max invocations per task. Capped at system default (10).","uniqueKey":"oneOf.0.tools.code_execution.oneOf.1.max_calls","typeLabel":"integer"}},"uniqueKey":"oneOf.0.tools.code_execution.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.tools.code_execution","typeLabel":"boolean | object"},"screenshots":{"oneOf":[{"type":"boolean","description":"Enable visual screenshot capture of web pages. System default max_calls: 15.","uniqueKey":"oneOf.0.tools.screenshots.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Enable visual screenshot capture of web pages. System default max_calls: 15.","properties":{"enabled":{"type":"boolean","default":true,"description":"Enable or disable the tool.","uniqueKey":"oneOf.0.tools.screenshots.oneOf.1.enabled","typeLabel":"boolean"},"max_calls":{"type":"integer","description":"Max invocations per task. Capped at system default (15).","uniqueKey":"oneOf.0.tools.screenshots.oneOf.1.max_calls","typeLabel":"integer"}},"uniqueKey":"oneOf.0.tools.screenshots.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.tools.screenshots","typeLabel":"boolean | object"},"browser_use":{"oneOf":[{"type":"boolean","description":"Enable autonomous browser sessions. System default max_calls: 5.","uniqueKey":"oneOf.0.tools.browser_use.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Enable autonomous browser sessions. System default max_calls: 5.","properties":{"enabled":{"type":"boolean","default":true,"description":"Enable or disable the tool.","uniqueKey":"oneOf.0.tools.browser_use.oneOf.1.enabled","typeLabel":"boolean"},"max_calls":{"type":"integer","description":"Max invocations per task. Capped at system default (5).","uniqueKey":"oneOf.0.tools.browser_use.oneOf.1.max_calls","typeLabel":"integer"}},"uniqueKey":"oneOf.0.tools.browser_use.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.tools.browser_use","typeLabel":"boolean | object"},"charts":{"oneOf":[{"type":"boolean","description":"Enable chart and graph generation embedded in the final report. Free, no per-call surcharge. Unlimited per task.","uniqueKey":"oneOf.0.tools.charts.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Enable chart and graph generation embedded in the final report. Free, no per-call surcharge. Unlimited per task.","properties":{"enabled":{"type":"boolean","default":true,"description":"Enable or disable the tool.","uniqueKey":"oneOf.0.tools.charts.oneOf.1.enabled","typeLabel":"boolean"},"max_calls":{"type":"integer","description":"Max invocations per task. Charts default is unlimited; this field is accepted for consistency.","uniqueKey":"oneOf.0.tools.charts.oneOf.1.max_calls","typeLabel":"integer"}},"uniqueKey":"oneOf.0.tools.charts.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.tools.charts","typeLabel":"boolean | object"}},"uniqueKey":"oneOf.0.tools","typeLabel":"object"},"previous_reports":{"type":"array","description":"DeepResearch task IDs to use as context for this task. Max 3.","items":{"type":"string","uniqueKey":"oneOf.0.previous_reports.items.[INDEX]","typeLabel":"string"},"maxItems":3,"example":["a1b2c3d4-e5f6-7890-abcd-ef1234567890"],"uniqueKey":"oneOf.0.previous_reports","typeLabel":"string[]"},"webhook_url":{"type":"string","format":"uri","description":"HTTPS URL to receive a webhook POST when the task completes. Signed with HMAC-SHA256.","example":"https://example.com/webhooks/deepresearch","uniqueKey":"oneOf.0.webhook_url","typeLabel":"string\u003curi>"},"alert_email":{"oneOf":[{"type":"string","description":"Email notification on completion. Pass a string (email address) or an object with email and optional custom_url. The custom_url must contain {id} which gets replaced with the task ID. Email must belong to your organization.","format":"email","uniqueKey":"oneOf.0.alert_email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"object","description":"Email notification on completion. Pass a string (email address) or an object with email and optional custom_url. The custom_url must contain {id} which gets replaced with the task ID. Email must belong to your organization.","required":["email"],"properties":{"email":{"type":"string","format":"email","description":"Email address to notify on completion. Must belong to your organization.","isRequired":true,"uniqueKey":"oneOf.0.alert_email.oneOf.1.email","typeLabel":"string\u003cemail>"},"custom_url":{"type":"string","format":"uri","description":"Custom URL template for the report link in the email. Must contain {id} which gets replaced with the deepresearch task ID.","example":"https://example.com/reports/{id}","uniqueKey":"oneOf.0.alert_email.oneOf.1.custom_url","typeLabel":"string\u003curi>"}},"uniqueKey":"oneOf.0.alert_email.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.alert_email","typeLabel":"string\u003cemail> | object"},"brand_collection_id":{"type":"string","description":"Brand kit to apply to the PDF report and the deliverables. Send a kit ID from the Valyu platform, or `\"none\"` for no branding. If you don't send it, the organisation's default kit applies to the report and any deliverables, if the default kit is ready. Brand kits need the Comfortably Pro, Serious Business or Enterprise plan. See [Brand kits](/guides/deepresearch-brand-kits).","example":"YOUR_KIT_ID","uniqueKey":"oneOf.0.brand_collection_id","typeLabel":"string"},"cover_art":{"type":"object","description":"Cover art for this one report. It replaces the brand kit's cover art on the PDF report cover, the PDF deliverable and the title slide of a PPTX deck, and works without a kit. Send exactly one of `data` or `url`. The picture must be a PNG or JPEG, at most 2 MB after base64 decoding, and at least 800 px on the short side. Cropping it to the A4 page must keep at least 25% of it. For a large picture, send `url`. A malformed field returns `400`. A picture that cannot be used, including a private or unreachable `url`, never fails the task: the kit's cover art or the standard cover applies, and `warnings` carries `cover_art_not_used`. See [Brand kits](/guides/deepresearch-brand-kits).","properties":{"kind":{"type":"string","enum":["image","pattern"],"default":"image","description":"`image` for a photo or illustration. `pattern` for a brand graphic, which is veiled more so it stays quiet.","uniqueKey":"oneOf.0.cover_art.kind","typeLabel":"enum\u003cstring>"},"data":{"type":"string","maxLength":6000000,"description":"The picture as a data URL (`data:image/png;base64,...`) or plain base64.","uniqueKey":"oneOf.0.cover_art.data","typeLabel":"string"},"url":{"type":"string","maxLength":2048,"description":"A public https URL of the picture. DeepResearch fetches it when it renders the report.","uniqueKey":"oneOf.0.cover_art.url","typeLabel":"string"},"filename":{"type":"string","maxLength":255,"description":"The file name. Optional.","uniqueKey":"oneOf.0.cover_art.filename","typeLabel":"string"},"mediaType":{"type":"string","maxLength":100,"description":"`image/png` or `image/jpeg`. Optional. Checked against the file.","uniqueKey":"oneOf.0.cover_art.mediaType","typeLabel":"string"}},"uniqueKey":"oneOf.0.cover_art","typeLabel":"object"},"deliverables":{"type":"array","description":"Deliverable files to generate from the research (e.g. Excel reports, presentations). Max 10.","items":{"oneOf":[{"type":"string","description":"A deliverable to generate from the research. Can be a string (natural language description, max 500 chars) or a structured object.","maxLength":500,"uniqueKey":"oneOf.0.deliverables.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A deliverable to generate from the research. Can be a string (natural language description, max 500 chars) or a structured object.","required":["type","description"],"properties":{"type":{"type":"string","enum":["csv","xlsx","pptx","docx","pdf","json","html"],"description":"File format for the deliverable. `json` is a structured data file, optionally checked against your `schema`. `html` is a self-contained interactive web page of the report.","isRequired":true,"uniqueKey":"oneOf.0.deliverables.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","maxLength":500,"description":"Description of what the deliverable should contain.","isRequired":true,"uniqueKey":"oneOf.0.deliverables.items.[INDEX].oneOf.1.description","typeLabel":"string"},"columns":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.deliverables.items.[INDEX].oneOf.1.columns.items.[INDEX]","typeLabel":"string"},"description":"Suggested column names for tabular deliverables (csv, xlsx).","uniqueKey":"oneOf.0.deliverables.items.[INDEX].oneOf.1.columns","typeLabel":"string[]"},"schema":{"type":"object","description":"JSON Schema that the `json` deliverable must validate against. Optional. Without it, the file has the default shape (`title`, `as_of`, `summary`, `key_findings`, `tables`, `sources`). JSON Schema 2020-12 is the default. Draft-07 is used when the `$schema` header says so, or when the schema uses the draft-07 tuple form `items: [...]`. `$defs`, `definitions` and recursive references work. Only internal `$ref` values (`#/...`) are allowed. Patterns in `pattern` and `patternProperties` use RE2 syntax, so lookahead, lookbehind and backreferences are refused. The maximum size is 20,000 characters. Formats such as `email`, `date`, `date-time` and `uri` are checked. OpenAPI `nullable: true` is accepted. An invalid schema returns `400` with the code `DELIVERABLE_SCHEMA_INVALID`. On any other type, `schema` is ignored and the task gets a `deliverable_adjusted` warning. This field is separate from `output_formats`, which shapes the report itself.","uniqueKey":"oneOf.0.deliverables.items.[INDEX].oneOf.1.schema","typeLabel":"object"}},"uniqueKey":"oneOf.0.deliverables.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.deliverables.items.[INDEX]","typeLabel":"string | object"},"maxItems":10,"uniqueKey":"oneOf.0.deliverables","typeLabel":"(string | object)[]"},"hitl":{"type":"object","description":"Human-in-the-loop configuration. Enable checkpoints that pause execution at key decision points. Not available for batch requests.","properties":{"planning_questions":{"type":"boolean","description":"Pause before research to ask clarifying questions.","default":false,"uniqueKey":"oneOf.0.hitl.planning_questions","typeLabel":"boolean"},"plan_review":{"type":"boolean","description":"Pause after planning for user to review the research plan.","default":false,"uniqueKey":"oneOf.0.hitl.plan_review","typeLabel":"boolean"},"source_review":{"type":"boolean","description":"Pause after research for user to filter sources by domain.","default":false,"uniqueKey":"oneOf.0.hitl.source_review","typeLabel":"boolean"},"outline_review":{"type":"boolean","description":"Pause after source review for user to review the report outline.","default":false,"uniqueKey":"oneOf.0.hitl.outline_review","typeLabel":"boolean"}},"uniqueKey":"oneOf.0.hitl","typeLabel":"object"},"share_with":{"type":"array","description":"People or company domains who can open the report. Each entry is an email address (`name@company.com`) or a whole company domain (`@company.com`). The report stays private: only these people and members of your organization can open it. Viewers open the share link and sign in to Valyu with that email address, which must be verified. A domain covers anyone with a verified email at exactly that domain, not its subdomains. Public email providers such as gmail.com and outlook.com can't be shared as a domain; add those people individually. An invalid entry returns `400` and no task is created. Max 100. See [Share a report](https://docs.valyu.ai/guides/deepresearch-sharing).","items":{"type":"string","uniqueKey":"oneOf.0.share_with.items.[INDEX]","typeLabel":"string"},"maxItems":100,"example":["anna@client.com","@acme.com"],"uniqueKey":"oneOf.0.share_with","typeLabel":"string[]"},"share_notify":{"type":"boolean","description":"Email each person in `share_with` a link to the report. Domains are never emailed.","default":true,"uniqueKey":"oneOf.0.share_notify","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Request to create a DeepResearch task.\n\nA task can be either **freeform** (provide `query`/`input` plus optional `research_strategy`, `report_format`, etc.) or **workflow-driven** (provide `workflow_id` + `workflow_params`). The two modes are mutually exclusive: passing `workflow_id` alongside freeform fields (`query`, `input`, `research_strategy`, `report_format`) returns `400 workflow_and_freeform_mutually_exclusive`. When running a workflow, any `mode`/`deliverables`/`tools` you pass in the body override the template defaults.","required":["input"],"properties":{"input":{"type":"string","deprecated":true,"description":"**Deprecated.** Use `query` instead.","isRequired":true,"uniqueKey":"oneOf.1.input","typeLabel":"string"},"query":{"type":"string","description":"The research query or question. Use `query` (preferred) or `input` (deprecated). Maximum 25,000 characters. Mutually exclusive with `workflow_id`.","maxLength":25000,"example":"Comprehensive analysis of CRISPR gene therapy clinical trials in 2024","uniqueKey":"oneOf.1.query","typeLabel":"string"},"workflow_id":{"type":"string","description":"**Beta.** Slug of a workflow to run instead of a freeform query. When set, the task is resolved from the workflow's prompt template using `workflow_params`. Mutually exclusive with freeform fields (`query`, `input`, `research_strategy`, `report_format`); supplying both returns `400 workflow_and_freeform_mutually_exclusive`. See the [Workflows](#tag/Workflows) endpoints.","example":"ib-company-profile","uniqueKey":"oneOf.1.workflow_id","typeLabel":"string"},"workflow_params":{"type":"object","description":"**Beta.** Values for the workflow's template variables, keyed by variable `key`. Required when `workflow_id` is set. Values must satisfy the workflow's declared variable types and validation rules.","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.workflow_params.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"oneOf.1.workflow_params.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"oneOf.1.workflow_params.additionalProperties.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"oneOf.1.workflow_params.additionalProperties","typeLabel":"string | number | boolean"},"example":{"company":"NVIDIA (NVDA)"},"uniqueKey":"oneOf.1.workflow_params","typeLabel":"object"},"workflow_version":{"type":"integer","description":"**Beta.** Pin the run to a specific immutable version of the workflow. Defaults to the workflow's current version when omitted. Only valid with `workflow_id`.","minimum":1,"example":1,"uniqueKey":"oneOf.1.workflow_version","typeLabel":"integer"},"mode":{"type":"string","description":"Research mode controlling depth and cost. Prices are credits per task; tool add-ons are extra. See [pricing](https://docs.valyu.ai/pricing).\n\n| Mode | Credits | Best For | Max Steps |\n| --- | --- | --- | --- |\n| `instant` | 8 | Short, cited answers in under 30 seconds | 1 |\n| `fast` | 25 | Quick queries, batch processing | 12 |\n| `standard` | 100 | Balanced research | 25 |\n| `heavy` | 500 | Complex topics requiring deep analysis | 45 |\n| `max` | 2,500 | Larger research budget for complex tasks | 75 |","enum":["instant","fast","standard","heavy","max"],"default":"standard","example":"standard","uniqueKey":"oneOf.1.mode","typeLabel":"enum\u003cstring>"},"model":{"type":"string","deprecated":true,"description":"**Deprecated.** Use `mode` instead.","enum":["fast","standard","heavy","max"],"uniqueKey":"oneOf.1.model","typeLabel":"enum\u003cstring>"},"strategy":{"type":"string","deprecated":true,"description":"**Deprecated.** Use `research_strategy` instead. Natural language strategy to guide the research agent's approach.","example":"Focus on Phase 3 trials and compare efficacy data across studies","uniqueKey":"oneOf.1.strategy","typeLabel":"string"},"research_strategy":{"type":"string","description":"Natural language strategy to guide the research phase. Controls how the agent searches, what sources to prioritize, and research methodology. Combined length of `research_strategy` and `report_format` must not exceed 15,000 characters.","maxLength":15000,"example":"Focus on Phase 3 trials and compare efficacy data across studies","uniqueKey":"oneOf.1.research_strategy","typeLabel":"string"},"report_format":{"type":"string","description":"Natural language instructions for the output format. Has highest priority and overrides default formatting. Controls structure, style, length, and presentation of the final report. Combined length of `research_strategy` and `report_format` must not exceed 15,000 characters.","maxLength":15000,"example":"Write a 2-page executive summary with bullet points and a comparison table","uniqueKey":"oneOf.1.report_format","typeLabel":"string"},"search":{"type":"object","description":"Search configuration for DeepResearch tasks.","properties":{"search_type":{"type":"string","enum":["all","web","proprietary"],"description":"Controls which data sources are searched.","default":"all","uniqueKey":"oneOf.1.search.search_type","typeLabel":"enum\u003cstring>"},"included_sources":{"type":"array","description":"Sources to include. Max 20 items.","items":{"type":"string","uniqueKey":"oneOf.1.search.included_sources.items.[INDEX]","typeLabel":"string"},"maxItems":20,"uniqueKey":"oneOf.1.search.included_sources","typeLabel":"string[]"},"excluded_sources":{"type":"array","description":"Sources to exclude. Max 20 items.","items":{"type":"string","uniqueKey":"oneOf.1.search.excluded_sources.items.[INDEX]","typeLabel":"string"},"maxItems":20,"uniqueKey":"oneOf.1.search.excluded_sources","typeLabel":"string[]"},"source_biases":{"type":"object","description":"Bias values for specific sources to influence ranking (-5 to +5). Applied to every search call during research.","additionalProperties":{"type":"integer","minimum":-5,"maximum":5,"uniqueKey":"oneOf.1.search.source_biases.additionalProperties","typeLabel":"integer"},"uniqueKey":"oneOf.1.search.source_biases","typeLabel":"object"},"country_code":{"type":"string","enum":["ALL","AR","AU","AT","BE","BR","CA","CL","DK","FI","FR","DE","HK","IN","ID","IT","JP","KR","MY","MX","NL","NZ","NO","CN","PL","PT","PH","RU","SA","ZA","ES","SE","CH","TW","TR","GB","US"],"description":"Country code for geo-targeted search.","uniqueKey":"oneOf.1.search.country_code","typeLabel":"enum\u003cstring>"},"start_date":{"type":"string","format":"date","description":"Filter results from this date. Format: `YYYY-MM-DD`.","uniqueKey":"oneOf.1.search.start_date","typeLabel":"string\u003cdate>"},"end_date":{"type":"string","format":"date","description":"Filter results until this date. Format: `YYYY-MM-DD`. Must be >= `start_date`.","uniqueKey":"oneOf.1.search.end_date","typeLabel":"string\u003cdate>"},"historical_cache":{"type":"boolean","description":"With `end_date`, pins the run to that date for backtests: research is limited to sources published by that date, and searches prefer snapshots captured on or before it. Dates before 2026 return a 400.","uniqueKey":"oneOf.1.search.historical_cache","typeLabel":"boolean"},"historical_cache_strict":{"type":"string","enum":["off","prefer","only"],"description":"Snapshot policy for a backtest run (`reference_date`, or `end_date` with `historical_cache: true`). Applies to every web search, page read, screenshot and URL in the task. `prefer` uses a snapshot captured at or before the cutoff when one exists, and otherwise reads the live page, so a page can contain text written after the cutoff. `only` never reads a live page: a page with no snapshot at or before the cutoff is dropped. `off` allows live pages without snapshot checks; the cutoff still bounds publication dates. For strict backtests, use `only`. Has no effect when the run has no cutoff.","default":"prefer","uniqueKey":"oneOf.1.search.historical_cache_strict","typeLabel":"enum\u003cstring>"},"reference_date":{"type":"string","description":"Pins the run to this date for backtests, as `historical_cache` does with `end_date`. Takes precedence over `end_date`. Format: `YYYY-MM-DD` or an ISO-8601 datetime. Dates before 2026 return a 400.","example":"2026-07-31","uniqueKey":"oneOf.1.search.reference_date","typeLabel":"string"}},"uniqueKey":"oneOf.1.search","typeLabel":"object"},"urls":{"type":"array","description":"URLs to include in the research context. Max 50. The first 10 are free. Each extra URL costs 8 credits. Scanned pages (OCR) in URL files cost 2.4 credits per page, for tasks created from 2026-11-13.","items":{"type":"string","format":"uri","uniqueKey":"oneOf.1.urls.items.[INDEX]","typeLabel":"string\u003curi>"},"maxItems":50,"example":["https://example.com/selected-trial-record"],"uniqueKey":"oneOf.1.urls","typeLabel":"string\u003curi>[]"},"files":{"type":"array","description":"Files to analyze as part of the research. Max 10. Scanned pages (OCR) cost 2.4 credits per page, for tasks created from 2026-11-13.","items":{"type":"object","description":"A file to include in the research task.","required":["data","filename","mediaType"],"properties":{"data":{"type":"string","description":"File content as a data URL. Format: `data:\u003cmediaType>;base64,\u003cbase64data>`.","example":"data:application/pdf;base64,JVBERi0xLjQK...","isRequired":true,"uniqueKey":"oneOf.1.files.items.[INDEX].data","typeLabel":"string"},"filename":{"type":"string","description":"Original filename.","example":"research_paper.pdf","isRequired":true,"uniqueKey":"oneOf.1.files.items.[INDEX].filename","typeLabel":"string"},"mediaType":{"type":"string","description":"MIME type of the file.","example":"application/pdf","isRequired":true,"uniqueKey":"oneOf.1.files.items.[INDEX].mediaType","typeLabel":"string"},"context":{"type":"string","description":"Optional context about the file to guide the research agent. Maximum 50,000 characters per file and 100,000 characters combined across all files.","maxLength":50000,"uniqueKey":"oneOf.1.files.items.[INDEX].context","typeLabel":"string"}},"uniqueKey":"oneOf.1.files.items.[INDEX]","typeLabel":"object"},"maxItems":10,"uniqueKey":"oneOf.1.files","typeLabel":"object[]"},"output_formats":{"type":"array","description":"Desired output formats. Defaults to `[\"markdown\"]`.\n\n- `\"markdown\"` - Markdown report (default)\n- `\"pdf\"` - PDF document (can combine with `\"markdown\"`)\n- `\"toon\"` - Token-efficient structured output; requires a JSON Schema object to also be supplied\n- JSON Schema object - Structured JSON output\n\nA JSON Schema object cannot be combined with `\"markdown\"` or `\"pdf\"`. `\"toon\"` requires a JSON Schema object.","items":{"oneOf":[{"type":"string","enum":["markdown","pdf","toon"],"uniqueKey":"oneOf.1.output_formats.items.[INDEX].oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"object","description":"JSON Schema for structured output.","uniqueKey":"oneOf.1.output_formats.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.output_formats.items.[INDEX]","typeLabel":"enum\u003cstring> | object"},"default":["markdown"],"example":["markdown","pdf"],"uniqueKey":"oneOf.1.output_formats","typeLabel":"(enum\u003cstring> | object)[]"},"metadata":{"type":"object","description":"Arbitrary key-value metadata to attach to the task.","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.metadata.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"oneOf.1.metadata.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"oneOf.1.metadata.additionalProperties.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"oneOf.1.metadata.additionalProperties","typeLabel":"string | number | boolean"},"example":{"project":"drug-discovery","priority":"high"},"uniqueKey":"oneOf.1.metadata","typeLabel":"object"},"mcp_servers":{"type":"array","description":"MCP servers to provide additional tools during research. Max 5.","items":{"type":"object","description":"MCP (Model Context Protocol) server configuration for tool access during research.","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"HTTP/HTTPS URL of the MCP server.","example":"https://mcp.example.com/tools","isRequired":true,"uniqueKey":"oneOf.1.mcp_servers.items.[INDEX].url","typeLabel":"string\u003curi>"},"name":{"type":"string","description":"Display name for the MCP server.","uniqueKey":"oneOf.1.mcp_servers.items.[INDEX].name","typeLabel":"string"},"tool_prefix":{"type":"string","description":"Prefix for tool names. Defaults to the server hostname.","uniqueKey":"oneOf.1.mcp_servers.items.[INDEX].tool_prefix","typeLabel":"string"},"auth":{"type":"object","description":"Authentication configuration.","properties":{"type":{"type":"string","enum":["bearer","header","none"],"description":"Authentication type.","uniqueKey":"oneOf.1.mcp_servers.items.[INDEX].auth.type","typeLabel":"enum\u003cstring>"},"token":{"type":"string","description":"Bearer token (when `type` is `\"bearer\"`).","uniqueKey":"oneOf.1.mcp_servers.items.[INDEX].auth.token","typeLabel":"string"},"headers":{"type":"object","description":"Custom headers (when `type` is `\"header\"`).","additionalProperties":{"type":"string","uniqueKey":"oneOf.1.mcp_servers.items.[INDEX].auth.headers.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.1.mcp_servers.items.[INDEX].auth.headers","typeLabel":"object"}},"uniqueKey":"oneOf.1.mcp_servers.items.[INDEX].auth","typeLabel":"object"},"allowed_tools":{"type":"array","description":"Whitelist of tool names to expose. If omitted, all tools are available.","items":{"type":"string","uniqueKey":"oneOf.1.mcp_servers.items.[INDEX].allowed_tools.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.1.mcp_servers.items.[INDEX].allowed_tools","typeLabel":"string[]"}},"uniqueKey":"oneOf.1.mcp_servers.items.[INDEX]","typeLabel":"object"},"maxItems":5,"uniqueKey":"oneOf.1.mcp_servers","typeLabel":"object[]"},"code_execution":{"type":"boolean","description":"Deprecated: use tools.code_execution instead. Enable code execution capability.","default":false,"deprecated":true,"uniqueKey":"oneOf.1.code_execution","typeLabel":"boolean"},"tools":{"type":"object","description":"Controls which optional tools the research agent can use. Each tool accepts an object with `enabled` (boolean, default true) and optional `max_calls` (integer, capped at system default).","properties":{"x_search":{"type":"boolean","description":"X search runs automatically for organisations with X access. It costs 32 credits for each call that returns posts. Send `false` to turn it off.","default":true,"uniqueKey":"oneOf.1.tools.x_search","typeLabel":"boolean"},"code_execution":{"oneOf":[{"type":"boolean","description":"Enable code execution in a sandboxed Python environment. System default max_calls: 10.","uniqueKey":"oneOf.1.tools.code_execution.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Enable code execution in a sandboxed Python environment. System default max_calls: 10.","properties":{"enabled":{"type":"boolean","default":true,"description":"Enable or disable the tool.","uniqueKey":"oneOf.1.tools.code_execution.oneOf.1.enabled","typeLabel":"boolean"},"max_calls":{"type":"integer","description":"Max invocations per task. Capped at system default (10).","uniqueKey":"oneOf.1.tools.code_execution.oneOf.1.max_calls","typeLabel":"integer"}},"uniqueKey":"oneOf.1.tools.code_execution.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.tools.code_execution","typeLabel":"boolean | object"},"screenshots":{"oneOf":[{"type":"boolean","description":"Enable visual screenshot capture of web pages. System default max_calls: 15.","uniqueKey":"oneOf.1.tools.screenshots.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Enable visual screenshot capture of web pages. System default max_calls: 15.","properties":{"enabled":{"type":"boolean","default":true,"description":"Enable or disable the tool.","uniqueKey":"oneOf.1.tools.screenshots.oneOf.1.enabled","typeLabel":"boolean"},"max_calls":{"type":"integer","description":"Max invocations per task. Capped at system default (15).","uniqueKey":"oneOf.1.tools.screenshots.oneOf.1.max_calls","typeLabel":"integer"}},"uniqueKey":"oneOf.1.tools.screenshots.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.tools.screenshots","typeLabel":"boolean | object"},"browser_use":{"oneOf":[{"type":"boolean","description":"Enable autonomous browser sessions. System default max_calls: 5.","uniqueKey":"oneOf.1.tools.browser_use.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Enable autonomous browser sessions. System default max_calls: 5.","properties":{"enabled":{"type":"boolean","default":true,"description":"Enable or disable the tool.","uniqueKey":"oneOf.1.tools.browser_use.oneOf.1.enabled","typeLabel":"boolean"},"max_calls":{"type":"integer","description":"Max invocations per task. Capped at system default (5).","uniqueKey":"oneOf.1.tools.browser_use.oneOf.1.max_calls","typeLabel":"integer"}},"uniqueKey":"oneOf.1.tools.browser_use.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.tools.browser_use","typeLabel":"boolean | object"},"charts":{"oneOf":[{"type":"boolean","description":"Enable chart and graph generation embedded in the final report. Free, no per-call surcharge. Unlimited per task.","uniqueKey":"oneOf.1.tools.charts.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Enable chart and graph generation embedded in the final report. Free, no per-call surcharge. Unlimited per task.","properties":{"enabled":{"type":"boolean","default":true,"description":"Enable or disable the tool.","uniqueKey":"oneOf.1.tools.charts.oneOf.1.enabled","typeLabel":"boolean"},"max_calls":{"type":"integer","description":"Max invocations per task. Charts default is unlimited; this field is accepted for consistency.","uniqueKey":"oneOf.1.tools.charts.oneOf.1.max_calls","typeLabel":"integer"}},"uniqueKey":"oneOf.1.tools.charts.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.tools.charts","typeLabel":"boolean | object"}},"uniqueKey":"oneOf.1.tools","typeLabel":"object"},"previous_reports":{"type":"array","description":"DeepResearch task IDs to use as context for this task. Max 3.","items":{"type":"string","uniqueKey":"oneOf.1.previous_reports.items.[INDEX]","typeLabel":"string"},"maxItems":3,"example":["a1b2c3d4-e5f6-7890-abcd-ef1234567890"],"uniqueKey":"oneOf.1.previous_reports","typeLabel":"string[]"},"webhook_url":{"type":"string","format":"uri","description":"HTTPS URL to receive a webhook POST when the task completes. Signed with HMAC-SHA256.","example":"https://example.com/webhooks/deepresearch","uniqueKey":"oneOf.1.webhook_url","typeLabel":"string\u003curi>"},"alert_email":{"oneOf":[{"type":"string","description":"Email notification on completion. Pass a string (email address) or an object with email and optional custom_url. The custom_url must contain {id} which gets replaced with the task ID. Email must belong to your organization.","format":"email","uniqueKey":"oneOf.1.alert_email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"object","description":"Email notification on completion. Pass a string (email address) or an object with email and optional custom_url. The custom_url must contain {id} which gets replaced with the task ID. Email must belong to your organization.","required":["email"],"properties":{"email":{"type":"string","format":"email","description":"Email address to notify on completion. Must belong to your organization.","isRequired":true,"uniqueKey":"oneOf.1.alert_email.oneOf.1.email","typeLabel":"string\u003cemail>"},"custom_url":{"type":"string","format":"uri","description":"Custom URL template for the report link in the email. Must contain {id} which gets replaced with the deepresearch task ID.","example":"https://example.com/reports/{id}","uniqueKey":"oneOf.1.alert_email.oneOf.1.custom_url","typeLabel":"string\u003curi>"}},"uniqueKey":"oneOf.1.alert_email.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.alert_email","typeLabel":"string\u003cemail> | object"},"brand_collection_id":{"type":"string","description":"Brand kit to apply to the PDF report and the deliverables. Send a kit ID from the Valyu platform, or `\"none\"` for no branding. If you don't send it, the organisation's default kit applies to the report and any deliverables, if the default kit is ready. Brand kits need the Comfortably Pro, Serious Business or Enterprise plan. See [Brand kits](/guides/deepresearch-brand-kits).","example":"YOUR_KIT_ID","uniqueKey":"oneOf.1.brand_collection_id","typeLabel":"string"},"cover_art":{"type":"object","description":"Cover art for this one report. It replaces the brand kit's cover art on the PDF report cover, the PDF deliverable and the title slide of a PPTX deck, and works without a kit. Send exactly one of `data` or `url`. The picture must be a PNG or JPEG, at most 2 MB after base64 decoding, and at least 800 px on the short side. Cropping it to the A4 page must keep at least 25% of it. For a large picture, send `url`. A malformed field returns `400`. A picture that cannot be used, including a private or unreachable `url`, never fails the task: the kit's cover art or the standard cover applies, and `warnings` carries `cover_art_not_used`. See [Brand kits](/guides/deepresearch-brand-kits).","properties":{"kind":{"type":"string","enum":["image","pattern"],"default":"image","description":"`image` for a photo or illustration. `pattern` for a brand graphic, which is veiled more so it stays quiet.","uniqueKey":"oneOf.1.cover_art.kind","typeLabel":"enum\u003cstring>"},"data":{"type":"string","maxLength":6000000,"description":"The picture as a data URL (`data:image/png;base64,...`) or plain base64.","uniqueKey":"oneOf.1.cover_art.data","typeLabel":"string"},"url":{"type":"string","maxLength":2048,"description":"A public https URL of the picture. DeepResearch fetches it when it renders the report.","uniqueKey":"oneOf.1.cover_art.url","typeLabel":"string"},"filename":{"type":"string","maxLength":255,"description":"The file name. Optional.","uniqueKey":"oneOf.1.cover_art.filename","typeLabel":"string"},"mediaType":{"type":"string","maxLength":100,"description":"`image/png` or `image/jpeg`. Optional. Checked against the file.","uniqueKey":"oneOf.1.cover_art.mediaType","typeLabel":"string"}},"uniqueKey":"oneOf.1.cover_art","typeLabel":"object"},"deliverables":{"type":"array","description":"Deliverable files to generate from the research (e.g. Excel reports, presentations). Max 10.","items":{"oneOf":[{"type":"string","description":"A deliverable to generate from the research. Can be a string (natural language description, max 500 chars) or a structured object.","maxLength":500,"uniqueKey":"oneOf.1.deliverables.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A deliverable to generate from the research. Can be a string (natural language description, max 500 chars) or a structured object.","required":["type","description"],"properties":{"type":{"type":"string","enum":["csv","xlsx","pptx","docx","pdf","json","html"],"description":"File format for the deliverable. `json` is a structured data file, optionally checked against your `schema`. `html` is a self-contained interactive web page of the report.","isRequired":true,"uniqueKey":"oneOf.1.deliverables.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","maxLength":500,"description":"Description of what the deliverable should contain.","isRequired":true,"uniqueKey":"oneOf.1.deliverables.items.[INDEX].oneOf.1.description","typeLabel":"string"},"columns":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.deliverables.items.[INDEX].oneOf.1.columns.items.[INDEX]","typeLabel":"string"},"description":"Suggested column names for tabular deliverables (csv, xlsx).","uniqueKey":"oneOf.1.deliverables.items.[INDEX].oneOf.1.columns","typeLabel":"string[]"},"schema":{"type":"object","description":"JSON Schema that the `json` deliverable must validate against. Optional. Without it, the file has the default shape (`title`, `as_of`, `summary`, `key_findings`, `tables`, `sources`). JSON Schema 2020-12 is the default. Draft-07 is used when the `$schema` header says so, or when the schema uses the draft-07 tuple form `items: [...]`. `$defs`, `definitions` and recursive references work. Only internal `$ref` values (`#/...`) are allowed. Patterns in `pattern` and `patternProperties` use RE2 syntax, so lookahead, lookbehind and backreferences are refused. The maximum size is 20,000 characters. Formats such as `email`, `date`, `date-time` and `uri` are checked. OpenAPI `nullable: true` is accepted. An invalid schema returns `400` with the code `DELIVERABLE_SCHEMA_INVALID`. On any other type, `schema` is ignored and the task gets a `deliverable_adjusted` warning. This field is separate from `output_formats`, which shapes the report itself.","uniqueKey":"oneOf.1.deliverables.items.[INDEX].oneOf.1.schema","typeLabel":"object"}},"uniqueKey":"oneOf.1.deliverables.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.deliverables.items.[INDEX]","typeLabel":"string | object"},"maxItems":10,"uniqueKey":"oneOf.1.deliverables","typeLabel":"(string | object)[]"},"hitl":{"type":"object","description":"Human-in-the-loop configuration. Enable checkpoints that pause execution at key decision points. Not available for batch requests.","properties":{"planning_questions":{"type":"boolean","description":"Pause before research to ask clarifying questions.","default":false,"uniqueKey":"oneOf.1.hitl.planning_questions","typeLabel":"boolean"},"plan_review":{"type":"boolean","description":"Pause after planning for user to review the research plan.","default":false,"uniqueKey":"oneOf.1.hitl.plan_review","typeLabel":"boolean"},"source_review":{"type":"boolean","description":"Pause after research for user to filter sources by domain.","default":false,"uniqueKey":"oneOf.1.hitl.source_review","typeLabel":"boolean"},"outline_review":{"type":"boolean","description":"Pause after source review for user to review the report outline.","default":false,"uniqueKey":"oneOf.1.hitl.outline_review","typeLabel":"boolean"}},"uniqueKey":"oneOf.1.hitl","typeLabel":"object"},"share_with":{"type":"array","description":"People or company domains who can open the report. Each entry is an email address (`name@company.com`) or a whole company domain (`@company.com`). The report stays private: only these people and members of your organization can open it. Viewers open the share link and sign in to Valyu with that email address, which must be verified. A domain covers anyone with a verified email at exactly that domain, not its subdomains. Public email providers such as gmail.com and outlook.com can't be shared as a domain; add those people individually. An invalid entry returns `400` and no task is created. Max 100. See [Share a report](https://docs.valyu.ai/guides/deepresearch-sharing).","items":{"type":"string","uniqueKey":"oneOf.1.share_with.items.[INDEX]","typeLabel":"string"},"maxItems":100,"example":["anna@client.com","@acme.com"],"uniqueKey":"oneOf.1.share_with","typeLabel":"string[]"},"share_notify":{"type":"boolean","description":"Email each person in `share_with` a link to the report. Domains are never emailed.","default":true,"uniqueKey":"oneOf.1.share_notify","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","description":"Request to create a DeepResearch task.\n\nA task can be either **freeform** (provide `query`/`input` plus optional `research_strategy`, `report_format`, etc.) or **workflow-driven** (provide `workflow_id` + `workflow_params`). The two modes are mutually exclusive: passing `workflow_id` alongside freeform fields (`query`, `input`, `research_strategy`, `report_format`) returns `400 workflow_and_freeform_mutually_exclusive`. When running a workflow, any `mode`/`deliverables`/`tools` you pass in the body override the template defaults.","required":["workflow_id"],"properties":{"workflow_id":{"type":"string","description":"**Beta.** Slug of a workflow to run instead of a freeform query. When set, the task is resolved from the workflow's prompt template using `workflow_params`. Mutually exclusive with freeform fields (`query`, `input`, `research_strategy`, `report_format`); supplying both returns `400 workflow_and_freeform_mutually_exclusive`. See the [Workflows](#tag/Workflows) endpoints.","example":"ib-company-profile","isRequired":true,"uniqueKey":"oneOf.2.workflow_id","typeLabel":"string"},"query":{"type":"string","description":"The research query or question. Use `query` (preferred) or `input` (deprecated). Maximum 25,000 characters. Mutually exclusive with `workflow_id`.","maxLength":25000,"example":"Comprehensive analysis of CRISPR gene therapy clinical trials in 2024","uniqueKey":"oneOf.2.query","typeLabel":"string"},"input":{"type":"string","deprecated":true,"description":"**Deprecated.** Use `query` instead.","uniqueKey":"oneOf.2.input","typeLabel":"string"},"workflow_params":{"type":"object","description":"**Beta.** Values for the workflow's template variables, keyed by variable `key`. Required when `workflow_id` is set. Values must satisfy the workflow's declared variable types and validation rules.","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"oneOf.2.workflow_params.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"oneOf.2.workflow_params.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"oneOf.2.workflow_params.additionalProperties.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"oneOf.2.workflow_params.additionalProperties","typeLabel":"string | number | boolean"},"example":{"company":"NVIDIA (NVDA)"},"uniqueKey":"oneOf.2.workflow_params","typeLabel":"object"},"workflow_version":{"type":"integer","description":"**Beta.** Pin the run to a specific immutable version of the workflow. Defaults to the workflow's current version when omitted. Only valid with `workflow_id`.","minimum":1,"example":1,"uniqueKey":"oneOf.2.workflow_version","typeLabel":"integer"},"mode":{"type":"string","description":"Research mode controlling depth and cost. Prices are credits per task; tool add-ons are extra. See [pricing](https://docs.valyu.ai/pricing).\n\n| Mode | Credits | Best For | Max Steps |\n| --- | --- | --- | --- |\n| `instant` | 8 | Short, cited answers in under 30 seconds | 1 |\n| `fast` | 25 | Quick queries, batch processing | 12 |\n| `standard` | 100 | Balanced research | 25 |\n| `heavy` | 500 | Complex topics requiring deep analysis | 45 |\n| `max` | 2,500 | Larger research budget for complex tasks | 75 |","enum":["instant","fast","standard","heavy","max"],"default":"standard","example":"standard","uniqueKey":"oneOf.2.mode","typeLabel":"enum\u003cstring>"},"model":{"type":"string","deprecated":true,"description":"**Deprecated.** Use `mode` instead.","enum":["fast","standard","heavy","max"],"uniqueKey":"oneOf.2.model","typeLabel":"enum\u003cstring>"},"strategy":{"type":"string","deprecated":true,"description":"**Deprecated.** Use `research_strategy` instead. Natural language strategy to guide the research agent's approach.","example":"Focus on Phase 3 trials and compare efficacy data across studies","uniqueKey":"oneOf.2.strategy","typeLabel":"string"},"research_strategy":{"type":"string","description":"Natural language strategy to guide the research phase. Controls how the agent searches, what sources to prioritize, and research methodology. Combined length of `research_strategy` and `report_format` must not exceed 15,000 characters.","maxLength":15000,"example":"Focus on Phase 3 trials and compare efficacy data across studies","uniqueKey":"oneOf.2.research_strategy","typeLabel":"string"},"report_format":{"type":"string","description":"Natural language instructions for the output format. Has highest priority and overrides default formatting. Controls structure, style, length, and presentation of the final report. Combined length of `research_strategy` and `report_format` must not exceed 15,000 characters.","maxLength":15000,"example":"Write a 2-page executive summary with bullet points and a comparison table","uniqueKey":"oneOf.2.report_format","typeLabel":"string"},"search":{"type":"object","description":"Search configuration for DeepResearch tasks.","properties":{"search_type":{"type":"string","enum":["all","web","proprietary"],"description":"Controls which data sources are searched.","default":"all","uniqueKey":"oneOf.2.search.search_type","typeLabel":"enum\u003cstring>"},"included_sources":{"type":"array","description":"Sources to include. Max 20 items.","items":{"type":"string","uniqueKey":"oneOf.2.search.included_sources.items.[INDEX]","typeLabel":"string"},"maxItems":20,"uniqueKey":"oneOf.2.search.included_sources","typeLabel":"string[]"},"excluded_sources":{"type":"array","description":"Sources to exclude. Max 20 items.","items":{"type":"string","uniqueKey":"oneOf.2.search.excluded_sources.items.[INDEX]","typeLabel":"string"},"maxItems":20,"uniqueKey":"oneOf.2.search.excluded_sources","typeLabel":"string[]"},"source_biases":{"type":"object","description":"Bias values for specific sources to influence ranking (-5 to +5). Applied to every search call during research.","additionalProperties":{"type":"integer","minimum":-5,"maximum":5,"uniqueKey":"oneOf.2.search.source_biases.additionalProperties","typeLabel":"integer"},"uniqueKey":"oneOf.2.search.source_biases","typeLabel":"object"},"country_code":{"type":"string","enum":["ALL","AR","AU","AT","BE","BR","CA","CL","DK","FI","FR","DE","HK","IN","ID","IT","JP","KR","MY","MX","NL","NZ","NO","CN","PL","PT","PH","RU","SA","ZA","ES","SE","CH","TW","TR","GB","US"],"description":"Country code for geo-targeted search.","uniqueKey":"oneOf.2.search.country_code","typeLabel":"enum\u003cstring>"},"start_date":{"type":"string","format":"date","description":"Filter results from this date. Format: `YYYY-MM-DD`.","uniqueKey":"oneOf.2.search.start_date","typeLabel":"string\u003cdate>"},"end_date":{"type":"string","format":"date","description":"Filter results until this date. Format: `YYYY-MM-DD`. Must be >= `start_date`.","uniqueKey":"oneOf.2.search.end_date","typeLabel":"string\u003cdate>"},"historical_cache":{"type":"boolean","description":"With `end_date`, pins the run to that date for backtests: research is limited to sources published by that date, and searches prefer snapshots captured on or before it. Dates before 2026 return a 400.","uniqueKey":"oneOf.2.search.historical_cache","typeLabel":"boolean"},"historical_cache_strict":{"type":"string","enum":["off","prefer","only"],"description":"Snapshot policy for a backtest run (`reference_date`, or `end_date` with `historical_cache: true`). Applies to every web search, page read, screenshot and URL in the task. `prefer` uses a snapshot captured at or before the cutoff when one exists, and otherwise reads the live page, so a page can contain text written after the cutoff. `only` never reads a live page: a page with no snapshot at or before the cutoff is dropped. `off` allows live pages without snapshot checks; the cutoff still bounds publication dates. For strict backtests, use `only`. Has no effect when the run has no cutoff.","default":"prefer","uniqueKey":"oneOf.2.search.historical_cache_strict","typeLabel":"enum\u003cstring>"},"reference_date":{"type":"string","description":"Pins the run to this date for backtests, as `historical_cache` does with `end_date`. Takes precedence over `end_date`. Format: `YYYY-MM-DD` or an ISO-8601 datetime. Dates before 2026 return a 400.","example":"2026-07-31","uniqueKey":"oneOf.2.search.reference_date","typeLabel":"string"}},"uniqueKey":"oneOf.2.search","typeLabel":"object"},"urls":{"type":"array","description":"URLs to include in the research context. Max 50. The first 10 are free. Each extra URL costs 8 credits. Scanned pages (OCR) in URL files cost 2.4 credits per page, for tasks created from 2026-11-13.","items":{"type":"string","format":"uri","uniqueKey":"oneOf.2.urls.items.[INDEX]","typeLabel":"string\u003curi>"},"maxItems":50,"example":["https://example.com/selected-trial-record"],"uniqueKey":"oneOf.2.urls","typeLabel":"string\u003curi>[]"},"files":{"type":"array","description":"Files to analyze as part of the research. Max 10. Scanned pages (OCR) cost 2.4 credits per page, for tasks created from 2026-11-13.","items":{"type":"object","description":"A file to include in the research task.","required":["data","filename","mediaType"],"properties":{"data":{"type":"string","description":"File content as a data URL. Format: `data:\u003cmediaType>;base64,\u003cbase64data>`.","example":"data:application/pdf;base64,JVBERi0xLjQK...","isRequired":true,"uniqueKey":"oneOf.2.files.items.[INDEX].data","typeLabel":"string"},"filename":{"type":"string","description":"Original filename.","example":"research_paper.pdf","isRequired":true,"uniqueKey":"oneOf.2.files.items.[INDEX].filename","typeLabel":"string"},"mediaType":{"type":"string","description":"MIME type of the file.","example":"application/pdf","isRequired":true,"uniqueKey":"oneOf.2.files.items.[INDEX].mediaType","typeLabel":"string"},"context":{"type":"string","description":"Optional context about the file to guide the research agent. Maximum 50,000 characters per file and 100,000 characters combined across all files.","maxLength":50000,"uniqueKey":"oneOf.2.files.items.[INDEX].context","typeLabel":"string"}},"uniqueKey":"oneOf.2.files.items.[INDEX]","typeLabel":"object"},"maxItems":10,"uniqueKey":"oneOf.2.files","typeLabel":"object[]"},"output_formats":{"type":"array","description":"Desired output formats. Defaults to `[\"markdown\"]`.\n\n- `\"markdown\"` - Markdown report (default)\n- `\"pdf\"` - PDF document (can combine with `\"markdown\"`)\n- `\"toon\"` - Token-efficient structured output; requires a JSON Schema object to also be supplied\n- JSON Schema object - Structured JSON output\n\nA JSON Schema object cannot be combined with `\"markdown\"` or `\"pdf\"`. `\"toon\"` requires a JSON Schema object.","items":{"oneOf":[{"type":"string","enum":["markdown","pdf","toon"],"uniqueKey":"oneOf.2.output_formats.items.[INDEX].oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"object","description":"JSON Schema for structured output.","uniqueKey":"oneOf.2.output_formats.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.2.output_formats.items.[INDEX]","typeLabel":"enum\u003cstring> | object"},"default":["markdown"],"example":["markdown","pdf"],"uniqueKey":"oneOf.2.output_formats","typeLabel":"(enum\u003cstring> | object)[]"},"metadata":{"type":"object","description":"Arbitrary key-value metadata to attach to the task.","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"oneOf.2.metadata.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"oneOf.2.metadata.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"oneOf.2.metadata.additionalProperties.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"oneOf.2.metadata.additionalProperties","typeLabel":"string | number | boolean"},"example":{"project":"drug-discovery","priority":"high"},"uniqueKey":"oneOf.2.metadata","typeLabel":"object"},"mcp_servers":{"type":"array","description":"MCP servers to provide additional tools during research. Max 5.","items":{"type":"object","description":"MCP (Model Context Protocol) server configuration for tool access during research.","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"HTTP/HTTPS URL of the MCP server.","example":"https://mcp.example.com/tools","isRequired":true,"uniqueKey":"oneOf.2.mcp_servers.items.[INDEX].url","typeLabel":"string\u003curi>"},"name":{"type":"string","description":"Display name for the MCP server.","uniqueKey":"oneOf.2.mcp_servers.items.[INDEX].name","typeLabel":"string"},"tool_prefix":{"type":"string","description":"Prefix for tool names. Defaults to the server hostname.","uniqueKey":"oneOf.2.mcp_servers.items.[INDEX].tool_prefix","typeLabel":"string"},"auth":{"type":"object","description":"Authentication configuration.","properties":{"type":{"type":"string","enum":["bearer","header","none"],"description":"Authentication type.","uniqueKey":"oneOf.2.mcp_servers.items.[INDEX].auth.type","typeLabel":"enum\u003cstring>"},"token":{"type":"string","description":"Bearer token (when `type` is `\"bearer\"`).","uniqueKey":"oneOf.2.mcp_servers.items.[INDEX].auth.token","typeLabel":"string"},"headers":{"type":"object","description":"Custom headers (when `type` is `\"header\"`).","additionalProperties":{"type":"string","uniqueKey":"oneOf.2.mcp_servers.items.[INDEX].auth.headers.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.2.mcp_servers.items.[INDEX].auth.headers","typeLabel":"object"}},"uniqueKey":"oneOf.2.mcp_servers.items.[INDEX].auth","typeLabel":"object"},"allowed_tools":{"type":"array","description":"Whitelist of tool names to expose. If omitted, all tools are available.","items":{"type":"string","uniqueKey":"oneOf.2.mcp_servers.items.[INDEX].allowed_tools.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.2.mcp_servers.items.[INDEX].allowed_tools","typeLabel":"string[]"}},"uniqueKey":"oneOf.2.mcp_servers.items.[INDEX]","typeLabel":"object"},"maxItems":5,"uniqueKey":"oneOf.2.mcp_servers","typeLabel":"object[]"},"code_execution":{"type":"boolean","description":"Deprecated: use tools.code_execution instead. Enable code execution capability.","default":false,"deprecated":true,"uniqueKey":"oneOf.2.code_execution","typeLabel":"boolean"},"tools":{"type":"object","description":"Controls which optional tools the research agent can use. Each tool accepts an object with `enabled` (boolean, default true) and optional `max_calls` (integer, capped at system default).","properties":{"x_search":{"type":"boolean","description":"X search runs automatically for organisations with X access. It costs 32 credits for each call that returns posts. Send `false` to turn it off.","default":true,"uniqueKey":"oneOf.2.tools.x_search","typeLabel":"boolean"},"code_execution":{"oneOf":[{"type":"boolean","description":"Enable code execution in a sandboxed Python environment. System default max_calls: 10.","uniqueKey":"oneOf.2.tools.code_execution.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Enable code execution in a sandboxed Python environment. System default max_calls: 10.","properties":{"enabled":{"type":"boolean","default":true,"description":"Enable or disable the tool.","uniqueKey":"oneOf.2.tools.code_execution.oneOf.1.enabled","typeLabel":"boolean"},"max_calls":{"type":"integer","description":"Max invocations per task. Capped at system default (10).","uniqueKey":"oneOf.2.tools.code_execution.oneOf.1.max_calls","typeLabel":"integer"}},"uniqueKey":"oneOf.2.tools.code_execution.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.2.tools.code_execution","typeLabel":"boolean | object"},"screenshots":{"oneOf":[{"type":"boolean","description":"Enable visual screenshot capture of web pages. System default max_calls: 15.","uniqueKey":"oneOf.2.tools.screenshots.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Enable visual screenshot capture of web pages. System default max_calls: 15.","properties":{"enabled":{"type":"boolean","default":true,"description":"Enable or disable the tool.","uniqueKey":"oneOf.2.tools.screenshots.oneOf.1.enabled","typeLabel":"boolean"},"max_calls":{"type":"integer","description":"Max invocations per task. Capped at system default (15).","uniqueKey":"oneOf.2.tools.screenshots.oneOf.1.max_calls","typeLabel":"integer"}},"uniqueKey":"oneOf.2.tools.screenshots.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.2.tools.screenshots","typeLabel":"boolean | object"},"browser_use":{"oneOf":[{"type":"boolean","description":"Enable autonomous browser sessions. System default max_calls: 5.","uniqueKey":"oneOf.2.tools.browser_use.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Enable autonomous browser sessions. System default max_calls: 5.","properties":{"enabled":{"type":"boolean","default":true,"description":"Enable or disable the tool.","uniqueKey":"oneOf.2.tools.browser_use.oneOf.1.enabled","typeLabel":"boolean"},"max_calls":{"type":"integer","description":"Max invocations per task. Capped at system default (5).","uniqueKey":"oneOf.2.tools.browser_use.oneOf.1.max_calls","typeLabel":"integer"}},"uniqueKey":"oneOf.2.tools.browser_use.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.2.tools.browser_use","typeLabel":"boolean | object"},"charts":{"oneOf":[{"type":"boolean","description":"Enable chart and graph generation embedded in the final report. Free, no per-call surcharge. Unlimited per task.","uniqueKey":"oneOf.2.tools.charts.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Enable chart and graph generation embedded in the final report. Free, no per-call surcharge. Unlimited per task.","properties":{"enabled":{"type":"boolean","default":true,"description":"Enable or disable the tool.","uniqueKey":"oneOf.2.tools.charts.oneOf.1.enabled","typeLabel":"boolean"},"max_calls":{"type":"integer","description":"Max invocations per task. Charts default is unlimited; this field is accepted for consistency.","uniqueKey":"oneOf.2.tools.charts.oneOf.1.max_calls","typeLabel":"integer"}},"uniqueKey":"oneOf.2.tools.charts.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.2.tools.charts","typeLabel":"boolean | object"}},"uniqueKey":"oneOf.2.tools","typeLabel":"object"},"previous_reports":{"type":"array","description":"DeepResearch task IDs to use as context for this task. Max 3.","items":{"type":"string","uniqueKey":"oneOf.2.previous_reports.items.[INDEX]","typeLabel":"string"},"maxItems":3,"example":["a1b2c3d4-e5f6-7890-abcd-ef1234567890"],"uniqueKey":"oneOf.2.previous_reports","typeLabel":"string[]"},"webhook_url":{"type":"string","format":"uri","description":"HTTPS URL to receive a webhook POST when the task completes. Signed with HMAC-SHA256.","example":"https://example.com/webhooks/deepresearch","uniqueKey":"oneOf.2.webhook_url","typeLabel":"string\u003curi>"},"alert_email":{"oneOf":[{"type":"string","description":"Email notification on completion. Pass a string (email address) or an object with email and optional custom_url. The custom_url must contain {id} which gets replaced with the task ID. Email must belong to your organization.","format":"email","uniqueKey":"oneOf.2.alert_email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"object","description":"Email notification on completion. Pass a string (email address) or an object with email and optional custom_url. The custom_url must contain {id} which gets replaced with the task ID. Email must belong to your organization.","required":["email"],"properties":{"email":{"type":"string","format":"email","description":"Email address to notify on completion. Must belong to your organization.","isRequired":true,"uniqueKey":"oneOf.2.alert_email.oneOf.1.email","typeLabel":"string\u003cemail>"},"custom_url":{"type":"string","format":"uri","description":"Custom URL template for the report link in the email. Must contain {id} which gets replaced with the deepresearch task ID.","example":"https://example.com/reports/{id}","uniqueKey":"oneOf.2.alert_email.oneOf.1.custom_url","typeLabel":"string\u003curi>"}},"uniqueKey":"oneOf.2.alert_email.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.2.alert_email","typeLabel":"string\u003cemail> | object"},"brand_collection_id":{"type":"string","description":"Brand kit to apply to the PDF report and the deliverables. Send a kit ID from the Valyu platform, or `\"none\"` for no branding. If you don't send it, the organisation's default kit applies to the report and any deliverables, if the default kit is ready. Brand kits need the Comfortably Pro, Serious Business or Enterprise plan. See [Brand kits](/guides/deepresearch-brand-kits).","example":"YOUR_KIT_ID","uniqueKey":"oneOf.2.brand_collection_id","typeLabel":"string"},"cover_art":{"type":"object","description":"Cover art for this one report. It replaces the brand kit's cover art on the PDF report cover, the PDF deliverable and the title slide of a PPTX deck, and works without a kit. Send exactly one of `data` or `url`. The picture must be a PNG or JPEG, at most 2 MB after base64 decoding, and at least 800 px on the short side. Cropping it to the A4 page must keep at least 25% of it. For a large picture, send `url`. A malformed field returns `400`. A picture that cannot be used, including a private or unreachable `url`, never fails the task: the kit's cover art or the standard cover applies, and `warnings` carries `cover_art_not_used`. See [Brand kits](/guides/deepresearch-brand-kits).","properties":{"kind":{"type":"string","enum":["image","pattern"],"default":"image","description":"`image` for a photo or illustration. `pattern` for a brand graphic, which is veiled more so it stays quiet.","uniqueKey":"oneOf.2.cover_art.kind","typeLabel":"enum\u003cstring>"},"data":{"type":"string","maxLength":6000000,"description":"The picture as a data URL (`data:image/png;base64,...`) or plain base64.","uniqueKey":"oneOf.2.cover_art.data","typeLabel":"string"},"url":{"type":"string","maxLength":2048,"description":"A public https URL of the picture. DeepResearch fetches it when it renders the report.","uniqueKey":"oneOf.2.cover_art.url","typeLabel":"string"},"filename":{"type":"string","maxLength":255,"description":"The file name. Optional.","uniqueKey":"oneOf.2.cover_art.filename","typeLabel":"string"},"mediaType":{"type":"string","maxLength":100,"description":"`image/png` or `image/jpeg`. Optional. Checked against the file.","uniqueKey":"oneOf.2.cover_art.mediaType","typeLabel":"string"}},"uniqueKey":"oneOf.2.cover_art","typeLabel":"object"},"deliverables":{"type":"array","description":"Deliverable files to generate from the research (e.g. Excel reports, presentations). Max 10.","items":{"oneOf":[{"type":"string","description":"A deliverable to generate from the research. Can be a string (natural language description, max 500 chars) or a structured object.","maxLength":500,"uniqueKey":"oneOf.2.deliverables.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"A deliverable to generate from the research. Can be a string (natural language description, max 500 chars) or a structured object.","required":["type","description"],"properties":{"type":{"type":"string","enum":["csv","xlsx","pptx","docx","pdf","json","html"],"description":"File format for the deliverable. `json` is a structured data file, optionally checked against your `schema`. `html` is a self-contained interactive web page of the report.","isRequired":true,"uniqueKey":"oneOf.2.deliverables.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","maxLength":500,"description":"Description of what the deliverable should contain.","isRequired":true,"uniqueKey":"oneOf.2.deliverables.items.[INDEX].oneOf.1.description","typeLabel":"string"},"columns":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.2.deliverables.items.[INDEX].oneOf.1.columns.items.[INDEX]","typeLabel":"string"},"description":"Suggested column names for tabular deliverables (csv, xlsx).","uniqueKey":"oneOf.2.deliverables.items.[INDEX].oneOf.1.columns","typeLabel":"string[]"},"schema":{"type":"object","description":"JSON Schema that the `json` deliverable must validate against. Optional. Without it, the file has the default shape (`title`, `as_of`, `summary`, `key_findings`, `tables`, `sources`). JSON Schema 2020-12 is the default. Draft-07 is used when the `$schema` header says so, or when the schema uses the draft-07 tuple form `items: [...]`. `$defs`, `definitions` and recursive references work. Only internal `$ref` values (`#/...`) are allowed. Patterns in `pattern` and `patternProperties` use RE2 syntax, so lookahead, lookbehind and backreferences are refused. The maximum size is 20,000 characters. Formats such as `email`, `date`, `date-time` and `uri` are checked. OpenAPI `nullable: true` is accepted. An invalid schema returns `400` with the code `DELIVERABLE_SCHEMA_INVALID`. On any other type, `schema` is ignored and the task gets a `deliverable_adjusted` warning. This field is separate from `output_formats`, which shapes the report itself.","uniqueKey":"oneOf.2.deliverables.items.[INDEX].oneOf.1.schema","typeLabel":"object"}},"uniqueKey":"oneOf.2.deliverables.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.2.deliverables.items.[INDEX]","typeLabel":"string | object"},"maxItems":10,"uniqueKey":"oneOf.2.deliverables","typeLabel":"(string | object)[]"},"hitl":{"type":"object","description":"Human-in-the-loop configuration. Enable checkpoints that pause execution at key decision points. Not available for batch requests.","properties":{"planning_questions":{"type":"boolean","description":"Pause before research to ask clarifying questions.","default":false,"uniqueKey":"oneOf.2.hitl.planning_questions","typeLabel":"boolean"},"plan_review":{"type":"boolean","description":"Pause after planning for user to review the research plan.","default":false,"uniqueKey":"oneOf.2.hitl.plan_review","typeLabel":"boolean"},"source_review":{"type":"boolean","description":"Pause after research for user to filter sources by domain.","default":false,"uniqueKey":"oneOf.2.hitl.source_review","typeLabel":"boolean"},"outline_review":{"type":"boolean","description":"Pause after source review for user to review the report outline.","default":false,"uniqueKey":"oneOf.2.hitl.outline_review","typeLabel":"boolean"}},"uniqueKey":"oneOf.2.hitl","typeLabel":"object"},"share_with":{"type":"array","description":"People or company domains who can open the report. Each entry is an email address (`name@company.com`) or a whole company domain (`@company.com`). The report stays private: only these people and members of your organization can open it. Viewers open the share link and sign in to Valyu with that email address, which must be verified. A domain covers anyone with a verified email at exactly that domain, not its subdomains. Public email providers such as gmail.com and outlook.com can't be shared as a domain; add those people individually. An invalid entry returns `400` and no task is created. Max 100. See [Share a report](https://docs.valyu.ai/guides/deepresearch-sharing).","items":{"type":"string","uniqueKey":"oneOf.2.share_with.items.[INDEX]","typeLabel":"string"},"maxItems":100,"example":["anna@client.com","@acme.com"],"uniqueKey":"oneOf.2.share_with","typeLabel":"string[]"},"share_notify":{"type":"boolean","description":"Email each person in `share_with` a link to the report. Domains are never emailed.","default":true,"uniqueKey":"oneOf.2.share_notify","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"basic":{"title":"basic","summary":"Basic research task","value":{"query":"Comprehensive analysis of CRISPR gene therapy clinical trials in 2024","mode":"standard"}},"advanced":{"title":"advanced","summary":"Advanced research with PDF output and file attachments","value":{"query":"Compare efficacy data across Phase 3 CRISPR trials","mode":"heavy","research_strategy":"Focus on safety profiles, patient outcomes, and regulatory pathways","output_formats":["markdown","pdf"],"search":{"search_type":"proprietary","included_sources":["medical"],"start_date":"2023-01-01"},"urls":["https://example.com/selected-trial-record"],"webhook_url":"https://example.com/webhooks/deepresearch"}},"structured":{"title":"structured","summary":"Structured JSON output","value":{"query":"Top 10 AI companies by funding raised in 2024","mode":"fast","output_formats":[{"type":"object","properties":{"companies":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"funding_millions":{"type":"number"},"focus_area":{"type":"string"}}}}}}]}},"shared":{"title":"shared","summary":"Research and share with specific people","value":{"query":"Market map of European battery recycling companies","mode":"standard","share_with":["anna@client.com","@acme.com"]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"03548a10-64cc-4e80-aff5-cf65b13a6b74":{"description":"Research task created and queued.","content":{"application/json":{"schema":{"type":"object","description":"Response after creating a DeepResearch task.","required":["deepresearch_id","status","mode","created_at"],"properties":{"deepresearch_id":{"type":"string","description":"Unique identifier for the research task.","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","isRequired":true,"uniqueKey":"deepresearch_id","typeLabel":"string"},"status":{"type":"string","description":"Initial task status. `\"running\"` if started immediately, `\"queued\"` if waiting for capacity.","enum":["running","queued"],"example":"running","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"mode":{"type":"string","description":"Research mode used for this task.","enum":["fast","standard","heavy","max"],"example":"standard","isRequired":true,"uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"created_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of task creation.","example":"2024-06-15T10:30:00.000Z","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"metadata":{"type":"object","description":"Metadata attached to the task.","additionalProperties":true,"uniqueKey":"metadata","typeLabel":"object"},"public":{"type":"boolean","description":"Whether the task is publicly accessible.","example":false,"uniqueKey":"public","typeLabel":"boolean"},"webhook_secret":{"type":"string","description":"HMAC-SHA256 secret for verifying webhook payloads. Only present when `webhook_url` was provided.","uniqueKey":"webhook_secret","typeLabel":"string"},"message":{"type":"string","description":"Status message. Present when task is queued.","uniqueKey":"message","typeLabel":"string"},"warnings":{"type":"array","description":"Problems with the request, for example named datasets outside your plan, a tool the mode doesn't have, a `cover_art` that cannot be used, or `share_with_not_applied` when sharing could not be applied after the task was created. The task still runs. Each entry is an object with `type`, `message` and an optional `detail`, not a string. New warning types may be added at any time. See [Warnings](https://docs.valyu.ai/api-reference/warnings).","items":{"type":"object","description":"Something the request skipped or adjusted. A warning means the request succeeded. New `type` values may be added at any time, so handle unknown ones by showing `message`. See [Warnings](https://docs.valyu.ai/api-reference/warnings).","required":["type","message"],"properties":{"type":{"type":"string","description":"Stable snake_case warning type, for example `datasets_not_in_plan`. New types may be added at any time.","example":"datasets_not_in_plan","isRequired":true,"uniqueKey":"warnings.items.[INDEX].type","typeLabel":"string"},"message":{"type":"string","description":"Self-contained sentence, safe to show a user or for an agent to relay as-is.","example":"Your Pay-as-you-go plan doesn't include valyu/valyu-chemrxiv (Comfortably Pro, $99/mo), so it was skipped. Results come from your other sources. Comfortably Pro ($99/mo) includes it: https://platform.valyu.ai/user/account/billing?tab=plan","isRequired":true,"uniqueKey":"warnings.items.[INDEX].message","typeLabel":"string"},"detail":{"oneOf":[{"type":"object","description":"Optional type-specific structured fields, including any URLs.","additionalProperties":true,"example":{"datasets":[{"id":"valyu/valyu-chemrxiv","required_plan":"tier_2"}],"current_plan":"tier_0","required_plan":{"id":"tier_2","name":"Comfortably Pro","price":"$99/mo"},"upgrade_url":"https://platform.valyu.ai/user/account/billing?tab=plan"},"uniqueKey":"warnings.items.[INDEX].detail.oneOf.0","typeLabel":"object"},{"type":"null","description":"Optional type-specific structured fields, including any URLs.","additionalProperties":true,"example":{"datasets":[{"id":"valyu/valyu-chemrxiv","required_plan":"tier_2"}],"current_plan":"tier_0","required_plan":{"id":"tier_2","name":"Comfortably Pro","price":"$99/mo"},"upgrade_url":"https://platform.valyu.ai/user/account/billing?tab=plan"},"uniqueKey":"warnings.items.[INDEX].detail.oneOf.1","typeLabel":"null"}],"uniqueKey":"warnings.items.[INDEX].detail","typeLabel":"object | null"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"warnings","typeLabel":"object[]"},"sharing":{"type":"object","description":"Who the report is shared with. Present when `share_with` was applied.","required":["share_url","shared_with","notified"],"properties":{"share_url":{"type":"string","format":"uri","description":"Link to the report. Viewers sign in to Valyu with an email the report is shared with.","example":"https://platform.valyu.ai/share/a1b2c3d4-e5f6-7890-abcd-ef1234567890","isRequired":true,"uniqueKey":"sharing.share_url","typeLabel":"string\u003curi>"},"shared_with":{"type":"array","description":"People and domains the report is shared with.","items":{"type":"object","description":"One person or company domain the report is shared with. Each entry has either `email` or `domain`.","required":["added_at"],"properties":{"added_at":{"type":"string","format":"date-time","description":"When the person or domain was added.","example":"2026-11-12T10:30:00.000Z","isRequired":true,"uniqueKey":"sharing.shared_with.items.[INDEX].added_at","typeLabel":"string\u003cdate-time>"},"email":{"type":"string","format":"email","description":"Email address of a person the report is shared with.","example":"anna@client.com","uniqueKey":"sharing.shared_with.items.[INDEX].email","typeLabel":"string\u003cemail>"},"domain":{"type":"string","description":"Company domain the report is shared with, without the leading `@`. Covers anyone with a verified email at exactly this domain.","example":"acme.com","uniqueKey":"sharing.shared_with.items.[INDEX].domain","typeLabel":"string"},"notified_at":{"type":"string","format":"date-time","description":"When the person was last emailed a link. Absent if they were never emailed. Domains are never emailed.","example":"2026-11-12T10:30:01.000Z","uniqueKey":"sharing.shared_with.items.[INDEX].notified_at","typeLabel":"string\u003cdate-time>"},"last_viewed_at":{"type":"string","format":"date-time","description":"When the person last opened the report. Absent if they haven't opened it.","example":"2026-11-12T14:05:00.000Z","uniqueKey":"sharing.shared_with.items.[INDEX].last_viewed_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"sharing.shared_with.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"sharing.shared_with","typeLabel":"object[]"},"notified":{"type":"array","description":"Email addresses that were sent a link to the report.","items":{"type":"string","format":"email","uniqueKey":"sharing.notified.items.[INDEX]","typeLabel":"string\u003cemail>"},"example":["anna@client.com"],"isRequired":true,"uniqueKey":"sharing.notified","typeLabel":"string\u003cemail>[]"}},"uniqueKey":"sharing","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"running":{"title":"running","summary":"Task started immediately","value":{"deepresearch_id":"f992a8ab-4c91-4322-905f-190107bd5a5b","status":"running","mode":"standard","created_at":"2024-06-15T10:30:00.000Z","metadata":{"project":"drug-discovery"},"public":false}},"queued":{"title":"queued","summary":"Task queued (capacity limit)","value":{"deepresearch_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","status":"queued","mode":"heavy","created_at":"2024-06-15T10:30:00.000Z","public":false,"message":"Task queued. Current position: 3","webhook_secret":"EXAMPLE_WEBHOOK_SECRET_REPLACE_WITH_RETURNED_VALUE"}},"shared":{"title":"shared","summary":"Task created and shared","value":{"deepresearch_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","status":"running","mode":"standard","created_at":"2026-11-12T10:30:00.000Z","public":false,"sharing":{"share_url":"https://platform.valyu.ai/share/a1b2c3d4-e5f6-7890-abcd-ef1234567890","shared_with":[{"email":"anna@client.com","added_at":"2026-11-12T10:30:00.000Z"},{"domain":"acme.com","added_at":"2026-11-12T10:30:00.000Z"}],"notified":["anna@client.com"]}}}},"exampleType":"examples"}},"exampleType":"examples"},"b0351963-94cc-495d-a4ab-834b2ee2afcc":{"description":"The request was malformed or contained invalid parameters.","content":{"application/json":{"schema":{"type":"object","description":"Error response. Every error body has `error`. Search, Contents, Answer and Datasources errors usually also carry `success: false`. Errors returned before a request reaches the endpoint (missing, invalid or disabled keys, rate limits) and DeepResearch errors have no `success` field. Some errors add a machine-readable `code` and a `recovery` object.","required":["error"],"properties":{"error":{"type":"string","description":"Error message, or a machine-readable code for some errors (for example `invalid_scope_policy`, or `rate_limited` on a `429`).","example":"Invalid request parameters","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"success":{"type":"boolean","description":"`false` when present.","example":false,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"Human-readable detail. Present on errors returned before the request reaches the endpoint.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable error code, when available. Branch on this rather than on the message text.","example":"insufficient_credits","uniqueKey":"code","typeLabel":"string"},"recovery":{"type":"object","description":"Links or details that help resolve the error, when available.","additionalProperties":true,"uniqueKey":"recovery","typeLabel":"object"},"transaction_id":{"type":"string","description":"Transaction ID for support, when available.","uniqueKey":"transaction_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","summary":"Invalid parameters","value":{"success":false,"error":"Invalid search_type. Must be 'all', 'web', 'proprietary', or 'news'"}}},"exampleType":"examples"}},"exampleType":"examples"},"a2085639-0fd1-4776-ab7e-367bf84bb061":{"description":"Missing or invalid API key. Send your key in the `X-API-Key` header.","content":{"application/json":{"schema":{"type":"object","description":"Error response. Every error body has `error`. Search, Contents, Answer and Datasources errors usually also carry `success: false`. Errors returned before a request reaches the endpoint (missing, invalid or disabled keys, rate limits) and DeepResearch errors have no `success` field. Some errors add a machine-readable `code` and a `recovery` object.","required":["error"],"properties":{"error":{"type":"string","description":"Error message, or a machine-readable code for some errors (for example `invalid_scope_policy`, or `rate_limited` on a `429`).","example":"Invalid request parameters","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"success":{"type":"boolean","description":"`false` when present.","example":false,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"Human-readable detail. Present on errors returned before the request reaches the endpoint.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable error code, when available. Branch on this rather than on the message text.","example":"insufficient_credits","uniqueKey":"code","typeLabel":"string"},"recovery":{"type":"object","description":"Links or details that help resolve the error, when available.","additionalProperties":true,"uniqueKey":"recovery","typeLabel":"object"},"transaction_id":{"type":"string","description":"Transaction ID for support, when available.","uniqueKey":"transaction_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"missing_or_invalid":{"title":"missing_or_invalid","summary":"Missing or invalid API key","value":{"error":"Unauthorized","message":"API key is missing or invalid"}},"invalid_key":{"title":"invalid_key","summary":"Invalid API key (endpoint response)","value":{"success":false,"error":"Invalid API key"}}},"exampleType":"examples"}},"exampleType":"examples"},"fb3d40d4-b9e3-447b-9362-1c801550ffc4":{"description":"The task can't be paid for, so it was not created. Nothing is charged.\n\nWhen you create a task, its mode's base price is held against your balance until the task is charged. `available` in the message is your balance minus amounts already held for your other queued and running tasks. DeepResearch error bodies have `error` (and `code` for budget caps) but no `success` field.","content":{"application/json":{"schema":{"type":"object","description":"Error response. Every error body has `error`. Search, Contents, Answer and Datasources errors usually also carry `success: false`. Errors returned before a request reaches the endpoint (missing, invalid or disabled keys, rate limits) and DeepResearch errors have no `success` field. Some errors add a machine-readable `code` and a `recovery` object.","required":["error"],"properties":{"error":{"type":"string","description":"Error message, or a machine-readable code for some errors (for example `invalid_scope_policy`, or `rate_limited` on a `429`).","example":"Invalid request parameters","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"success":{"type":"boolean","description":"`false` when present.","example":false,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"Human-readable detail. Present on errors returned before the request reaches the endpoint.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable error code, when available. Branch on this rather than on the message text.","example":"insufficient_credits","uniqueKey":"code","typeLabel":"string"},"recovery":{"type":"object","description":"Links or details that help resolve the error, when available.","additionalProperties":true,"uniqueKey":"recovery","typeLabel":"object"},"transaction_id":{"type":"string","description":"Transaction ID for support, when available.","uniqueKey":"transaction_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"insufficient":{"title":"insufficient","summary":"Balance does not cover the task price","value":{"error":"Insufficient credits."}},"no_balance":{"title":"no_balance","summary":"Balance exhausted","value":{"error":"Insufficient credits. Please top up your account."}},"limit":{"title":"limit","summary":"Monthly usage limit reached","value":{"error":"Monthly credit limit exceeded. Please increase your limits."}},"spend_cap":{"title":"spend_cap","summary":"API key budget cap reached","value":{"error":"API key budget cap reached. Raise the key's credit cap or use an uncapped key.","code":"spend_cap_reached"}}},"exampleType":"examples"}},"exampleType":"examples"},"57863eba-66b7-48b8-a2eb-9e3b810edb18":{"description":"The API key is disabled, revoked or lacks permission for this operation. A request over the rate limit returns `429`, not `403`.","content":{"application/json":{"schema":{"type":"object","description":"Error response. Every error body has `error`. Search, Contents, Answer and Datasources errors usually also carry `success: false`. Errors returned before a request reaches the endpoint (missing, invalid or disabled keys, rate limits) and DeepResearch errors have no `success` field. Some errors add a machine-readable `code` and a `recovery` object.","required":["error"],"properties":{"error":{"type":"string","description":"Error message, or a machine-readable code for some errors (for example `invalid_scope_policy`, or `rate_limited` on a `429`).","example":"Invalid request parameters","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"success":{"type":"boolean","description":"`false` when present.","example":false,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"Human-readable detail. Present on errors returned before the request reaches the endpoint.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable error code, when available. Branch on this rather than on the message text.","example":"insufficient_credits","uniqueKey":"code","typeLabel":"string"},"recovery":{"type":"object","description":"Links or details that help resolve the error, when available.","additionalProperties":true,"uniqueKey":"recovery","typeLabel":"object"},"transaction_id":{"type":"string","description":"Transaction ID for support, when available.","uniqueKey":"transaction_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"forbidden":{"title":"forbidden","summary":"Key disabled or revoked","value":{"error":"Forbidden","message":"Access denied - API key is invalid, disabled, or revoked"}},"permission":{"title":"permission","summary":"Key lacks permission","value":{"success":false,"error":"API key does not have inference permission"}}},"exampleType":"examples"}},"exampleType":"examples"},"35bace8d-0272-4392-8cf5-4b6a9b980a1a":{"description":"Over this endpoint's rate limit for your plan. Nothing is charged. Wait `retry_after` seconds (the `Retry-After` header), then retry with backoff. See [Rate limits](https://docs.valyu.ai/api-reference/overview#rate-limits).\n\n`message` is a sentence you can relay that names the limit and how to raise it. `error` and `code` are both `rate_limited`, and `recovery` repeats `retry_after`, `plan`, `limit` and `upgrade_url` (`contact_url` on the top plans), which also stay at the top level.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","description":"Error response. Every error body has `error`. Search, Contents, Answer and Datasources errors usually also carry `success: false`. Errors returned before a request reaches the endpoint (missing, invalid or disabled keys, rate limits) and DeepResearch errors have no `success` field. Some errors add a machine-readable `code` and a `recovery` object.","required":["error"],"properties":{"error":{"type":"string","description":"Error message, or a machine-readable code for some errors (for example `invalid_scope_policy`, or `rate_limited` on a `429`).","example":"Invalid request parameters","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"success":{"type":"boolean","description":"`false` when present.","example":false,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"Human-readable detail. Present on errors returned before the request reaches the endpoint.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable error code, when available. Branch on this rather than on the message text.","example":"insufficient_credits","uniqueKey":"code","typeLabel":"string"},"recovery":{"type":"object","description":"Links or details that help resolve the error, when available.","additionalProperties":true,"uniqueKey":"recovery","typeLabel":"object"},"transaction_id":{"type":"string","description":"Transaction ID for support, when available.","uniqueKey":"transaction_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"rate_limited":{"title":"rate_limited","summary":"Search rate limit reached","value":{"error":"rate_limited","code":"rate_limited","message":"Search rate limit reached: your Pay-as-you-go plan allows 5 requests per second. Retry after 2 seconds. Upgrade to Ridiculously Cheap for 10 requests per second: https://platform.valyu.ai/user/account/billing?tab=plan","retry_after":2,"plan":"Pay-as-you-go","limit":{"endpoint":"search","requests_per_second":5},"upgrade_url":"https://platform.valyu.ai/user/account/billing?tab=plan","recovery":{"retry_after":2,"upgrade_url":"https://platform.valyu.ai/user/account/billing?tab=plan","plan":"Pay-as-you-go","limit":{"endpoint":"search","requests_per_second":5}}}}},"exampleType":"examples"}},"exampleType":"examples"},"fdbd6d39-9900-402c-8f0c-fd37e42bf2bf":{"description":"An unexpected error occurred on the server.","content":{"application/json":{"schema":{"type":"object","description":"Error response. Every error body has `error`. Search, Contents, Answer and Datasources errors usually also carry `success: false`. Errors returned before a request reaches the endpoint (missing, invalid or disabled keys, rate limits) and DeepResearch errors have no `success` field. Some errors add a machine-readable `code` and a `recovery` object.","required":["error"],"properties":{"error":{"type":"string","description":"Error message, or a machine-readable code for some errors (for example `invalid_scope_policy`, or `rate_limited` on a `429`).","example":"Invalid request parameters","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"success":{"type":"boolean","description":"`false` when present.","example":false,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"Human-readable detail. Present on errors returned before the request reaches the endpoint.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable error code, when available. Branch on this rather than on the message text.","example":"insufficient_credits","uniqueKey":"code","typeLabel":"string"},"recovery":{"type":"object","description":"Links or details that help resolve the error, when available.","additionalProperties":true,"uniqueKey":"recovery","typeLabel":"object"},"transaction_id":{"type":"string","description":"Transaction ID for support, when available.","uniqueKey":"transaction_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","summary":"Internal error","value":{"success":false,"error":"Internal server error. Please try again later."}}},"exampleType":"examples"}},"exampleType":"examples"},"f319284e-2a68-4d39-912f-4126489f96bd":{"description":"Billing could not be checked, so no task was created and nothing was charged. Retry with exponential backoff.","content":{"application/json":{"schema":{"type":"object","description":"Error response. Every error body has `error`. Search, Contents, Answer and Datasources errors usually also carry `success: false`. Errors returned before a request reaches the endpoint (missing, invalid or disabled keys, rate limits) and DeepResearch errors have no `success` field. Some errors add a machine-readable `code` and a `recovery` object.","required":["error"],"properties":{"error":{"type":"string","description":"Error message, or a machine-readable code for some errors (for example `invalid_scope_policy`, or `rate_limited` on a `429`).","example":"Invalid request parameters","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"success":{"type":"boolean","description":"`false` when present.","example":false,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"Human-readable detail. Present on errors returned before the request reaches the endpoint.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable error code, when available. Branch on this rather than on the message text.","example":"insufficient_credits","uniqueKey":"code","typeLabel":"string"},"recovery":{"type":"object","description":"Links or details that help resolve the error, when available.","additionalProperties":true,"uniqueKey":"recovery","typeLabel":"object"},"transaction_id":{"type":"string","description":"Transaction ID for support, when available.","uniqueKey":"transaction_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"billing_unavailable":{"title":"billing_unavailable","summary":"Billing temporarily unavailable","value":{"error":"Billing temporarily unavailable"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"84b82f72-aa5c-41a5-b5cd-ff37871d5319":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key for authentication. Get yours at [platform.valyu.ai](https://platform.valyu.ai).","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"5c79bd7d-3d0c-4d75-84fd-9ae5ec5a00cb":{"url":"https://api.valyu.ai","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key for authentication. Get yours at [platform.valyu.ai](https://platform.valyu.ai).","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-API-Key","type":"string","description":"API key for authentication. Get yours at [platform.valyu.ai](https://platform.valyu.ai).","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"valyu","siteName":"Valyu","title":"Create a DeepResearch task - POST /v1/deepresearch/tasks | Valyu","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-19T15:02:53.848Z","originalFileLocation":"api-reference/endpoint/deepresearch-create.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"POST /v1/deepresearch/tasks reference: create a DeepResearch task with a mode from instant to max, output format, deliverables, sources, tools and webhooks.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Valyu\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/valyu/CrEJpfpruXuhNB-H/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/valyu/CrEJpfpruXuhNB-H/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/valyu/CrEJpfpruXuhNB-H/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/valyu/CrEJpfpruXuhNB-H/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/valyu/CrEJpfpruXuhNB-H/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/valyu/CrEJpfpruXuhNB-H/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/valyu/CrEJpfpruXuhNB-H/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/valyu/CrEJpfpruXuhNB-H/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/valyu/CrEJpfpruXuhNB-H/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a DeepResearch task - POST /v1/deepresearch/tasks | Valyu\">\u003cmeta data-mint-head property=\"og:description\" content=\"POST /v1/deepresearch/tasks reference: create a DeepResearch task with a mode from instant to max, output format, deliverables, sources, tools and webhooks.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Valyu\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.valyu.ai/api-reference/endpoint/deepresearch-create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://valyu.mintlify.site/_mintlify/api/og/v2?division=DeepResearch\u0026amp;title=Create+Task\u0026amp;description=POST+%2Fv1%2Fdeepresearch%2Ftasks+reference%3A+create+a+DeepResearch+task+with+a+mode+from+instant+to+max%2C+output+format%2C+deliverables%2C+sources%2C+tools+and+webhooks.\u0026amp;theme=7528e5ca25897701bdb29a0a\u0026amp;signature=bfd3100ed14eee33ce0226cfa2dabbea2effd2fda7fc0e29e68eddb902de510d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a DeepResearch task - POST /v1/deepresearch/tasks | Valyu\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"POST /v1/deepresearch/tasks reference: create a DeepResearch task with a mode from instant to max, output format, deliverables, sources, tools and webhooks.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://valyu.mintlify.site/_mintlify/api/og/v2?division=DeepResearch\u0026amp;title=Create+Task\u0026amp;description=POST+%2Fv1%2Fdeepresearch%2Ftasks+reference%3A+create+a+DeepResearch+task+with+a+mode+from+instant+to+max%2C+output+format%2C+deliverables%2C+sources%2C+tools+and+webhooks.\u0026amp;theme=7528e5ca25897701bdb29a0a\u0026amp;signature=bfd3100ed14eee33ce0226cfa2dabbea2effd2fda7fc0e29e68eddb902de510d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/valyu/CrEJpfpruXuhNB-H/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Valyu\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5E3454\">\u003cmeta data-mint-head name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\u003cmeta data-mint-head name=\"twitter:creator\" content=\"@ValyuOfficial\">\u003cmeta data-mint-head name=\"googlebot\" content=\"index, follow\">\u003cmeta data-mint-head name=\"author\" content=\"Valyu\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.valyu.ai/api-reference/endpoint/deepresearch-create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/deepresearch-create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.valyu.ai/#organization\",\"name\":\"Valyu\",\"url\":\"https://www.valyu.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/valyu/XSNGAn-w-x47KJwH/logo/valyu-wordmark-light.svg?fit=max\u0026auto=format\u0026n=XSNGAn-w-x47KJwH\u0026q=85\u0026s=334dd47b5c8dd1f11877b78e19848e24\"},\"sameAs\":[\"https://x.com/ValyuOfficial\",\"https://linkedin.com/company/valyu-ai\",\"https://github.com/valyuAI\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.valyu.ai#website\",\"name\":\"Valyu\",\"url\":\"https://docs.valyu.ai\",\"publisher\":{\"@id\":\"https://www.valyu.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.valyu.ai/api-reference/endpoint/deepresearch-create#webpage\",\"url\":\"https://docs.valyu.ai/api-reference/endpoint/deepresearch-create\",\"name\":\"Create Task\",\"description\":\"POST /v1/deepresearch/tasks reference: create a DeepResearch task with a mode from instant to max, output format, deliverables, sources, tools and webhooks.\",\"dateModified\":\"2026-11-19T15:02:53.848Z\",\"isPartOf\":{\"@id\":\"https://docs.valyu.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.valyu.ai/api-reference/endpoint/deepresearch-create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.valyu.ai/api-reference/endpoint/deepresearch-create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Valyu\",\"item\":\"https://docs.valyu.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Task\",\"item\":\"https://docs.valyu.ai/api-reference/endpoint/deepresearch-create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.valyu.ai/api-reference/endpoint/deepresearch-create#apireference\",\"headline\":\"Create Task\",\"name\":\"Create Task\",\"description\":\"POST /v1/deepresearch/tasks reference: create a DeepResearch task with a mode from instant to max, output format, deliverables, sources, tools and webhooks.\",\"url\":\"https://docs.valyu.ai/api-reference/endpoint/deepresearch-create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.valyu.ai/api-reference/endpoint/deepresearch-create#webpage\"},\"dateModified\":\"2026-11-19T15:02:53.848Z\",\"publisher\":{\"@id\":\"https://www.valyu.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.valyu.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Valyu\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Valyu\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/deepresearch-create.md","siteName":"Valyu","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/home"}]},{"tab":"API Reference","icon":"code","groups":[{"group":"API essentials","pages":[{"title":"API reference","sidebarTitle":"Overview","href":"/api-reference/overview"},{"title":"Warnings","href":"/api-reference/warnings"}]},{"group":"Search","icon":"magnifying-glass","pages":[{"title":"Search","openapi":"POST /v1/search","href":"/api-reference/endpoint/search"}]},{"group":"Contents","icon":"file-lines","pages":[{"title":"Contents","openapi":"POST /v1/contents","href":"/api-reference/endpoint/contents"},{"title":"Contents Job Status","openapi":"GET /v1/contents/jobs/{job_id}","href":"/api-reference/endpoint/contents-job"}]},{"group":"Answer (deprecated)","icon":"message","pages":[{"title":"Answer","deprecated":true,"description":"Deprecated. POST /v1/answer sunsets on December 17, 2026. Migrate to DeepResearch instant mode or to Search with your own model.","openapi":"POST /v1/answer","href":"/api-reference/endpoint/answer"}]},{"group":"DeepResearch","icon":"flask","pages":[{"title":"Create Task","openapi":"POST /v1/deepresearch/tasks","href":"/api-reference/endpoint/deepresearch-create"},{"title":"Get Status","description":"Reference for getting deep research task status via GET /v1/deepresearch/tasks/\\{id\\}/status.","openapi":"GET /v1/deepresearch/tasks/{id}/status","href":"/api-reference/endpoint/deepresearch-status"},{"title":"List Tasks","openapi":"GET /v1/deepresearch/list","href":"/api-reference/endpoint/deepresearch-list"},{"title":"Update Task","openapi":"POST /v1/deepresearch/tasks/{id}/update","href":"/api-reference/endpoint/deepresearch-update"},{"title":"Create Edit","openapi":"POST /v1/deepresearch/tasks/{id}/edit","href":"/api-reference/endpoint/deepresearch-edit-create"},{"title":"Get Edit","openapi":"GET /v1/deepresearch/tasks/{id}/edits/{edit_id}","href":"/api-reference/endpoint/deepresearch-edit-get"},{"title":"List Edits","openapi":"GET /v1/deepresearch/tasks/{id}/edits","href":"/api-reference/endpoint/deepresearch-edit-list"},{"title":"List Versions","openapi":"GET /v1/deepresearch/tasks/{id}/versions","href":"/api-reference/endpoint/deepresearch-versions-list"},{"title":"Restore Version","openapi":"POST /v1/deepresearch/tasks/{id}/versions/{n}/restore","href":"/api-reference/endpoint/deepresearch-versions-restore"},{"title":"Toggle Public Access","openapi":"POST /v1/deepresearch/tasks/{id}/public","href":"/api-reference/endpoint/deepresearch-public"},{"title":"Get Sharing","openapi":"GET /v1/deepresearch/tasks/{id}/share","href":"/api-reference/endpoint/deepresearch-share-get"},{"title":"Update Sharing","openapi":"POST /v1/deepresearch/tasks/{id}/share","href":"/api-reference/endpoint/deepresearch-share-update"},{"title":"Respond to HITL Checkpoint","openapi":"POST /v1/deepresearch/tasks/{id}/respond","href":"/api-reference/endpoint/deepresearch-respond"},{"title":"Cancel Task","openapi":"POST /v1/deepresearch/tasks/{id}/cancel","href":"/api-reference/endpoint/deepresearch-cancel"},{"title":"Delete Task","openapi":"DELETE /v1/deepresearch/tasks/{id}/delete","href":"/api-reference/endpoint/deepresearch-delete"}]},{"group":"DeepResearch (Batch)","icon":"layer-group","pages":[{"title":"Create Batch","openapi":"POST /v1/deepresearch/batches","href":"/api-reference/endpoint/deepresearch-batch-create"},{"title":"List Batches","openapi":"GET /v1/deepresearch/batches","href":"/api-reference/endpoint/deepresearch-batch-list"},{"title":"Get Batch Status","openapi":"GET /v1/deepresearch/batches/{id}","href":"/api-reference/endpoint/deepresearch-batch-status"},{"title":"Add Tasks to Batch","openapi":"POST /v1/deepresearch/batches/{id}/tasks","href":"/api-reference/endpoint/deepresearch-batch-add-tasks"},{"title":"List Batch Tasks","openapi":"GET /v1/deepresearch/batches/{id}/tasks","href":"/api-reference/endpoint/deepresearch-batch-list-tasks"},{"title":"Cancel Batch","openapi":"POST /v1/deepresearch/batches/{id}/cancel","href":"/api-reference/endpoint/deepresearch-batch-cancel"}]},{"group":"Workflows","icon":"diagram-project","tag":"Beta","pages":[{"title":"List Workflows","openapi":"GET /v1/workflows","href":"/api-reference/endpoint/workflows-list"},{"title":"Get Workflow","openapi":"GET /v1/workflows/{slug}","href":"/api-reference/endpoint/workflows-get"},{"title":"Create Workflow","openapi":"POST /v1/workflows","href":"/api-reference/endpoint/workflows-create"},{"title":"Update Workflow","openapi":"PATCH /v1/workflows/{slug}","href":"/api-reference/endpoint/workflows-update"},{"title":"Delete Workflow","openapi":"DELETE /v1/workflows/{slug}","href":"/api-reference/endpoint/workflows-delete"},{"title":"List Workflow Versions","openapi":"GET /v1/workflows/{slug}/versions","href":"/api-reference/endpoint/workflows-versions"},{"title":"Preview Workflow","openapi":"POST /v1/workflows/{slug}/preview","href":"/api-reference/endpoint/workflows-preview"}]},{"group":"Datasources","icon":"database","pages":[{"title":"List Datasources","openapi":"GET /v1/datasources","href":"/api-reference/endpoint/datasources-list"},{"title":"List Categories","openapi":"GET /v1/datasources/categories","href":"/api-reference/endpoint/datasources-categories"},{"title":"Search Datasources","openapi":"GET /v1/datasources/search","href":"/api-reference/endpoint/datasources-search"}]}]},{"tab":"Changelog","icon":"clock-rotate-left","pages":[{"title":"Changelog","href":"/changelog/platform"}]}]},"basePath":"","title":"Create a DeepResearch task - POST /v1/deepresearch/tasks | Valyu","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js","Markdown-Bquzb4Gw.js","AssistantPageLink-wSgGy_i5.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}