Documentation Index
Fetch the complete documentation index at: https://mintlify.com/IconDean/research-agent/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/research runs the Deep Research Agent’s full pipeline — planning, multi-round web search, source evaluation, gap detection, and report synthesis — in a single blocking HTTP request. When the request returns, the response body contains the complete research report as a markdown string alongside an echo of the original question. This endpoint is ideal for server-to-server integrations, scripting, and batch workflows where streaming progress is not required.
This endpoint runs synchronously and holds the connection open until the report is complete. Depending on the complexity of the question and the number of search iterations required, responses typically take 30 to 120 seconds. Make sure your HTTP client is configured with a sufficiently long timeout before calling this endpoint.
Request
POST /api/research
| Header | Value |
|---|---|
Content-Type | application/json |
Body fields
The natural-language research question to investigate. Must be between 3 and 2000 characters. Whitespace-only strings are rejected with a
400 error.Response
200 OK
Returns a JSON object with the generated report and the original question.The full research report in Markdown format. Includes inline citations and a references section where sources are available.
The original question string echoed back from the request body.
Error responses
| Status | Condition | Body |
|---|---|---|
400 | question is empty or whitespace only after stripping | {"detail": "Question cannot be empty"} |
422 | Request body is malformed, or question is shorter than 3 chars / longer than 2000 chars | FastAPI validation error object |
500 | Missing API key or unrecoverable error during research | {"detail": "<error message>"} |