Query the research RAG corpus
curl --request POST \
--url https://www.immersivecommons.com/api/research/ask \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "<string>",
"k": 10,
"sources": [
"paper"
],
"synthesize": false
}
'import requests
url = "https://www.immersivecommons.com/api/research/ask"
payload = {
"q": "<string>",
"k": 10,
"sources": ["paper"],
"synthesize": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({q: '<string>', k: 10, sources: ['paper'], synthesize: false})
};
fetch('https://www.immersivecommons.com/api/research/ask', 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://www.immersivecommons.com/api/research/ask",
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([
'q' => '<string>',
'k' => 10,
'sources' => [
'paper'
],
'synthesize' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://www.immersivecommons.com/api/research/ask"
payload := strings.NewReader("{\n \"q\": \"<string>\",\n \"k\": 10,\n \"sources\": [\n \"paper\"\n ],\n \"synthesize\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://www.immersivecommons.com/api/research/ask")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"q\": \"<string>\",\n \"k\": 10,\n \"sources\": [\n \"paper\"\n ],\n \"synthesize\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.immersivecommons.com/api/research/ask")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"q\": \"<string>\",\n \"k\": 10,\n \"sources\": [\n \"paper\"\n ],\n \"synthesize\": false\n}"
response = http.request(request)
puts response.read_body{
"results": [
{}
],
"answer": "<string>",
"citations": [
{}
],
"via": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}research
Query the research RAG corpus
Clerk session or agt_ token with research:query. Forwards a top-k retrieval (optionally LLM-synthesized) query to the supercommons2 RAG funnel and returns the results. The query text is never logged. 60 requests/hour/member.
POST
/
api
/
research
/
ask
Query the research RAG corpus
curl --request POST \
--url https://www.immersivecommons.com/api/research/ask \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "<string>",
"k": 10,
"sources": [
"paper"
],
"synthesize": false
}
'import requests
url = "https://www.immersivecommons.com/api/research/ask"
payload = {
"q": "<string>",
"k": 10,
"sources": ["paper"],
"synthesize": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({q: '<string>', k: 10, sources: ['paper'], synthesize: false})
};
fetch('https://www.immersivecommons.com/api/research/ask', 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://www.immersivecommons.com/api/research/ask",
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([
'q' => '<string>',
'k' => 10,
'sources' => [
'paper'
],
'synthesize' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://www.immersivecommons.com/api/research/ask"
payload := strings.NewReader("{\n \"q\": \"<string>\",\n \"k\": 10,\n \"sources\": [\n \"paper\"\n ],\n \"synthesize\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://www.immersivecommons.com/api/research/ask")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"q\": \"<string>\",\n \"k\": 10,\n \"sources\": [\n \"paper\"\n ],\n \"synthesize\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.immersivecommons.com/api/research/ask")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"q\": \"<string>\",\n \"k\": 10,\n \"sources\": [\n \"paper\"\n ],\n \"synthesize\": false\n}"
response = http.request(request)
puts response.read_body{
"results": [
{}
],
"answer": "<string>",
"citations": [
{}
],
"via": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}Authorizations
Per-member, individually-revocable agent token minted via the device-code flow. Send as Authorization: Bearer agt_.... The scope array in each operation's security requirement names the IC scope the handler enforces.
Body
application/json
The query.
Maximum string length:
500Required range:
1 <= x <= 50Available options:
paper, book When true, returns an LLM-synthesized grounded answer.
Only valid when synthesize=true.
Available options:
claude-haiku-4-5, claude-sonnet-4-6, claude-opus-4-7 ⌘I