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

# Me

> Return the currently authenticated user's profile.

Args:
    user: The authenticated user (injected by ``require_user``).

Returns:
    The user's profile as a ``UserResponse``.



## OpenAPI

````yaml /openapi.json get /api/auth/me
openapi: 3.1.0
info:
  title: HAI-Co² API
  description: Human-AI Co-Construction reference implementation.
  version: 0.1.0
servers:
  - url: https://haico.gr
    description: Production
  - url: https://dev.haico.gr
    description: Development
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /api/auth/me:
    get:
      tags:
        - Auth
      summary: Me
      description: |-
        Return the currently authenticated user's profile.

        Args:
            user: The authenticated user (injected by ``require_user``).

        Returns:
            The user's profile as a ``UserResponse``.
      operationId: me_api_auth_me_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    UserResponse:
      properties:
        id:
          type: integer
          title: Id
        username:
          type: string
          title: Username
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
        role:
          type: string
          title: Role
        is_approved:
          type: boolean
          title: Is Approved
        auth_provider:
          type: string
          title: Auth Provider
        email_verified:
          type: boolean
          title: Email Verified
        created_at:
          type: string
          format: date-time
          title: Created At
        recording_consent_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Recording Consent At
        research_publish_consent_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Research Publish Consent At
        email_updates_opt_in:
          type: boolean
          title: Email Updates Opt In
          default: false
      type: object
      required:
        - id
        - username
        - role
        - is_approved
        - auth_provider
        - email_verified
        - created_at
      title: UserResponse
      description: Public user profile returned by auth endpoints.
  securitySchemes:
    HTTPBearer:
      type: http
      description: >-
        A personal access token (`haico_pat_...`), created under Profile → API
        keys. Send it as `Authorization: Bearer <key>`. The browser session JWT
        is also accepted but is an internal mechanism and is not part of the
        public contract.
      scheme: bearer

````