Get thread messages
curl --request GET \
--url https://api.dualmindlab.tech/api/threads/{threadId}/messages \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dualmindlab.tech/api/threads/{threadId}/messages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dualmindlab.tech/api/threads/{threadId}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dualmindlab.tech/api/threads/{threadId}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dualmindlab.tech/api/threads/{threadId}/messages"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}using RestSharp;
var options = new RestClientOptions("https://api.dualmindlab.tech/api/threads/{threadId}/messages");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.get("https://api.dualmindlab.tech/api/threads/{threadId}/messages")
.header("Authorization", "Bearer <token>")
.asString();{
"items": [
{
"messageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"threadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"position": 123,
"promptText": "<string>",
"model1Name": "<string>",
"model2Name": "<string>",
"model1Response": "<string>",
"model2Response": "<string>",
"model1TimeMs": 123,
"model2TimeMs": 123,
"comparisonId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"voteChoice": "left",
"hasVoted": true,
"createdAt": "2023-11-07T05:31:56Z"
}
]
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "Unexpected error while loading the messages.",
"code": "MESSAGES_ERROR"
}Threads
Get thread messages
All turns in a thread, oldest first. Same access rules as GET /api/threads/{threadId}. With a token, voteChoice and hasVoted reflect your own votes.
GET
/
api
/
threads
/
{threadId}
/
messages
Get thread messages
curl --request GET \
--url https://api.dualmindlab.tech/api/threads/{threadId}/messages \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dualmindlab.tech/api/threads/{threadId}/messages"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dualmindlab.tech/api/threads/{threadId}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dualmindlab.tech/api/threads/{threadId}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dualmindlab.tech/api/threads/{threadId}/messages"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}using RestSharp;
var options = new RestClientOptions("https://api.dualmindlab.tech/api/threads/{threadId}/messages");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.get("https://api.dualmindlab.tech/api/threads/{threadId}/messages")
.header("Authorization", "Bearer <token>")
.asString();{
"items": [
{
"messageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"threadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"position": 123,
"promptText": "<string>",
"model1Name": "<string>",
"model2Name": "<string>",
"model1Response": "<string>",
"model2Response": "<string>",
"model1TimeMs": 123,
"model2TimeMs": 123,
"comparisonId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"voteChoice": "left",
"hasVoted": true,
"createdAt": "2023-11-07T05:31:56Z"
}
]
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "Unexpected error while loading the messages.",
"code": "MESSAGES_ERROR"
}Battle turns fill both
model1* and model2* fields and carry a comparisonId; single-model turns only fill model1*.Last modified on October 18, 2026
⌘I