music nerd

AdminSearch users

Admin

Search users

Users whose wallet address or username contains search, case-insensitive, ordered by username then wallet. Use a result's id to change that user's roles.

GET/api/admin/users
GET/api/admin/users

Users whose wallet address or username contains search, case-insensitive, ordered by username then wallet. Use a result's id to change that user's roles.

Authorization

Authorizationstringrequired

A Music Nerd admin's access token. Copy it at https://musicnerd.net/access after signing in. A signed-in user who is not an admin gets 403. Kept in this tab only.

Query

searchstringrequired

At least 3 characters of a wallet address or username. Trimmed.

cURL
curl --request GET \
  --url 'https://musicnerd-api.vercel.app/api/admin/users?search=dutch'

Send the request to see the live response here.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>. A Music Nerd admin's access token. Copy it at https://musicnerd.net/access after signing in. A signed-in user who is not an admin gets 403.

Query Parameters

searchstringrequired

At least 3 characters of a wallet address or username. Trimmed.

Response

application/json

The matching users; empty when none match.

statusstring · enumrequired

Values: "ok"

usersarray<AdminUserMatch>required
Item properties for users
idstringrequired

format: uuid

usernamestring | nullrequired
walletstring | nullrequired