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

# Get the current user

> The authenticated user and the workspaces the credential can act on. An API key lists only its own workspace. Works before a workspace is chosen, so `teamId` is null for a user-scoped token that names none while the user belongs to several.



## OpenAPI

````yaml /openapi.json get /v1/me
openapi: 3.1.0
info:
  title: TestArmy API
  version: 1.0.0
  description: >-
    AI-powered browser automation API for QA testing. Automate web testing
    workflows using natural language prompts.
servers:
  - url: https://tester.army/api
    description: Production API server
security: []
paths:
  /v1/me:
    get:
      tags:
        - Account
      summary: Get the current user
      description: >-
        The authenticated user and the workspaces the credential can act on. An
        API key lists only its own workspace. Works before a workspace is
        chosen, so `teamId` is null for a user-scoped token that names none
        while the user belongs to several.
      parameters:
        - schema:
            type: string
            description: Workspace id or slug to act on, for user-scoped tokens.
          required: false
          description: Workspace id or slug to act on, for user-scoped tokens.
          name: x-testerarmy-team
          in: header
      responses:
        '200':
          description: The current user and their workspaces
          content:
            application/json:
              schema:
                type: object
                properties:
                  user:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      email:
                        type: string
                      name:
                        type:
                          - string
                          - 'null'
                    required:
                      - id
                      - email
                      - name
                  teamId:
                    type:
                      - string
                      - 'null'
                    format: uuid
                  teams:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        name:
                          type: string
                        slug:
                          type:
                            - string
                            - 'null'
                        role:
                          type: string
                      required:
                        - id
                        - name
                        - slug
                        - role
                required:
                  - user
                  - teamId
                  - teams
        '400':
          description: Bad Request - Invalid input parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error code or type
                  message:
                    type: string
                    description: Human-readable error message
                required:
                  - error
                  - message
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error code or type
                  message:
                    type: string
                    description: Human-readable error message
                required:
                  - error
                  - message
        '429':
          description: Too Many Requests - Usage limit exceeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error code or type
                  message:
                    type: string
                    description: Human-readable error message
                required:
                  - error
                  - message
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error code or type
                  message:
                    type: string
                    description: Human-readable error message
                required:
                  - error
                  - message
        '504':
          description: Gateway Timeout - Test execution exceeded time limit
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error code or type
                  message:
                    type: string
                    description: Human-readable error message
                required:
                  - error
                  - message
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        API key authentication using Bearer token format. The CLI's `ta auth`
        access tokens are also accepted; because they name a user rather than a
        workspace, a user in several workspaces selects one with the
        `x-testerarmy-team` header (workspace id or slug).

````

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