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

# Get authenticated user



## OpenAPI

````yaml https://app.getkontext.io/openapi.json get /v1/me
openapi: 3.1.0
info:
  title: Kontext API
  version: 1.0.0
  description: >-
    API documentation for Kontext — generated from Zod schemas in
    @kontext/api-contract
servers:
  - url: https://getkontext.io/api
    description: Production
  - url: http://localhost:5173/api
    description: Development
security:
  - BearerAuth: []
paths:
  /v1/me:
    get:
      tags:
        - Users
      summary: Get authenticated user
      responses:
        '200':
          description: Authenticated user profile
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  firstName:
                    type: string
                  lastName:
                    type: string
                  email:
                    type:
                      - string
                      - 'null'
                  emailVerified:
                    type: boolean
                  preferences:
                    type: object
                    additionalProperties: {}
                  avatarType:
                    type:
                      - string
                      - 'null'
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                required:
                  - id
                  - firstName
                  - lastName
                  - email
                  - emailVerified
                  - preferences
                  - avatarType
                  - createdAt
                  - updatedAt
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  issues:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                        message:
                          type: string
                        path:
                          type: array
                          items:
                            anyOf:
                              - type: string
                              - type: number
                      required:
                        - code
                        - message
                required:
                  - error
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key (ktx_key_*) or session Bearer token

````