Skip to main content

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 the Authorization header:
Tokens are issued by Supabase Auth and expire after 1 hour. Use supabase.auth.refreshSession() to renew.

Quick start

1

Get your JWT token

Sign in via the DualMind frontend or use Supabase Auth directly:
2

Create a thread

3

Send a message

You’ll receive two anonymized model responses for blind comparison.
4

Vote on the best response

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:

Error codes

Rate limits

Rate limits vary by endpoint and authentication status. Authenticated users receive higher limits than anonymous requests.

Interactive playground

Every API endpoint page includes an interactive playground where you can test requests directly in the browser. Enter your JWT token and try the API without writing any code.

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