> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dualmindlab.tech/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> DualMind Arena API base URL: https://api.dualmindlab.tech. Public endpoints only; admin routes are not part of this API.
> Authenticate with the access token from an Arena session (a Supabase JWT) as `Authorization: Bearer <token>`. There are no API keys yet; never invent one.
> For battles call POST /api/arena/dualchat, then vote with POST /api/arena/model-vote using the returned comparisonId. Keep model names hidden from voters until they vote.
> GET /api/arena/model-stats (leaderboard) and GET /health need no token.

# Get a feature flag

> Public. Check whether a feature is switched on, e.g. `public_sharing`.

| Key | Controls |
| :- | :- |
| `public_sharing` | Whether `public` and `unlisted` threads can be read without signing in |

Unknown keys return `enabled: false`.


## OpenAPI

````yaml GET /api/settings/feature-flag/{key}
openapi: 3.1.0
info:
  title: DualMind Arena API
  version: 1.0.0
  description: >-
    The REST API behind DualMind Arena: blind battles, votes, the leaderboard,
    models and threads.
  contact:
    name: DualMind Labs
    email: support@dualmindlab.tech
    url: https://dualmindlab.tech
servers:
  - url: https://api.dualmindlab.tech
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Arena
    description: Battles and chat.
  - name: Voting
    description: Votes and the leaderboard.
  - name: Models
    description: Available models.
  - name: Threads
    description: Saved conversations and sharing.
  - name: Utilities
    description: Health and feature flags.
paths:
  /api/settings/feature-flag/{key}:
    get:
      tags:
        - Utilities
      summary: Get a feature flag
      description: Public. Check whether a feature is switched on, e.g. `public_sharing`.
      operationId: getFeatureFlag
      parameters:
        - name: key
          in: path
          required: true
          schema:
            type: string
          example: public_sharing
      responses:
        '200':
          description: Flag state.
          content:
            application/json:
              schema:
                type: object
                properties:
                  key:
                    type: string
                  enabled:
                    type: boolean
              example:
                key: public_sharing
                enabled: true
        '500':
          description: Unexpected server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  schemas:
    Error:
      type: object
      description: >-
        Error envelope used by the threads, voting, models and settings
        endpoints.
      properties:
        success:
          type: boolean
          const: false
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: >-
            Machine-readable code, e.g. `INVALID_REQUEST`, `NOT_FOUND`,
            `FORBIDDEN`, `UNAUTHORIZED`, `VOTE_ERROR`.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        The access token from your DualMind Arena session (a Supabase JWT). See
        Authentication.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.