music nerd

Users and profileYour contribution summary

Users and profile

Your contribution summary

The caller's contribution counts (link submissions, approved and pending, artists added, claimant edits) and their three most recent link submissions.

GET/api/profile/summary
GET/api/profile/summary

The caller's contribution counts (link submissions, approved and pending, artists added, claimant edits) and their three most recent link submissions.

Authorization

Authorizationstringrequired

The signed-in user's access token. Copy it at https://musicnerd.net/access after signing in. Every route here answers about that user only. Kept in this tab only.

Headers

X-Profile-Accountstringrequired

The user id the page believes is signed in. Must equal the token's user, or the response is 409 so the page can refresh instead of showing another account's data.

cURL
curl --request GET \
  --url 'https://musicnerd-api.vercel.app/api/profile/summary' \
  --header 'X-Profile-Account: 6f1d2e3a-4b5c-4d6e-8f90-a1b2c3d4e5f6'

Send the request to see the live response here.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>. The signed-in user's access token. Copy it at https://musicnerd.net/access after signing in. Every route here answers about that user only.

Header Parameters

X-Profile-Accountstringrequired

The user id the page believes is signed in. Must equal the token's user, or the response is 409 so the page can refresh instead of showing another account's data.

Response

application/json

The summary. Cache-Control: private, no-store.

statusstring · enumrequired

Values: "ok"

userIdstringrequired

format: uuid

totalContributionsintegerrequired

All link submissions by the caller.

approvedintegerrequired
pendingintegerrequired
selfEditsintegerrequired

Edits made as an artist's claimant.

artistsAddedintegerrequired

Artists the caller added to Music Nerd.

entriesarray<ProfileEntry>required

The three most recent link submissions.

maxItems: 3

Item properties for entries
idstringrequired

format: uuid

artistIdstring | nullrequired

format: uuid

artistNamestring | nullrequired
imageUrlstring | nullrequired

The artist's stored portrait, as stored.

siteNamestring | nullrequired
ugcUrlstring | nullrequired
acceptedboolean | nullrequired
createdAtstring | nullrequired