Get table counts
curl --request GET \
--url https://api.dualmindlab.tech/api/admin/dashboard/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dualmindlab.tech/api/admin/dashboard/stats"
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/stats', 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/stats', 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/stats"
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/stats");
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/stats")
.header("Authorization", "Bearer <token>")
.asString();{
"success": true,
"data": {
"users": 123,
"ai_models": 123,
"comparisons": 123,
"threads": 123,
"thread_messages": 123,
"votes": 123,
"providers": {
"total": 123,
"enabled": 123,
"disabled": 123
},
"provider_keys": {
"total": 123,
"active": 123,
"inactive": 123
}
}
}{
"success": false,
"error": "Role must be one of: admin, user"
}Get table counts
Row counts for every table plus provider and key totals. The dashboard endpoint above covers the same ground; use this one for a lightweight count.
GET
/
api
/
admin
/
dashboard
/
stats
Get table counts
curl --request GET \
--url https://api.dualmindlab.tech/api/admin/dashboard/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dualmindlab.tech/api/admin/dashboard/stats"
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/stats', 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/stats', 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/stats"
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/stats");
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/stats")
.header("Authorization", "Bearer <token>")
.asString();{
"success": true,
"data": {
"users": 123,
"ai_models": 123,
"comparisons": 123,
"threads": 123,
"thread_messages": 123,
"votes": 123,
"providers": {
"total": 123,
"enabled": 123,
"disabled": 123
},
"provider_keys": {
"total": 123,
"active": 123,
"inactive": 123
}
}
}{
"success": false,
"error": "Role must be one of: admin, user"
}Last modified on October 18, 2026
Was this page helpful?
⌘I