Admin
List staff Fans search results
Changed onRequires Clerk authentication and isAdmin (admin or superadmin). Moderators, club-only staff and regular fans receive 403; anonymous callers receive 401. Returns the existing staff Fans list with additive integer dsportsCash, including zero, without ledger history. Consumed by d-sports-engage-native#1239. Existing search, sorting and pagination are unchanged.
get/api/admin/users
Request
- Base URLhttps://app.d-sports.org
- AuthHTTP bearer
Query parameters
pageinteger
Page number; values below 1 are clamped to 1.
limitinteger
Items per page; clamped to 1 through 100.
searchstring
Case-insensitive substring match across email, name or handle.
sortBystring
User scalar field used for sorting; invalid fields produce INTERNAL_ERROR.
sortOrderstring
Only asc selects ascending order; all other values use desc.
Response
Paginated Fans with balances visible only to platform admins.
Example response
{
"data": {
"users": [
{
"dsportsCash": 150
}
]
}
}Changes
- info
endpoint added
- info