> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qlty.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Get authenticated user

> Get the authenticated User based on the provided access token



## OpenAPI

````yaml /openapi/qlty-api.json get /user
openapi: 3.1.0
info:
  title: Qlty API
  version: 1.0.0
  description: >-
    The Qlty API is organized around REST. It provides predictable,
    resource-oriented URLs, accepts JSON-encoded request bodies, and returns
    JSON-encoded responses.
servers:
  - url: https://api.qlty.sh
security:
  - BearerAuth: []
  - BasicAuth: []
tags:
  - name: User
    description: Operations for the authenticated user
  - name: Workspaces
    description: Operations for managing workspaces
  - name: Projects
    description: Operations for managing projects
  - name: Issues
    description: Operations for managing issues
  - name: Metrics
    description: Operations for retrieving metrics
paths:
  /user:
    get:
      tags:
        - User
      summary: Get authenticated user
      description: Get the authenticated User based on the provided access token
      operationId: getUser
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
              example:
                id: e34cb947-2b6f-47df-ae0c-776e17f3fdbf
                login: alice
                name: Alice
                email: alice@example.com
                avatarUrl: https://assets.github.com/alice.png
                providerUrl: https://github.com/alice
                createdAt: '2023-01-01T00:00:00Z'
                updatedAt: '2023-01-01T00:00:00Z'
        '400':
          $ref: '#/components/responses/BadRequestError'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '403':
          $ref: '#/components/responses/ForbiddenError'
        '404':
          $ref: '#/components/responses/NotFoundError'
        '429':
          $ref: '#/components/responses/TooManyRequestsError'
components:
  schemas:
    User:
      type: object
      properties:
        id:
          type: string
          description: The UUID of the User
        login:
          type: string
          description: The username of the User
        name:
          type: string
          description: The full name of the User
        email:
          type: string
          description: The email address of the User
        avatarUrl:
          type: string
          description: URL to the User's profile picture
        providerUrl:
          type: string
          description: >-
            URL to the User's profile on the authentication provider (e.g.,
            GitHub profile URL)
        createdAt:
          type: string
          format: date-time
          description: Timestamp when the User was created
        updatedAt:
          type: string
          format: date-time
          description: Timestamp when the User was last updated
      required:
        - id
        - login
        - name
        - email
        - avatarUrl
        - providerUrl
        - createdAt
        - updatedAt
    ErrorBody:
      type: object
      properties:
        status:
          type: string
          description: The HTTP status code of the error
        title:
          type: string
          description: A short, human-readable summary of the error
        detail:
          type: string
          description: A detailed explanation of the error
      required:
        - status
  responses:
    BadRequestError:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
    UnauthorizedError:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
    ForbiddenError:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
    NotFoundError:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
    TooManyRequestsError:
      description: Too Many Requests
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Generate an API token at https://qlty.sh/user/settings/tokens
    BasicAuth:
      type: http
      scheme: basic
      description: Use your API token as the username with an empty password

````