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

# Get current user profile

> Returns the full profile of the authenticated user.



## OpenAPI

````yaml api-reference/openapi.yaml get /api/v1/me
openapi: 3.0.3
info:
  title: Flowxi API Documentation
  version: 1.0.0
servers:
  - url: https://api.flowxi.app
security:
  - bearerAuth: []
tags:
  - name: Health
    description: Service healthcheck.
  - name: Registration
    description: Registration flows (magic link + email OTP).
  - name: Auth
    description: Login and session management.
  - name: Two-factor authentication
    description: TOTP 2FA endpoints (login verification + manage 2FA).
  - name: Devices
    description: Session/device listing and revocation.
  - name: Me
    description: Profile of the authenticated user (Sanctum session).
paths:
  /api/v1/me:
    get:
      tags:
        - Me
      summary: Get current user profile
      description: Returns the full profile of the authenticated user.
      operationId: getApiV1Me
      parameters:
        - $ref: '#/components/parameters/XAppLocale'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeGetResponse'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '500':
          $ref: '#/components/responses/ServerError'
      security:
        - bearerAuth: []
components:
  parameters:
    XAppLocale:
      name: X-App-Locale
      in: header
      required: false
      description: Optional locale override (fallback is fr if missing/invalid).
      schema:
        type: string
        example: fr
  schemas:
    MeGetResponse:
      allOf:
        - $ref: '#/components/schemas/ApiOkBase'
        - type: object
          required:
            - data
          properties:
            data:
              $ref: '#/components/schemas/MeProfile'
      example:
        code: ME_OK
        message: OK
        data:
          id: 17
          email: fandjinoujaf@gmail.com
          status: active
          locale: fr
          username: fx00000017
          photo_url: >-
            https://s3.us-west-004.backblazeb2.com/flowxi-storage-prod/profile_photos/....
          first_name: Jafette
          last_name: Fandjinou
          birth_date: '1999-01-01'
          country: BJ
          nationality: BEN
          phone_number: '+22900000000'
          twofa_enabled: false
          created_at: '2026-01-09T17:08:57.000000Z'
          updated_at: '2026-01-09T17:39:23.000000Z'
    ApiOkBase:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          example: OK
        message:
          type: string
          example: OK
    MeProfile:
      type: object
      required:
        - id
        - email
        - status
        - locale
        - username
        - photo_url
        - first_name
        - last_name
        - birth_date
        - country
        - nationality
        - phone_number
        - twofa_enabled
        - created_at
        - updated_at
      properties:
        id:
          type: integer
          example: 17
        email:
          type: string
          format: email
          example: fandjinoujaf@gmail.com
        status:
          type: string
          example: active
        locale:
          type: string
          example: fr
        username:
          type: string
          example: fx00000017
        photo_url:
          type: string
          description: >-
            Signed Backblaze URL (short TTL) if uploaded, otherwise a stable
            public avatar URL.
          example: >-
            https://s3.us-west-004.backblazeb2.com/flowxi-storage-prod/profile_photos/....
        first_name:
          type: string
          nullable: true
          example: Jafette
        last_name:
          type: string
          nullable: true
          example: Fandjinou
        birth_date:
          type: string
          nullable: true
          example: '1999-01-01'
        country:
          type: string
          nullable: true
          description: ISO 3166-1 alpha-2, normalized uppercase.
          example: BJ
        nationality:
          type: string
          nullable: true
          description: ISO 3166-1 alpha-3, normalized uppercase.
          example: BEN
        phone_number:
          type: string
          nullable: true
          example: '+22900000000'
        twofa_enabled:
          type: boolean
          example: false
        created_at:
          type: string
          example: '2026-01-09T17:08:57.000000Z'
        updated_at:
          type: string
          example: '2026-01-09T17:39:23.000000Z'
    ApiError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Machine-readable error code.
          example: UNAUTHENTICATED
        message:
          type: string
          description: Localized, user-facing message.
          example: Unauthenticated.
  responses:
    Unauthenticated:
      description: Unauthenticated.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            code: UNAUTHENTICATED
            message: Unauthenticated.
    ServerError:
      description: Server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            code: SERVER_ERROR
            message: Server error.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum

````