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

# Get User

> Retrieve user information



## OpenAPI

````yaml GET /user
openapi: 3.0.1
info:
  title: User Authentication API
  version: 1.0.0
  description: API for user registration, OTP request, and OTP verification
servers:
  - url: https://our-secret-api-url.com
security: []
paths:
  /user:
    get:
      description: Retrieve user information
      responses:
        '200':
          description: User information successfully retrieved
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                    description: User ID
                  email:
                    type: string
                    description: Decrypted email address
                  image:
                    type: string
                    description: Decrypted image URL or data
                  name:
                    type: string
                    description: Decrypted name of the user
                  username:
                    type: string
                    description: Username of the user
                  verifiedAt:
                    type: string
                    format: date-time
                    description: Date and time when the user was verified by admin
                  role:
                    type: string
                    description: Role of the user
                    enum:
                      - user
                      - admin
                required:
                  - id
                  - email
                  - image
                  - name
                  - username
                  - verifiedAt
                  - role
        '401':
          description: Unauthorized - No valid session found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                required:
                  - message
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                required:
                  - message
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````