Get the dashboard
curl --request GET \
--url https://api.dualmindlab.tech/api/admin/dashboard \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dualmindlab.tech/api/admin/dashboard"
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/admin/dashboard', 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/admin/dashboard', 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/admin/dashboard"
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/admin/dashboard");
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/admin/dashboard")
.header("Authorization", "Bearer <token>")
.asString();{
"success": true,
"data": {
"metrics": {
"total_users": 123,
"active_models": 123,
"total_comparisons": 123,
"total_votes": 123
},
"api_keys": {
"total": 123,
"active": 123,
"in_cooldown": 123
},
"health": {
"supabase_realtime": "online",
"redis": "<string>"
},
"total_users": 123,
"total_models": 123,
"total_comparisons": 123,
"total_votes": 123,
"active_models_count": 123,
"recent_activity": {
"recent_users": [
{
"user_id": "8b1f3c2a-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"full_name": "Asha Patel",
"email": "asha@example.com",
"role": "user",
"created_at": "2023-11-07T05:31:56Z",
"last_login_at": "2023-11-07T05:31:56Z"
}
],
"recent_comparisons": [
{
"comparison_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prompt_text": "Explain TCP vs UDP with a pizza analogy.",
"model1_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model2_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model1_response": "<string>",
"model2_response": "<string>",
"model1_time_ms": 2410,
"model2_time_ms": 2410,
"mode": "<string>",
"category": "<string>",
"is_revealed": false,
"is_flagged": true,
"created_at": "2023-11-07T05:31:56Z"
}
],
"recent_votes": [
{
"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"
}
]
},
"provider_health": [
{
"provider_name": "<string>",
"display_name": "<string>",
"is_enabled": true,
"total_keys": 123,
"active_keys": 123,
"keys_in_cooldown": 123,
"total_calls": 123,
"total_failures": 123
}
],
"api_key_metrics": {
"total_keys": 123,
"active_keys": 123,
"keys_in_cooldown": 123
},
"system_health_status": "healthy"
}
}{
"success": false,
"error": "Role must be one of: admin, user"
}Get the dashboard
Headline metrics, API-key health per provider, the five most recent users, comparisons and votes, and a database health flag. This is what the admin dashboard renders.
GET
/
api
/
admin
/
dashboard
Get the dashboard
curl --request GET \
--url https://api.dualmindlab.tech/api/admin/dashboard \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dualmindlab.tech/api/admin/dashboard"
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/admin/dashboard', 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/admin/dashboard', 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/admin/dashboard"
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/admin/dashboard");
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/admin/dashboard")
.header("Authorization", "Bearer <token>")
.asString();{
"success": true,
"data": {
"metrics": {
"total_users": 123,
"active_models": 123,
"total_comparisons": 123,
"total_votes": 123
},
"api_keys": {
"total": 123,
"active": 123,
"in_cooldown": 123
},
"health": {
"supabase_realtime": "online",
"redis": "<string>"
},
"total_users": 123,
"total_models": 123,
"total_comparisons": 123,
"total_votes": 123,
"active_models_count": 123,
"recent_activity": {
"recent_users": [
{
"user_id": "8b1f3c2a-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"full_name": "Asha Patel",
"email": "asha@example.com",
"role": "user",
"created_at": "2023-11-07T05:31:56Z",
"last_login_at": "2023-11-07T05:31:56Z"
}
],
"recent_comparisons": [
{
"comparison_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prompt_text": "Explain TCP vs UDP with a pizza analogy.",
"model1_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model2_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model1_response": "<string>",
"model2_response": "<string>",
"model1_time_ms": 2410,
"model2_time_ms": 2410,
"mode": "<string>",
"category": "<string>",
"is_revealed": false,
"is_flagged": true,
"created_at": "2023-11-07T05:31:56Z"
}
],
"recent_votes": [
{
"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"
}
]
},
"provider_health": [
{
"provider_name": "<string>",
"display_name": "<string>",
"is_enabled": true,
"total_keys": 123,
"active_keys": 123,
"keys_in_cooldown": 123,
"total_calls": 123,
"total_failures": 123
}
],
"api_key_metrics": {
"total_keys": 123,
"active_keys": 123,
"keys_in_cooldown": 123
},
"system_health_status": "healthy"
}
}{
"success": false,
"error": "Role must be one of: admin, user"
}Last modified on October 18, 2026
Was this page helpful?
โI