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

# Who am I

> Returns the currently authenticated user (the current user), including their role, username, and account details. Use this endpoint to find out who the current logged-in user is, check my role, retrieve my user profile, or look up the authenticated user. Also answers "who am I" for the logged-in user.



## OpenAPI

````yaml /openapi/phrase-tms-latest.json get /api2/v1/auth/whoAmI
openapi: 3.0.0
info:
  description: |-
    Welcome to Phrase's TMS API documentation. 

     Please visit our [help center](https://support.phrase.com/hc/en-us/sections/5709662083612) for more information about the APIs. 

     If you have any questions, please contact [Support](https://support.phrase.com/hc/requests/new). 

     Please, include the `User-Agent` header with the name of your application or project. It might be a good idea to include some sort of contact information as well, so that we can get in touch if necessary. Examples of excellent `User-Agent` headers:
     > User-Agent: Example mobile app (example@phrase.com) <br/> User-Agent: ACME Inc Java 1.8 Client (http://acmeinc.com/contact)
  version: Latest
  title: Phrase TMS API
servers:
  - url: https://cloud.memsource.com/web
security:
  - ApiToken: []
  - OAuth2: []
tags:
  - name: Additional Workflow Step
  - name: Analysis
  - name: Async Request
  - name: Authentication
  - name: Automations
  - name: Bilingual File
  - name: Business Unit
  - name: Buyer
  - name: Client
  - name: Connections
  - name: Connector
  - name: Conversations
  - name: Cost Center
  - name: Custom Fields
  - name: Custom File Type
  - name: Domain
  - name: Due Date Scheme
  - name: Email Template
  - name: File
  - name: Glossary
  - name: Import settings
  - name: Job
  - name: Language AI
  - name: Language Assets
  - name: Language Quality Assessment
  - name: Machine Translation
  - name: Machine Translation Settings
  - name: Mapping
  - name: Metabase
  - name: Net Rate Scheme
  - name: Notifications
  - name: Price List
  - name: Project
  - name: Project Template
  - name: Provider
  - name: Quality Assurance
  - name: Quality Profile
  - name: Quote
  - name: Reference File
  - name: Segment
  - name: Segmentation Rules
  - name: Service
  - name: Setup
  - name: Spell Check
  - name: SubDomain
  - name: Supported Languages
  - name: Term Base
  - name: Translation
  - name: Translation Memory
  - name: User
  - name: User Profile
  - name: Vendor
  - name: Webhook
  - name: Workflow Step
  - name: Workflow changes
  - name: XML Assistant
paths:
  /api2/v1/auth/whoAmI:
    get:
      tags:
        - Authentication
      summary: Who am I
      description: >-
        Returns the currently authenticated user (the current user), including
        their role, username, and account details. Use this endpoint to find out
        who the current logged-in user is, check my role, retrieve my user
        profile, or look up the authenticated user. Also answers "who am I" for
        the logged-in user.
      operationId: whoAmI
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoginUserDtoV1'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Resource not found
        '405':
          description: Method not allowed
        '408':
          description: Timeout
        '410':
          description: Gone
        '415':
          description: Unsupported media type
        '429':
          description: Too many requests
        '500':
          description: Internal server error
        '501':
          description: Not implemented
components:
  schemas:
    LoginUserDtoV1:
      type: object
      properties:
        csrfToken:
          type: string
          description: CSRF token for the current session
        edition:
          $ref: '#/components/schemas/LoginUserDtoLoginUserEditionDtoV1'
        features:
          $ref: '#/components/schemas/FeaturesDtoV1'
        organization:
          $ref: '#/components/schemas/OrganizationReferenceV1'
        user:
          $ref: '#/components/schemas/IdmUserReferenceV1'
      description: The currently authenticated user and their account context
    LoginUserDtoLoginUserEditionDtoV1:
      type: object
      properties:
        name:
          type: string
          description: Edition name
      description: Product edition of an organization
    FeaturesDtoV1:
      type: object
      properties:
        autoLqaCopilotEnabled:
          type: boolean
          description: Deprecated. When true, the Auto LQA copilot is enabled
        birdieEnabled:
          type: boolean
          description: When true, the Birdie assistant is enabled
        filteringByCustomMetadataEnabled:
          type: boolean
          description: When true, filtering by custom metadata is enabled
        filteringByRegexEnabled:
          type: boolean
          description: When true, filtering by regular expression is enabled
        icuEnabled:
          type: boolean
          description: When true, ICU message format support is enabled
        idmOrganizationLogoEnabled:
          type: boolean
          description: When true, the IDM organization logo is enabled
        ignoreTagMetadataEnabled:
          type: boolean
          description: When true, tag metadata is ignored in the translation editor
        loadingSegmentsUsingAnchorsEnabled:
          type: boolean
          description: >-
            When true, segments are loaded using anchors in the translation
            editor
        lqaBulkCommentsCreation:
          type: boolean
          description: When true, bulk creation of LQA comments is enabled
        mentionsAndNotificationsPollingInterval:
          type: integer
          format: int32
          description: Polling interval, in seconds, for mentions and notifications
        mtForTMAbove100Enabled:
          type: boolean
          description: >-
            When true, machine translation is used for translation memory
            matches above 100%
        mtuOptimizationEnabled:
          type: boolean
          description: When true, MTU optimization is enabled
        platformSettingsEnabled:
          type: boolean
          description: When true, platform settings in the translation editor are enabled
        qaHighlightsEnabled:
          type: boolean
          description: When true, QA highlights are enabled
        rejectJobs:
          type: boolean
          description: >-
            When true, the user may reject jobs. When false, this is ambiguous
            between two independent gates: (a) the organization's plan/edition
            does not entitle job rejection at all, which only Phrase can change,
            or (b) the plan entitles it but this linguist's own "may reject
            jobs" permission is off, which that organization's project manager
            or admin can enable on the user's profile. This field alone does not
            indicate which gate is blocking.
        strictTermPropertyEnabled:
          type: boolean
          description: When true, Strict term base matching is enabled
        styleGuidesEnabled:
          type: boolean
          description: When true, style guides are enabled
        tbCustomFieldsEnabled:
          type: boolean
          description: When true, term base custom fields are enabled
        tweI18nEnabled:
          type: boolean
          description: When true, internationalization in the translation editor is enabled
      description: Feature toggles enabled for the user and their organization
    OrganizationReferenceV1:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        uid:
          type: string
    IdmUserReferenceV1:
      type: object
      properties:
        email:
          type: string
          description: Email address of the user
        firstName:
          type: string
          description: First name of the user
        id:
          type: string
          description: Unique numeric identifier of the user
        lastName:
          type: string
          description: Last name of the user
        role:
          type: string
          description: Role of the user in the organization
          enum:
            - SYS_ADMIN
            - SYS_ADMIN_READ
            - ADMIN
            - PROJECT_MANAGER
            - LINGUIST
            - GUEST
            - SUBMITTER
            - PORTAL_MEMBER
            - BOT
        suiteIdentifier:
          type: string
        uid:
          type: string
          description: Unique string identifier of the user
        userName:
          type: string
          description: Username of the user
  securitySchemes:
    ApiToken:
      description: >-
        Get a token from `auth/login` [endpoint](#operation/login) and then pass
        it in the `Authorization` HTTP header in every subsequent API call. For
        more information visit our [help
        center](https://support.phrase.com/hc/en-us/articles/5709662181404-API-Authentication-TMS-#token-0-0).
      type: apiKey
      name: Authorization
      in: header
    OAuth2:
      description: >-
        A standard OAuth 2.0 authorization code flow. For more information visit
        our [help
        center](https://support.phrase.com/hc/en-us/articles/5709662181404-API-Authentication-TMS-#oauth-2-0-0-1).
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://cloud.memsource.com/web/oauth/authorize
          tokenUrl: https://cloud.memsource.com/web/oauth/token
          scopes: {}

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.