Get active studies
curl --request GET \
--url https://api.correl8.ai/v1/project/{project_id}/research/studies/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.correl8.ai/v1/project/{project_id}/research/studies/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.correl8.ai/v1/project/{project_id}/research/studies/', 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.correl8.ai/v1/project/{project_id}/research/studies/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.correl8.ai/v1/project/{project_id}/research/studies/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.correl8.ai/v1/project/{project_id}/research/studies/")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.correl8.ai/v1/project/{project_id}/research/studies/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"user_id": "user-42",
"studies": [
{
"question": "What do users struggle with?",
"eligibility_criteria": "All users",
"answer": null
}
]
}{
"detail": "<unknown>"
}Endpoints
Get active studies
Same JSON as the MCP tool get_active_studies. Returns active research studies sampled in for a user (sampling, duration, and answer caps checked server-side), each with its question, eligibility criteria, and any answer already logged for that user. Eligibility criteria are not checked server-side — the caller must evaluate them.
GET
/
v1
/
project
/
{project_id}
/
research
/
studies
/
Get active studies
curl --request GET \
--url https://api.correl8.ai/v1/project/{project_id}/research/studies/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.correl8.ai/v1/project/{project_id}/research/studies/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.correl8.ai/v1/project/{project_id}/research/studies/', 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.correl8.ai/v1/project/{project_id}/research/studies/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.correl8.ai/v1/project/{project_id}/research/studies/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.correl8.ai/v1/project/{project_id}/research/studies/")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.correl8.ai/v1/project/{project_id}/research/studies/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"user_id": "user-42",
"studies": [
{
"question": "What do users struggle with?",
"eligibility_criteria": "All users",
"answer": null
}
]
}{
"detail": "<unknown>"
}Authorizations
Project API key prefixed with ApiKey, e.g. Authorization: ApiKey c8.xxx. Alternatively use header X-Api-Key: c8.xxx.
Path Parameters
Project UUID
Query Parameters
End-user identifier