Skip to content

Start research

POST
/v1/research
curl --request POST \
--url https://deeperesearch.com/v1/research \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "query": "Which Postgres-backed job queues for Node.js are production-ready in 2026, and how do they compare?", "vendors": "balanced", "max_cost_usd": 20 }'

Sends the question to each provider and returns at once. The worst-case cost is held from your credit while it runs; you’re charged the actual cost when it finishes. Follow progress with GET /v1/research/{id} or a webhook.

Idempotency-Key
string
<= 255 characters

Up to 255 characters. Retrying with the same key returns the original instead of starting (and charging) again.

Media typeapplication/json
object
query
required

The research question, with any context the providers need. Up to 15,000 characters.

string
>= 1 characters <= 15000 characters
vendors
required

A preset (“fast”, “balanced” or “thorough”) or a list of up to 16 {vendor, offering} pairs from GET /v1/vendors.

Any of:
string
Allowed values: fast balanced thorough
max_cost_usd

Refuse to start if the worst case (hold_usd) is above this.

number
> 0 <= 10000
attachments

Up to 10 ready file ids from POST /v1/files, sent to every provider with the question.

Array<string>
<= 10 items
merge

Merge the providers’ reports into one cited synthesis when they finish. Needs at least two mergeable providers.

object
model
string
>= 1 characters <= 120 characters
thinking
string
Allowed values: off low medium high
mode
string
Allowed values: comprehensive executive comparison
instructions
string
<= 1000 characters

Example

{
"query": "Which Postgres-backed job queues for Node.js are production-ready in 2026, and how do they compare?",
"vendors": "balanced",
"max_cost_usd": 20
}

Already started with this Idempotency-Key; nothing new was charged

Media typeapplication/json
object
id
required
string format: uuid
object
required
string
Allowed value: research
status
required
string
Allowed values: queued running completed failed cancelled
query
required
string
estimate_usd
required

Expected cost when it started

number
max_cost_usd
required
Any of:

US dollars

number
charged_usd
required

Charged so far; final once the research and its merges finish

number
error
required
string | null
merge_config
required
Any of:

The merge requested with the research

object
model
required
string
thinking
required
string
Allowed values: off low medium high
mode
required
string
Allowed values: comprehensive executive comparison
instructions
string
via

The coding agent that started it, when one did

string | null
created_at
required

ISO 8601 timestamp, UTC

string
finished_at
required
Any of:

ISO 8601 timestamp, UTC

string
runs

One per provider

Array<object>

One provider working on a research question.

object
id
required
string format: uuid
vendor
required
string
offering
required
string
state
required
string
Allowed values: pending submitting submitted needs_review completed failed timed_out cancelled
charged_usd
required

Charged when the run finished; null until then

Any of:

US dollars

number
error
required
string | null
submitted_at
required
Any of:

ISO 8601 timestamp, UTC

string
finished_at
required
Any of:

ISO 8601 timestamp, UTC

string
merges
Array<object>

A synthesis merge: several provider reports combined into one cited report.

object
id
required
string format: uuid
object
required
string
Allowed value: merge
research_id
required
string format: uuid
trigger
required

Auto: requested with the research; manual: started afterwards

string
Allowed values: auto manual
model
required
string
thinking
required
string
Allowed values: off low medium high
mode
required
string
Allowed values: comprehensive executive comparison
instructions
required
string | null
state
required
string
Allowed values: pending running completed failed skipped cancelled
source_report_ids
required
Array<string>
excluded_reports
required
Array<object>

A report left out of a merge, and why.

object
report_id
required
Any of:
string format: uuid
vendor
required
string
offering
required
string
reason
required
string
resolved_provider
required
string | null
two_stage
required
boolean
estimate_usd
required

US dollars

number
charged_usd
required
Any of:

US dollars

number
error
required
string | null
created_at
required

ISO 8601 timestamp, UTC

string
started_at
required
Any of:

ISO 8601 timestamp, UTC

string
finished_at
required
Any of:

ISO 8601 timestamp, UTC

string
attachments

Files sent with the question (on GET /v1/research/{id})

Array<object>
object
id
required
string format: uuid
filename
required
string
mime_type
required
string

Example

{
"object": "research",
"status": "queued",
"merge_config": {
"thinking": "off",
"mode": "comprehensive"
},
"runs": [
{
"state": "pending"
}
],
"merges": [
{
"object": "merge",
"trigger": "auto",
"thinking": "off",
"mode": "comprehensive",
"state": "pending"
}
]
}

Started

Media typeapplication/json
object
id
required
string format: uuid
object
required
string
Allowed value: research
status
required
string
Allowed values: queued running completed failed cancelled
query
required
string
estimate_usd
required

Expected cost when it started

number
max_cost_usd
required
Any of:

US dollars

number
charged_usd
required

Charged so far; final once the research and its merges finish

number
error
required
string | null
merge_config
required
Any of:

The merge requested with the research

object
model
required
string
thinking
required
string
Allowed values: off low medium high
mode
required
string
Allowed values: comprehensive executive comparison
instructions
string
via

The coding agent that started it, when one did

string | null
created_at
required

ISO 8601 timestamp, UTC

string
finished_at
required
Any of:

ISO 8601 timestamp, UTC

string
runs

One per provider

Array<object>

One provider working on a research question.

object
id
required
string format: uuid
vendor
required
string
offering
required
string
state
required
string
Allowed values: pending submitting submitted needs_review completed failed timed_out cancelled
charged_usd
required

Charged when the run finished; null until then

Any of:

US dollars

number
error
required
string | null
submitted_at
required
Any of:

ISO 8601 timestamp, UTC

string
finished_at
required
Any of:

ISO 8601 timestamp, UTC

string
merges
Array<object>

A synthesis merge: several provider reports combined into one cited report.

object
id
required
string format: uuid
object
required
string
Allowed value: merge
research_id
required
string format: uuid
trigger
required

Auto: requested with the research; manual: started afterwards

string
Allowed values: auto manual
model
required
string
thinking
required
string
Allowed values: off low medium high
mode
required
string
Allowed values: comprehensive executive comparison
instructions
required
string | null
state
required
string
Allowed values: pending running completed failed skipped cancelled
source_report_ids
required
Array<string>
excluded_reports
required
Array<object>

A report left out of a merge, and why.

object
report_id
required
Any of:
string format: uuid
vendor
required
string
offering
required
string
reason
required
string
resolved_provider
required
string | null
two_stage
required
boolean
estimate_usd
required

US dollars

number
charged_usd
required
Any of:

US dollars

number
error
required
string | null
created_at
required

ISO 8601 timestamp, UTC

string
started_at
required
Any of:

ISO 8601 timestamp, UTC

string
finished_at
required
Any of:

ISO 8601 timestamp, UTC

string
attachments

Files sent with the question (on GET /v1/research/{id})

Array<object>
object
id
required
string format: uuid
filename
required
string
mime_type
required
string

Example

{
"object": "research",
"status": "queued",
"merge_config": {
"thinking": "off",
"mode": "comprehensive"
},
"runs": [
{
"state": "pending"
}
],
"merges": [
{
"object": "merge",
"trigger": "auto",
"thinking": "off",
"mode": "comprehensive",
"state": "pending"
}
]
}

The body isn’t valid JSON (invalid_json)

Media typeapplication/json
object
error
required
object
code
required

Stable, machine-readable error code. See Errors in the docs.

string
message
required

What went wrong, written for people

string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

Missing or invalid API key (unauthorized)

Media typeapplication/json
object
error
required
object
code
required

Stable, machine-readable error code. See Errors in the docs.

string
message
required

What went wrong, written for people

string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

Not enough credit for the worst case (insufficient_credit)

Media typeapplication/json
object
error
required
object
code
required

Stable, machine-readable error code. See Errors in the docs.

string
message
required

What went wrong, written for people

string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

The key lacks the scope this needs (forbidden)

Media typeapplication/json
object
error
required
object
code
required

Stable, machine-readable error code. See Errors in the docs.

string
message
required

What went wrong, written for people

string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

Conflicts with the current state, e.g. not_cancellable or idempotency_conflict

Media typeapplication/json
object
error
required
object
code
required

Stable, machine-readable error code. See Errors in the docs.

string
message
required

What went wrong, written for people

string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

The body is over 128 KB (body_too_large)

Media typeapplication/json
object
error
required
object
code
required

Stable, machine-readable error code. See Errors in the docs.

string
message
required

What went wrong, written for people

string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

Invalid request; the message names the field (invalid_request, exceeds_max_cost, vendor_unavailable, …)

Media typeapplication/json
object
error
required
object
code
required

Stable, machine-readable error code. See Errors in the docs.

string
message
required

What went wrong, written for people

string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

Rate limit, spending limit or quota reached (rate_limited, limit_reached, quota_exceeded). See Retry-After.

Media typeapplication/json
object
error
required
object
code
required

Stable, machine-readable error code. See Errors in the docs.

string
message
required

What went wrong, written for people

string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

The feature isn’t available on this server (merge_unavailable)

Media typeapplication/json
object
error
required
object
code
required

Stable, machine-readable error code. See Errors in the docs.

string
message
required

What went wrong, written for people

string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}