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

# Me



## OpenAPI

````yaml /api-reference/proxy.json get /v1/users/me
openapi: 3.1.0
info:
  title: Lumi Proxy API
  version: 1.1.0
  description: >-
    Публичный REST API прокси Lumi. Ключ привязан к одному аккаунту и делает то
    же, что клиент делает в боте.


    Авторизация: `Authorization: Bearer <ключ>`. Денежные запросы дополнительно
    требуют заголовок `Idempotency-Key`.
servers:
  - url: https://api.lumiweb.cc/proxy
    description: production
security:
  - bearerAuth: []
paths:
  /v1/users/me:
    get:
      tags:
        - users
      summary: Me
      operationId: me
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MeResponse:
      properties:
        principal:
          $ref: '#/components/schemas/PrincipalInfo'
        user:
          anyOf:
            - $ref: '#/components/schemas/UserProfile'
            - type: 'null'
      type: object
      required:
        - principal
      title: MeResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PrincipalInfo:
      properties:
        key_id:
          type: integer
          title: Key Id
        name:
          type: string
          title: Name
        role:
          type: string
          title: Role
        scopes:
          items:
            type: string
          type: array
          title: Scopes
        user_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: User Id
      type: object
      required:
        - key_id
        - name
        - role
        - scopes
        - user_id
      title: PrincipalInfo
    UserProfile:
      properties:
        id:
          type: integer
          title: Id
        telegram_id:
          type: integer
          title: Telegram Id
        username:
          anyOf:
            - type: string
            - type: 'null'
          title: Username
        language:
          type: string
          title: Language
        balance_usd:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Balance Usd
        total_spent_usd:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Total Spent Usd
        total_deposited_usd:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Total Deposited Usd
        referral_earnings_usd:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Referral Earnings Usd
        is_banned:
          type: boolean
          title: Is Banned
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - telegram_id
        - language
        - balance_usd
        - total_spent_usd
        - total_deposited_usd
        - referral_earnings_usd
        - is_banned
        - created_at
      title: UserProfile
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Ключ вида lumi_proxy_… Выдаётся оператором.

````