music nerd

Users and profileYour approved claim

Users and profile

Your approved claim

Whether the caller has an approved artist claim, and which artist. Always 200: without a valid token, or when the database cannot be read, it answers hasClaim: false rather than an error.

GET/api/user/has-claim
GET/api/user/has-claim

Whether the caller has an approved artist claim, and which artist. Always 200: without a valid token, or when the database cannot be read, it answers hasClaim: false rather than an error.

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.

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

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.

Response

application/json

The caller's approved claim, if any.

statusstring · enumrequired

Values: "ok"

hasClaimbooleanrequired
artistIdstring | nullrequired

The claimed artist, or null.

format: uuid