Skip to content

Merge reports

POST
/v1/research/{id}/merge
curl --request POST \
--url https://deeperesearch.com/v1/research/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/merge \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "mode": "comparison", "instructions": "Focus on reliability and operating cost", "max_cost_usd": 3 }'

Combines the research’s finished mergeable reports into one synthesis report with checked citations. You can merge again with another model or mode. The synthesis appears in the research’s reports when the merge completes.

id
required
string format: uuid
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
model

A synthesis model id from GET /v1/merge/models. Defaults to the default model.

string
>= 1 characters <= 120 characters
thinking

Reasoning depth. Defaults to the model’s default.

string
Allowed values: off low medium high
mode

Comprehensive (default), executive or comparison.

string
Allowed values: comprehensive executive comparison
instructions

What the synthesis should focus on. Up to 1,000 characters.

string
<= 1000 characters
report_ids

Only merge these provider reports. Defaults to every finished mergeable report.

Array<string>
>= 1 items <= 16 items
max_cost_usd

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

number
> 0 <= 10000

Example

{
"mode": "comparison",
"instructions": "Focus on reliability and operating cost",
"max_cost_usd": 3
}

Already started with this Idempotency-Key

Media typeapplication/json
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

Example

{
"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: 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

Example

{
"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"
}
}

Not found in this organization (not_found)

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"
}
}