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

# User Me

> Endpoint to retrieve information about the currently authenticated user.

Returns user metadata including email, name, role, organization info, trial expiration, onboarding status,
and enabled features based on the organization's tier.

Args:

Returns:
    UserInfo: A dictionary containing user and organization-specific metadata.



## OpenAPI

````yaml get /api/user/me
openapi: 3.1.0
info:
  title: Apigene
  description: Apigene API
  version: 1.0.0
  contact:
    name: Apigene Support
    url: https://app.apigene.ai
    email: support@apigene.ai
servers:
  - url: https://app.apigene.ai
security:
  - BearerAuth: []
paths:
  /api/user/me:
    get:
      tags:
        - User
      summary: User Me
      description: >-
        Endpoint to retrieve information about the currently authenticated user.


        Returns user metadata including email, name, role, organization info,
        trial expiration, onboarding status,

        and enabled features based on the organization's tier.


        Args:


        Returns:
            UserInfo: A dictionary containing user and organization-specific metadata.
      operationId: user_me
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserInfo'
      security:
        - BearerAuth: []
components:
  schemas:
    UserInfo:
      properties:
        email:
          type: string
          format: email
          title: Email
        role:
          $ref: '#/components/schemas/UserRole'
          default: User
        org_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Org Name
        org_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Org Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        last_login:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Login
        photo_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Photo Url
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        onboarding_completed:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Onboarding Completed
          default: true
        trial_expire_in:
          anyOf:
            - type: integer
            - type: 'null'
          title: Trial Expire In
        features:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Features
      type: object
      required:
        - email
      title: UserInfo
    UserRole:
      type: string
      enum:
        - APIGene
        - Owner
        - Admin
        - User
        - Member
      title: UserRole
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        'Authorization: Bearer {token}'

````