music nerd

Users and profileYour profile photo

Users and profile

Your profile photo

A one-hour signed URL for the caller's profile photo, or url: null when none has been uploaded. The optional X-Profile-Account header lets a caller detect that the signed-in account changed.

GET/api/user/profile-image
GET/api/user/profile-image

A one-hour signed URL for the caller's profile photo, or url: null when none has been uploaded. The optional X-Profile-Account header lets a caller detect that the signed-in account changed.

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-Accountstring

The user id the page believes is signed in. When sent, it must equal the token's user, or the response is 409.

cURL
curl --request GET \
  --url 'https://musicnerd-api.vercel.app/api/user/profile-image' \
  --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-Accountstring

The user id the page believes is signed in. When sent, it must equal the token's user, or the response is 409.

Response

application/json

The photo URL, or null. Cache-Control: private, no-store.

statusstring · enumrequired

Values: "ok"

userIdstringrequired

format: uuid

urlstring | nullrequired

A signed URL valid for an hour, with a cache-busting v query, or null.