Media Generation
Create Research
Run deep web research with source synthesis (asynchronous).
POST
/
api
/
v1
/
research
Create Research
curl --request POST \
--url https://api.example.com/api/v1/research \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"depth": "<string>",
"max_sources": 123
}
'import requests
url = "https://api.example.com/api/v1/research"
payload = {
"prompt": "<string>",
"depth": "<string>",
"max_sources": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({prompt: '<string>', depth: '<string>', max_sources: 123})
};
fetch('https://api.example.com/api/v1/research', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/research",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => '<string>',
'depth' => '<string>',
'max_sources' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/research"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"depth\": \"<string>\",\n \"max_sources\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/v1/research")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"depth\": \"<string>\",\n \"max_sources\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/research")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"<string>\",\n \"depth\": \"<string>\",\n \"max_sources\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"job_id": "<string>",
"status": "<string>",
"created": "<string>",
"poll_url": "<string>"
}Run deep web research with multi-source synthesis and citations. This is an asynchronous endpoint — it returns a job ID immediately (HTTP 202) and research is conducted in the background.
Research is async. Poll the job status with Get Job Status or use
theo.waitForJob() in the SDK.Authentication
Requires a Bearer token. See Authentication.Request Body
The research question or topic.
Research depth.
"basic" for quick summaries, "advanced" for comprehensive multi-source analysis.Maximum number of sources to consult (1–50).
Request Examples
curl -X POST https://www.hitheo.ai/api/v1/research \
-H "Authorization: Bearer $THEO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Compare React, Vue, and Svelte for enterprise apps in 2026",
"depth": "advanced",
"max_sources": 10
}'
const job = await theo.research({
prompt: "Compare React, Vue, and Svelte for enterprise apps in 2026",
depth: "advanced",
max_sources: 10,
});
// Poll until complete (check every 3s, timeout after 2min)
const result = await theo.waitForJob(job.job_id, 3000, 120_000);
console.log(result.result); // Full research report with citations
Response (HTTP 202)
Unique research request ID (prefixed
res_).Job ID for polling status.
Always
"queued" on creation.ISO 8601 timestamp.
Relative URL to poll for job status.
Example Response
{
"id": "res_abc123",
"job_id": "job_xyz789",
"status": "queued",
"created": "2026-04-10T12:00:00Z",
"poll_url": "/api/v1/jobs/job_xyz789"
}
Errors
| Status | Code | Description |
|---|---|---|
| 400 | missing_prompt | prompt is required |
| 401 | invalid_api_key | Missing or invalid API key |
| 503 | queue_unavailable | Research queue is not available — retry later |
Was this page helpful?
⌘I
Create Research
curl --request POST \
--url https://api.example.com/api/v1/research \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"depth": "<string>",
"max_sources": 123
}
'import requests
url = "https://api.example.com/api/v1/research"
payload = {
"prompt": "<string>",
"depth": "<string>",
"max_sources": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({prompt: '<string>', depth: '<string>', max_sources: 123})
};
fetch('https://api.example.com/api/v1/research', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/research",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => '<string>',
'depth' => '<string>',
'max_sources' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/research"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"depth\": \"<string>\",\n \"max_sources\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/v1/research")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"depth\": \"<string>\",\n \"max_sources\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/research")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"<string>\",\n \"depth\": \"<string>\",\n \"max_sources\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"job_id": "<string>",
"status": "<string>",
"created": "<string>",
"poll_url": "<string>"
}