> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orbb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Research

> Research runs and recipes: plan, start, poll, continue and read what a run found.

Research on people, on a company and by recipe runs as a plan, a start and a run to read. The calls take the same token as every `/v1` call, and act in the workspace the token belongs to.

| Call | What it does | Fields |
| - | - | - |
| `POST` `/v1/research/resolve` | Find the candidates behind up to 25 names, never a pick among them. | `session`, `ask`, `names` |
| `POST` `/v1/research/plan` | Plan research on people, a company or a recipe, with its quote; nothing is charged. | `session`, `ask`, `handles`, `company`, `recipe`, `block`, `inputs` |
| `POST` `/v1/research/start` | Start a plan, in the session that made it; the run is charged. | `session`, `planId` |
| `GET` `/v1/research/runs/{run_id}` | Read a run: its progress, what it found, and whether it waits for a choice. | `session` |
| `POST` `/v1/research/runs/{run_id}/continue` | Carry on a run that paused for a choice of people. | `session`, `people` |
| `POST` `/v1/research/runs/{run_id}/stop` | Stop a run. | |
| `POST` `/v1/research/report` | Read a report the workspace already holds. | `session`, `ask`, `report`, `people` |
| `POST` `/v1/research/tables/{table_id}` | Read a page of the rows of a table, such as a search run’s result. | `session`, `at` |
| `GET` `/v1/recipes` | List the recipes that run in Orbb, with the shape and limit of each input. | |

A request takes more fields than the table lists; the table has the ones the flow needs. A body over 16 kB is answered `400 invalid_body`.

A body is sent as JSON with `Content-Type: application/json`; any other type is `400 invalid_body`. A POST with no body is read as an empty JSON object.

An unknown run or table on a read answers `200` with `said` saying so.

A request field is accepted in camelCase or snake\_case. An unknown field is ignored, not refused, so a misspelt field is silently dropped; this differs from the query calls, where an unknown field is `400 invalid_body`. An answer’s fields are camelCase.

`said` in an answer is prose for an agent to read aloud, not a field to parse. An `href` in an answer opens in the console, for a person signed in to the workspace.

A plan, and the run it starts, belong to a `session`: a string of letters, digits, `_` and `-`, up to 120 characters. `/v1/research/plan` answers a new one when none is sent. The reads (`resolve`, `report`, `tables`) use the session `rest` when none is sent. A start, a run read and a continue need the session of the plan: without it, `400 session_required`. A `null` or empty `session` is none. `GET /v1/research/runs/{run_id}` takes `session` in its query.

A refusal is answered with the error body of Errors, and keeps its status, except a `422`, which is answered `400`, and a `5xx`, which is answered `503`. A `200` can carry `refused`: a refusal that is an answer, not an error. A refusal’s `detail` may name the conversation id, `mcp-<sub>-<session>`: it is the caller’s own. A report the workspace does not hold is answered `200`, its `said` saying how to see the ones held.

A start can be refused with a code of its own:

| Code | Status | When | What to do |
| - | - | - | - |
| `not_enough_tokens` | 409 | The balance does not cover the plan’s quote. | Add funds, then start again. |
| `too_many_runs` | 409 | The workspace has as many runs going as it may. | Wait for a run to end. |
| `out_of_calls_today` | 429 | The workspace has used its research calls of the UTC day. | Try again tomorrow: `Retry-After` is not sent. |
| `start_refused` | 409 | The plan is refused for another reason: a limit of the job, the monthly budget, or an invalid plan. | Read `detail`. |
| `research_paused` | 503 | Research is paused. | Try again later, backing off. |
| `balance_unchecked` | 503 | The balance could not be checked, so nothing started. | Repeat the same request, backing off. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.