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

# Get current user

> Displays the authenticated user's profile information.



## OpenAPI

````yaml https://api.contracting.kukkingu.software/api/v1/docs.json get /api/v1/users/me
openapi: 3.1.0
info:
  title: Contracting Backend API
  version: 0.1.0
  description: API documentation for the Contracting backend service.
servers:
  - url: https://api.contracting.kukkingu.software
    description: API server
security:
  - bearerAuth: []
paths:
  /api/v1/users/me:
    get:
      tags:
        - Users
      summary: Get current user
      description: Displays the authenticated user's profile information.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        description: Unique identifier of the user.
                        example: usr_dt6vljbe6dy0rspxbenflryz
                      name:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: Display name for the user.
                        example: Jane Doe
                      email:
                        anyOf:
                          - type: string
                            format: email
                            pattern: >-
                              ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
                          - type: 'null'
                        description: Email address for the user.
                        example: jane@example.com
                      tenants:
                        default: []
                        description: Tenants the user can access.
                        type: array
                        items:
                          type: string
                          description: Unique identifier of the tenant.
                          example: tnt_cx0o4i8f0g950ul9gijig905
                      roles:
                        default: []
                        description: Roles granted to the user.
                        type: array
                        items:
                          type: string
                          description: Role assigned to the user.
                          example: admin
                    required:
                      - id
                      - name
                      - email
                      - tenants
                      - roles
                    additionalProperties: false
                    description: Authenticated user profile.
                required:
                  - data
                additionalProperties: false
                description: Standard success response payload wrapped in a data property.
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    default: Unauthorized
                    description: Machine-readable error code.
                    example: Unauthorized
                    type: string
                  message:
                    default: Unauthorized
                    description: Human-readable error message.
                    example: Unauthorized
                    type: string
                required:
                  - error
                  - message
                additionalProperties: false
                description: Error response for requests without valid authentication.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````