Insert a vote
curl --request POST \
--url https://api.dualmindlab.tech/api/admin/votes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"comparison_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.dualmindlab.tech/api/admin/votes"
payload = { "comparison_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
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({comparison_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.dualmindlab.tech/api/admin/votes', 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({comparison_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.dualmindlab.tech/api/admin/votes', 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/admin/votes"
payload := strings.NewReader("{\n \"comparison_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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/admin/votes");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"comparison_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.post("https://api.dualmindlab.tech/api/admin/votes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"comparison_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();{
"success": true,
"data": {
"vote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"comparison_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"winner_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vote_choice": "left",
"vote_duration_ms": 8200,
"voted_at": "2023-11-07T05:31:56Z",
"revealed_at": "2023-11-07T05:31:56Z",
"picked_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"choice": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": "Role must be one of: admin, user"
}{
"success": false,
"error": "Role must be one of: admin, user"
}Insert a vote
Inserts a raw model_votes row. Intended for repairs and test data only: it bypasses the arena’s vote flow and moves the leaderboard. The admin panel does not expose it.
POST
/
api
/
admin
/
votes
Insert a vote
curl --request POST \
--url https://api.dualmindlab.tech/api/admin/votes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"comparison_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.dualmindlab.tech/api/admin/votes"
payload = { "comparison_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
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({comparison_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.dualmindlab.tech/api/admin/votes', 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({comparison_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.dualmindlab.tech/api/admin/votes', 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/admin/votes"
payload := strings.NewReader("{\n \"comparison_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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/admin/votes");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"comparison_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.post("https://api.dualmindlab.tech/api/admin/votes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"comparison_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();{
"success": true,
"data": {
"vote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"comparison_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"winner_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vote_choice": "left",
"vote_duration_ms": 8200,
"voted_at": "2023-11-07T05:31:56Z",
"revealed_at": "2023-11-07T05:31:56Z",
"picked_model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"choice": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": "Role must be one of: admin, user"
}{
"success": false,
"error": "Role must be one of: admin, user"
}AdminOnly
Bearer token, role admin
Authorizations
Supabase access token of an account with role = 'admin' in public.users.
Body
application/json
Last modified on October 18, 2026
Was this page helpful?
⌘I