> ## 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 Details

> Get current user's details

<Tip>This API is useful for updating the user's details.</Tip>


## OpenAPI

````yaml GET /user/details
openapi: 3.0.1
info:
  title: User API
  version: 1.0.0
servers:
  - url: https://our-secret-api-url.com
security: []
paths:
  /user/details:
    get:
      description: Get current user's details
      operationId: getCurrentUserDetails
      responses:
        '200':
          description: The user's details
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                    description: User ID
                  username:
                    type: string
                    description: Username of the user
                  name:
                    type: string
                    description: Name of the user
                  image:
                    type: string
                    description: Profile image URL
                  email:
                    type: string
                    description: User's email
                  phone:
                    type: string
                    description: User's phone
                  bio:
                    type: string
                    description: User's bio
                  verifiedAt:
                    type: string
                    format: date-time
                    nullable: true
                    description: Verification timestamp if the user is verified
                  role:
                    type: string
                    enum:
                      - user
                      - admin
                    description: Role of the user
                nullable: true
        '500':
          description: Failed to fetch user
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````