DualMind Lab API
The DualMind Lab API provides programmatic access to the blind AI model comparison arena. Send prompts, manage threads, vote on responses, and access model statistics.Base URL:
https://api.dualmindlab.techAll endpoints are prefixed with /api/.Authentication
Most endpoints require a in theAuthorization header:
Quick start
Get your JWT token
Sign in via the DualMind frontend or use Supabase Auth directly:
- JavaScript
- cURL
- Python
Endpoint categories
Chat & Arena
Send messages in single or dual (arena) mode with blind model comparison
Threads
Create, list, update, share, and delete conversation threads
Voting & Stats
Submit votes and retrieve model leaderboard statistics
Models & Users
List available AI models and sync user profiles
Utilities
Health checks, feature flags, and text-to-speech
Admin API
Full CRUD operations for platform management
Response format
All API responses use JSON. Successful responses return the data directly. Errors follow a consistent format:- Success
- Error
Error codes
| HTTP Status | Error Code | Description |
|---|---|---|
400 | INVALID_REQUEST | Missing or invalid request parameters |
401 | UNAUTHORIZED | Missing, invalid, or expired JWT token |
403 | FORBIDDEN | Insufficient permissions (admin endpoints) |
404 | NOT_FOUND | Resource does not exist |
429 | RATE_LIMITED | Too many requests |
500 | API_ERROR | Internal server or AI provider error |
Rate limits
Rate limits vary by endpoint and authentication status. Authenticated users receive higher limits than anonymous requests.
| Endpoint Category | Authenticated | Anonymous |
|---|---|---|
| Chat & Arena | 60 req/min | N/A |
| Threads | 120 req/min | 30 req/min (read-only) |
| Voting | 30 req/min | N/A |
| Admin | 120 req/min | N/A |
Interactive playground
SDKs and tools
OpenAPI Spec
Download the OpenAPI 3.0 specification for code generation
MCP Server
Connect AI agents to DualMind via Model Context Protocol