Skip to main content
One API serves the arena, the admin panel and the Telegram bot. This reference has two parts, each backed by an OpenAPI 3.1 file in this repository:

Public API

Battles, chat, votes, the leaderboard, models, threads and utilities. 15 routes. api-reference/openapi.json (shared with the public docs).

Admin API

Everything under /api/admin/*. 46 routes, all AdminOnly. api-reference/openapi-admin.json.

Base URLs

Authentication

Send the Supabase access token of a signed-in user:
See Authentication and roles for how tokens are validated.

Response formats

The API grew route by route, so response shapes vary. Follow each endpoint’s schema in this reference; the tabs below show the common families.
Success
Error
Public routes use camelCase (except GET /api/arena/model-stats, which also returns snake_case aliases); admin routes use the database’s snake_case. null fields are omitted. Times are UTC ISO 8601.

Status codes

Making a call

The interactive playground on each endpoint page sends real requests. Point it at a local API (http://localhost:5079) for anything that writes data; against production, stick to read-only GETs.
Last modified on October 18, 2026