# Read the signed-in account

Source: https://docs.musicnerd.net/api-reference/users/get-me

Read the signed-in account

## GET /api/user/me

Full OpenAPI specification: https://docs.musicnerd.net/spec/users.json

## Authentication

This operation requires one of the security alternatives in the specification below. Security scheme definitions are included where present in the published specification.

[Authentication guide](https://docs.musicnerd.net/authentication)

## Operation and referenced schemas

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Music Nerd API: users and profile",
    "version": "1.0.0",
    "description": "The signed-in user's own account and profile: their user name, profile photo, approved claim, contributed artists, contribution summary and the updates feed. Every route answers about the caller only; the account comes from the token, never from the request."
  },
  "servers": [
    {
      "url": "https://musicnerd-api.vercel.app",
      "description": "Production"
    },
    {
      "url": "https://musicnerd-api-staging.vercel.app",
      "description": "Staging (staging database)"
    }
  ],
  "paths": {
    "/api/user/me": {
      "get": {
        "summary": "Read the signed-in account",
        "operationId": "getMe",
        "security": [
          {
            "privyBearer": []
          }
        ],
        "description": "Returns the signed-in caller's account and role flags. The first call for a new sign-in creates the account and gives it a generated name if it has none.",
        "responses": {
          "200": {
            "description": "The caller's account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                },
                "example": {
                  "status": "ok",
                  "id": "6f1d2e3a-4b5c-4d6e-8f90-a1b2c3d4e5f6",
                  "email": null,
                  "username": "Vinyl Otter",
                  "usernameNeedsConfirmation": true,
                  "usernamePromptedAt": null,
                  "wallet": null,
                  "privyUserId": "did:privy:example",
                  "createdAt": "2026-10-01 12:00:00.123456+00",
                  "updatedAt": "2026-10-01 12:00:00.123456+00",
                  "legacyId": null,
                  "isAdmin": false,
                  "isWhiteListed": false,
                  "isSuperAdmin": false,
                  "isHidden": false,
                  "legacyLinkDismissed": false,
                  "acceptedUgcCount": 3
                }
              }
            }
          },
          "401": {
            "description": "No token, or an invalid or expired token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "error",
                  "error": "Not signed in"
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "User": {
        "type": "object",
        "description": "The caller's user row, as stored.",
        "required": [
          "status",
          "id",
          "email",
          "username",
          "usernameNeedsConfirmation",
          "usernamePromptedAt",
          "wallet",
          "privyUserId",
          "createdAt",
          "updatedAt",
          "legacyId",
          "isAdmin",
          "isWhiteListed",
          "isSuperAdmin",
          "isHidden",
          "legacyLinkDismissed",
          "acceptedUgcCount"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok"
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "username": {
            "type": [
              "string",
              "null"
            ]
          },
          "usernameNeedsConfirmation": {
            "type": "boolean",
            "description": "True while the name is a generated one the user has not confirmed or replaced."
          },
          "usernamePromptedAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "When the one-time user-name prompt was shown, as Postgres timestamp text (`2026-10-01 12:00:00.123456+00`), or null."
          },
          "wallet": {
            "type": [
              "string",
              "null"
            ]
          },
          "privyUserId": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "legacyId": {
            "type": [
              "string",
              "null"
            ]
          },
          "isAdmin": {
            "type": "boolean"
          },
          "isWhiteListed": {
            "type": "boolean"
          },
          "isSuperAdmin": {
            "type": "boolean"
          },
          "isHidden": {
            "type": "boolean"
          },
          "legacyLinkDismissed": {
            "type": "boolean"
          },
          "acceptedUgcCount": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "status",
          "error"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "error"
            ]
          },
          "error": {
            "type": "string"
          }
        }
      }
    },
    "responses": {
      "InternalError": {
        "description": "The database could not be read or written.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "status": "error",
              "error": "Internal server error"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "privyBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Access token",
        "description": "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."
      }
    }
  }
}
```
