# Your approved claim

Source: https://docs.musicnerd.net/api-reference/users/has-claim

Your approved claim

## GET /api/user/has-claim

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/has-claim": {
      "get": {
        "summary": "Your approved claim",
        "operationId": "getUserHasClaim",
        "security": [
          {
            "privyBearer": []
          }
        ],
        "description": "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.",
        "responses": {
          "200": {
            "description": "The caller's approved claim, if any.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "hasClaim",
                    "artistId"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "ok"
                      ]
                    },
                    "hasClaim": {
                      "type": "boolean"
                    },
                    "artistId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The claimed artist, or null."
                    }
                  }
                },
                "examples": {
                  "claimed": {
                    "summary": "An approved claimant",
                    "value": {
                      "status": "ok",
                      "hasClaim": true,
                      "artistId": "aab92f80-f9e1-4299-aa33-7dd85c8de5d3"
                    }
                  },
                  "none": {
                    "summary": "No claim, no token, or the database is unavailable",
                    "value": {
                      "status": "ok",
                      "hasClaim": false,
                      "artistId": null
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "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."
      }
    }
  }
}
```
