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

# Get authenticated user

> Retrieves the currently authenticated user's details



## OpenAPI

````yaml api-reference/openapi.json get /user
openapi: 3.1.0
info:
  title: Nextvisit API
  description: API for the Nextvisit Clinical Documentation platform for developers
  version: 1.0.0
  termsOfService: https://nextvisit.com/terms/
  contact:
    name: Nextvisit, Inc.
    email: support@nextvisit.com
  license:
    name: Proprietary
    url: https://nextvisit.app/terms-of-service
servers:
  - url: https://nextvisit.app/api
    description: Production API
  - url: http://localhost/api
    description: Developer Proxy
security: []
tags:
  - name: Tokens
    description: >-
      User token management endpoints for secure access to the Nextvisit
      platform. Includes login, logout, and token management operations.
  - name: Progress Notes
    description: >-
      Clinical progress note management including creating, updating,
      retrieving, and signing notes with associated transcriptions and analyses.
  - name: Users
    description: >-
      User account management including profile updates, permission settings,
      role assignments, and practice affiliations.
paths:
  /user:
    get:
      tags:
        - Users
      summary: Get authenticated user
      description: Retrieves the currently authenticated user's details
      operationId: getAuthenticatedUser
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
              examples:
                default:
                  $ref: '#/components/examples/UserExample'
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
        - bearerAuth: []
components:
  schemas:
    User:
      type: object
      properties:
        id:
          type: integer
          format: int64
          description: Unique identifier for the user
          example: 12345
        name:
          type: string
          description: Full name of the user
          example: Dr. Sarah Johnson
        email:
          type: string
          format: email
          description: Email address of the user
          example: sarah.johnson@nextvisit.com
        created_at:
          type: string
          format: date-time
          description: Timestamp when the user was created
          example: '2023-03-15T09:12:34Z'
        updated_at:
          type: string
          format: date-time
          description: Timestamp when the user was last updated
          example: '2023-05-22T14:07:53Z'
      required:
        - id
        - name
        - email
        - created_at
        - updated_at
    Error:
      type: object
      properties:
        message:
          type: string
          description: Error message
          example: Validation failed
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Detailed validation errors by field
          example:
            email:
              - The email must be a valid email address
              - The email has already been taken
            password:
              - The password must be at least 8 characters
            template_name:
              - This field is required
      required:
        - message
  examples:
    UserExample:
      value:
        id: 1
        name: John Doe
        email: john.doe@example.com
        created_at: '2023-01-15T08:30:00Z'
        updated_at: '2023-01-15T08:30:00Z'
  responses:
    Unauthorized:
      description: Unauthorized access
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            message: Unauthorized
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````