# Start research

Source: https://deeperesearch.com/docs/api/reference/operations/createresearch/

POST

/v1/research

```js
const url = 'https://deeperesearch.com/v1/research';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"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}'
};


try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```sh
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.

## Authorizations

- **[apiKey](https://deeperesearch.com/docs/api/reference/#apikey)**

## Parameters

### Header Parameters

**Idempotency-Key**

string

<= 255 characters

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

## Request Bodyrequired

application/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

  string

  Allowed values: fast balanced thorough

- Array\<object>

  Array\<object>

  \>= 1 items <= 16 items

  object

  **vendor**

  required

  string

  \>= 1 characters

  **offering**

  required

  string

  \>= 1 characters

**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

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

## Responses

### 200

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

application/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:

- number

  US dollars

  number

- null

  null

**charged_usd**

required

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

number

**error**

required

string | null

**merge_config**

required

Any of:

- object

  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

- null

  null

**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:

- string

  ISO 8601 timestamp, UTC

  string

- null

  null

**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:

- number

  US dollars

  number

- null

  null

**error**

required

string | null

**submitted_at**

required

Any of:

- string

  ISO 8601 timestamp, UTC

  string

- null

  null

**finished_at**

required

Any of:

- string

  ISO 8601 timestamp, UTC

  string

- null

  null

**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

  string format: uuid

- null

  null

**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:

- number

  US dollars

  number

- null

  null

**error**

required

string | null

**created_at**

required

ISO 8601 timestamp, UTC

string

**started_at**

required

Any of:

- string

  ISO 8601 timestamp, UTC

  string

- null

  null

**finished_at**

required

Any of:

- string

  ISO 8601 timestamp, UTC

  string

- null

  null

**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

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

### 202

Started

application/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:

- number

  US dollars

  number

- null

  null

**charged_usd**

required

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

number

**error**

required

string | null

**merge_config**

required

Any of:

- object

  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

- null

  null

**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:

- string

  ISO 8601 timestamp, UTC

  string

- null

  null

**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:

- number

  US dollars

  number

- null

  null

**error**

required

string | null

**submitted_at**

required

Any of:

- string

  ISO 8601 timestamp, UTC

  string

- null

  null

**finished_at**

required

Any of:

- string

  ISO 8601 timestamp, UTC

  string

- null

  null

**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

  string format: uuid

- null

  null

**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:

- number

  US dollars

  number

- null

  null

**error**

required

string | null

**created_at**

required

ISO 8601 timestamp, UTC

string

**started_at**

required

Any of:

- string

  ISO 8601 timestamp, UTC

  string

- null

  null

**finished_at**

required

Any of:

- string

  ISO 8601 timestamp, UTC

  string

- null

  null

**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

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

### 400

The body isn’t valid JSON (invalid_json)

application/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

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

### 401

Missing or invalid API key (unauthorized)

application/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

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

### 402

Not enough credit for the worst case (insufficient_credit)

application/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

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

### 403

The key lacks the scope this needs (forbidden)

application/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

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

### 409

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

application/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

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

### 413

The body is over 128 KB (body_too_large)

application/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

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

### 422

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

application/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

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

### 429

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

application/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

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

### 503

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

application/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

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