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

# Who am I

> Returns the identity of the principal the request is authenticated as: full name, email,
current company, role, and caller type. For x-api-key requests the identity is the
token's owner (the key acts as the owner) and the type is reported as apiuser.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/auth/whoami
openapi: 3.0.0
info:
  title: Engini DeveloperAPI
  version: v1
  description: 'Merged public developer API spec: Identity + WorkflowApi.'
servers:
  - url: https://api.engini.io
security:
  - Bearer: []
  - ApiKey: []
paths:
  /v1/auth/whoami:
    get:
      tags:
        - Auth
      summary: Who am I
      description: >-
        Returns the identity of the principal the request is authenticated as:
        full name, email,

        current company, role, and caller type. For x-api-key requests the
        identity is the

        token's owner (the key acts as the owner) and the type is reported as
        apiuser.
      operationId: Auth_WhoAmI
      parameters: []
      responses:
        '200':
          description: The acting principal's identity.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhoAmIResponse'
        '400':
          description: Bad request — malformed body or invalid parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden — the caller lacks access to the resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found — the resource does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Too many requests — rate limit exceeded.
          headers:
            Retry-After:
              description: Number of seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error — an unexpected error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - Bearer: []
        - ApiKey: []
components:
  schemas:
    WhoAmIResponse:
      type: object
      description: >-
        Identity of the principal a Developer API request is authenticated as,
        returned by

        GET /api/DeveloperAPI/v1/auth/whoami. For x-api-key requests the
        identity is the

        token's owner (the key acts as the owner) and UserType is "apiuser".
      additionalProperties: false
      required:
        - userType
      properties:
        fullName:
          type: string
          description: The acting user's full name.
          nullable: true
        email:
          type: string
          description: The acting user's email address.
          nullable: true
        currentCompany:
          type: string
          description: Display name of the account/company the request is scoped to.
          nullable: true
        role:
          type: string
          description: Role within the current company (e.g. "Admin", "Member").
          nullable: true
        userType:
          type: string
          description: >-
            Caller type: "apiuser" (x-api-key), "anonymous" (deleted profile),
            or "user".
    ErrorResponse:
      type: object
      description: >-
        Unified error envelope for every non-200 response from
        /api/DeveloperAPI/v1/*.

        See applications-tools-spec.md §"Error envelope".
      additionalProperties: false
      required:
        - errorCode
        - message
        - requestId
        - timestamp
        - path
      properties:
        errorCode:
          type: string
          description: Machine-readable error code identifying the failure.
        message:
          type: string
          description: Human-readable error message.
        requestId:
          type: string
          description: Identifier of the request, for support/correlation.
        timestamp:
          type: string
          description: Timestamp when the error occurred (ISO 8601).
        path:
          type: string
          description: Request path that produced the error.
        details:
          type: array
          description: Per-field validation details, when applicable.
          nullable: true
          items:
            $ref: '#/components/schemas/ErrorDetail'
    ErrorDetail:
      type: object
      description: A single field-level error detail within an ErrorResponse.
      additionalProperties: false
      required:
        - field
        - issue
      properties:
        field:
          type: string
          description: Name of the field the issue relates to.
        issue:
          type: string
          description: Description of the issue with the field.
  securitySchemes:
    Bearer:
      type: http
      description: Enter your JWT token
      scheme: bearer
      bearerFormat: JWT
    ApiKey:
      type: apiKey
      description: >-
        Opaque Developer API key (prefix `eng_`). Authenticates as the key's
        owner and resolves the account automatically.
      name: x-api-key
      in: header

````