music nerd

AdminPending UGC count

Admin

Pending UGC count

How many user-submitted links are waiting for admin review. A caller who is not signed in or not an admin gets count: 0 rather than an error, and so does a database failure.

GET/api/pendingUGCCount
GET/api/pendingUGCCount

How many user-submitted links are waiting for admin review. A caller who is not signed in or not an admin gets count: 0 rather than an error, and so does a database failure.

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.

cURL
curl --request GET \
  --url 'https://musicnerd-api.vercel.app/api/pendingUGCCount'

Send the request to see the live response here.

Authorizations

Authorizationstringheaderoptional

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.

Response

application/json

The count; 0 for anyone who isn't an admin.

statusstring · enumrequired

Values: "ok"

countintegerrequired

minimum: 0