Skip to main content
GET
List comparisons
AdminOnly Bearer token, role admin

Authorizations

Authorization
string
header
required

Supabase access token of an account with role = 'admin' in public.users.

Query Parameters

page
integer
default:1

Page number, from 1.

Required range: x >= 1
pageSize
integer
default:50

Rows per page (clamped to 1-500). Note the name: pageSize, not limit.

Required range: 1 <= x <= 500

Partial match on the prompt.

userId
string<uuid>

Only this user's battles.

isRevealed
boolean

Only voted (true) or unvoted (false) battles.

Response

A page of comparisons

success
boolean
Example:

true

data
object[]
total
integer

Rows matching the filters (not just this page).

Example:

128

page
integer
Example:

1

pageSize
integer
Example:

50

page_size
integer

Snake-case copy of pageSize.

Example:

50

Last modified on October 18, 2026