Merge reports
const url = 'https://deeperesearch.com/v1/research/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/merge';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"mode":"comparison","instructions":"Focus on reliability and operating cost","max_cost_usd":3}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Up to 255 characters. Retrying with the same key returns the original instead of starting (and charging) again.
Request Bodyrequired
Section titled “Request Bodyrequired”object
A synthesis model id from GET /v1/merge/models. Defaults to the default model.
Reasoning depth. Defaults to the model’s default.
Comprehensive (default), executive or comparison.
What the synthesis should focus on. Up to 1,000 characters.
Only merge these provider reports. Defaults to every finished mergeable report.
Refuse to start if the worst case (hold_usd) is above this.
Example
{ "mode": "comparison", "instructions": "Focus on reliability and operating cost", "max_cost_usd": 3}Responses
Section titled “Responses”Already started with this Idempotency-Key
object
Auto: requested with the research; manual: started afterwards
US dollars
ISO 8601 timestamp, UTC
Example
{ "object": "merge", "trigger": "auto", "thinking": "off", "mode": "comprehensive", "state": "pending"}Started
object
Auto: requested with the research; manual: started afterwards
US dollars
ISO 8601 timestamp, UTC
Example
{ "object": "merge", "trigger": "auto", "thinking": "off", "mode": "comprehensive", "state": "pending"}The body isn’t valid JSON (invalid_json)
object
object
Stable, machine-readable error code. See Errors in the docs.
What went wrong, written for people
Example generated
{ "error": { "code": "example", "message": "example" }}Missing or invalid API key (unauthorized)
object
object
Stable, machine-readable error code. See Errors in the docs.
What went wrong, written for people
Example generated
{ "error": { "code": "example", "message": "example" }}Not enough credit for the worst case (insufficient_credit)
object
object
Stable, machine-readable error code. See Errors in the docs.
What went wrong, written for people
Example generated
{ "error": { "code": "example", "message": "example" }}The key lacks the scope this needs (forbidden)
object
object
Stable, machine-readable error code. See Errors in the docs.
What went wrong, written for people
Example generated
{ "error": { "code": "example", "message": "example" }}Not found in this organization (not_found)
object
object
Stable, machine-readable error code. See Errors in the docs.
What went wrong, written for people
Example generated
{ "error": { "code": "example", "message": "example" }}Conflicts with the current state, e.g. not_cancellable or idempotency_conflict
object
object
Stable, machine-readable error code. See Errors in the docs.
What went wrong, written for people
Example generated
{ "error": { "code": "example", "message": "example" }}The body is over 128 KB (body_too_large)
object
object
Stable, machine-readable error code. See Errors in the docs.
What went wrong, written for people
Example generated
{ "error": { "code": "example", "message": "example" }}Invalid request; the message names the field (invalid_request, exceeds_max_cost, vendor_unavailable, …)
object
object
Stable, machine-readable error code. See Errors in the docs.
What went wrong, written for people
Example generated
{ "error": { "code": "example", "message": "example" }}Rate limit, spending limit or quota reached (rate_limited, limit_reached, quota_exceeded). See Retry-After.
object
object
Stable, machine-readable error code. See Errors in the docs.
What went wrong, written for people
Example generated
{ "error": { "code": "example", "message": "example" }}The feature isn’t available on this server (merge_unavailable)
object
object
Stable, machine-readable error code. See Errors in the docs.
What went wrong, written for people
Example generated
{ "error": { "code": "example", "message": "example" }}