Submit a vote
curl --request POST \
--url https://api.dualmindlab.tech/api/arena/model-vote \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"comparisonId": "3f6c1a2b-9d4e-4f7a-8b1c-0e2d3f4a5b6c",
"voteChoice": "left"
}
'import requests
url = "https://api.dualmindlab.tech/api/arena/model-vote"
payload = {
"comparisonId": "3f6c1a2b-9d4e-4f7a-8b1c-0e2d3f4a5b6c",
"voteChoice": "left"
}
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({comparisonId: '3f6c1a2b-9d4e-4f7a-8b1c-0e2d3f4a5b6c', voteChoice: 'left'})
};
fetch('https://api.dualmindlab.tech/api/arena/model-vote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({comparisonId: '3f6c1a2b-9d4e-4f7a-8b1c-0e2d3f4a5b6c', voteChoice: 'left'})
};
fetch('https://api.dualmindlab.tech/api/arena/model-vote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dualmindlab.tech/api/arena/model-vote"
payload := strings.NewReader("{\n \"comparisonId\": \"3f6c1a2b-9d4e-4f7a-8b1c-0e2d3f4a5b6c\",\n \"voteChoice\": \"left\"\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))
}using RestSharp;
var options = new RestClientOptions("https://api.dualmindlab.tech/api/arena/model-vote");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"comparisonId\": \"3f6c1a2b-9d4e-4f7a-8b1c-0e2d3f4a5b6c\",\n \"voteChoice\": \"left\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.post("https://api.dualmindlab.tech/api/arena/model-vote")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"comparisonId\": \"3f6c1a2b-9d4e-4f7a-8b1c-0e2d3f4a5b6c\",\n \"voteChoice\": \"left\"\n}")
.asString();{
"success": true,
"message": "Vote recorded successfully"
}{
"success": false,
"error": "ComparisonId is required",
"code": "INVALID_REQUEST"
}{
"success": false,
"error": "Comparison not found",
"code": "VOTE_ERROR"
}Voting & leaderboard
Submit a vote
Vote on a battle. Each signed-in user can vote once per comparison. Voting marks the comparison as revealed.
POST
/
api
/
arena
/
model-vote
Submit a vote
curl --request POST \
--url https://api.dualmindlab.tech/api/arena/model-vote \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"comparisonId": "3f6c1a2b-9d4e-4f7a-8b1c-0e2d3f4a5b6c",
"voteChoice": "left"
}
'import requests
url = "https://api.dualmindlab.tech/api/arena/model-vote"
payload = {
"comparisonId": "3f6c1a2b-9d4e-4f7a-8b1c-0e2d3f4a5b6c",
"voteChoice": "left"
}
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({comparisonId: '3f6c1a2b-9d4e-4f7a-8b1c-0e2d3f4a5b6c', voteChoice: 'left'})
};
fetch('https://api.dualmindlab.tech/api/arena/model-vote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({comparisonId: '3f6c1a2b-9d4e-4f7a-8b1c-0e2d3f4a5b6c', voteChoice: 'left'})
};
fetch('https://api.dualmindlab.tech/api/arena/model-vote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dualmindlab.tech/api/arena/model-vote"
payload := strings.NewReader("{\n \"comparisonId\": \"3f6c1a2b-9d4e-4f7a-8b1c-0e2d3f4a5b6c\",\n \"voteChoice\": \"left\"\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))
}using RestSharp;
var options = new RestClientOptions("https://api.dualmindlab.tech/api/arena/model-vote");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"comparisonId\": \"3f6c1a2b-9d4e-4f7a-8b1c-0e2d3f4a5b6c\",\n \"voteChoice\": \"left\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.post("https://api.dualmindlab.tech/api/arena/model-vote")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"comparisonId\": \"3f6c1a2b-9d4e-4f7a-8b1c-0e2d3f4a5b6c\",\n \"voteChoice\": \"left\"\n}")
.asString();{
"success": true,
"message": "Vote recorded successfully"
}{
"success": false,
"error": "ComparisonId is required",
"code": "INVALID_REQUEST"
}{
"success": false,
"error": "Comparison not found",
"code": "VOTE_ERROR"
}voteChoice | Meaning |
|---|---|
left | agent1 gave the better answer |
right | agent2 gave the better answer |
tie | Both were good |
both-bad | Neither was helpful |
Votes are final: each user can vote once per
comparisonId. A second vote is rejected with VOTE_ERROR.Authorizations
The access token from your DualMind Arena session (a Supabase JWT). See Authentication.
Body
application/json
The comparisonId returned by POST /api/arena/dualchat.
left = agent1 wins, right = agent2 wins, tie = both good, both-bad = neither was helpful.
Available options:
left, right, tie, both-bad Optional: how long the user took to decide, in milliseconds.
Required range:
x >= 0Last modified on October 18, 2026
⌘I