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

# Get current user

> Verify your credentials and retrieve the authenticated user and tenant. Identifiers are opaque strings. Name and email may be null.



## OpenAPI

````yaml /openapi.json get /users/me
openapi: 3.0.3
info:
  title: Effective API
  version: 2.0.0
  description: The public Effective REST API. Authenticate using an Effective API key.
servers:
  - url: https://effectiveai.app/api/v2
    description: Production
security:
  - bearerAuth: []
paths:
  /users/me:
    get:
      tags:
        - Users
      summary: Get current user
      description: >-
        Verify your credentials and retrieve the authenticated user and tenant.
        Identifiers are opaque strings. Name and email may be null.
      operationId: getCurrentUser
      responses:
        '200':
          description: The authenticated identity. This response must not be cached.
          headers:
            Cache-Control:
              schema:
                type: string
                enum:
                  - no-store
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CurrentUser'
        '400':
          description: Invalid request context.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2Error'
        '401':
          description: Missing, invalid, expired, or revoked credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2Error'
        '403':
          description: The credential does not permit this operation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2Error'
        '500':
          description: An unexpected server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2Error'
      security:
        - bearerAuth: []
components:
  schemas:
    V2CurrentUser:
      type: object
      properties:
        id:
          type: string
          description: Opaque identifier of the authenticated user.
          example: '123'
        tenantId:
          type: string
          description: Tenant selected by the credential.
          example: acme
        name:
          type: string
          nullable: true
          description: Display name, when available.
        email:
          type: string
          nullable: true
          description: Email address, when available.
      required:
        - id
        - tenantId
        - name
        - email
      additionalProperties: false
    V2Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable explanation of the failure.
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Effective API key. Send Authorization: Bearer sk-eai-...'

````

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