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

# Get User Context

> Fetches the user context for the current authenticated session



## OpenAPI

````yaml GET /api/v1/mgt/user-context
openapi: 3.1.0
info:
  title: Xenia Team API - User Context
  version: 1.0.0
  description: >-
    Returns the full user context including permissions, workspace info, role,
    features, and usage limits
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/mgt/user-context:
    get:
      tags:
        - Users
      summary: Get User Context
      description: Fetches the user context for the current authenticated session
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/UserContext'
                  message:
                    type: string
                  extra_meta:
                    type: object
        '401':
          description: Unauthorized - Missing or invalid authentication
        '500':
          description: Internal Server Error
      security:
        - clientKey: []
          clientSecret: []
components:
  schemas:
    UserContext:
      type: object
      properties:
        id:
          type: string
          format: uuid
        fullName:
          type: string
        emailId:
          type: string
        phoneNo:
          type: string
        isVerified:
          type: boolean
        timezone:
          type: string
        role:
          type: object
          properties:
            id:
              type: string
              format: uuid
            title:
              type: string
            isActive:
              type: boolean
            homepage:
              type: object
              properties:
                mobile:
                  type: string
                web:
                  type: string
                dashboard:
                  type: object
        workspace:
          type: object
          properties:
            id:
              type: string
              format: uuid
            name:
              type: string
            timezone:
              type: string
            currency:
              type: string
            status:
              type: string
            subscriptionPlan:
              type: string
        permissions:
          type: object
          additionalProperties:
            type: boolean
        features:
          type: object
          additionalProperties:
            type: boolean
        usageLimits:
          type: object
          properties:
            teams:
              type: integer
            users:
              type: integer
            assets:
              type: integer
            workOrders:
              type: integer
            uploadLimit:
              type: integer
            operationsTemplates:
              type: integer
            templateSubmissions:
              type: integer
            recurringScheduledWork:
              type: integer
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
      description: Client API key for authentication
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret
      description: Client secret for authentication

````