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.- Arena routes
- Threads, votes, models, settings
- Admin routes
Success
Error
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.