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

# Who Am I

## Overview

Get information about the currently authenticated user, including their tenants and roles.

## Authorization

* User must be authenticated with a valid Bearer token

## Response Details

Returns:

* User profile information
* List of tenants the user belongs to
* Role in each tenant
* Activity status

## Use Cases

* Verify authentication status
* Get user's tenant list for tenant selection
* Check user's role before performing actions
* Display user profile information

## Example Usage

```bash theme={null}
curl -X GET \
  https://faisalshop.mvp-apps.ae/api/v2/admin/who_am_i \
  -H 'Authorization: Bearer YOUR_TOKEN'
```

```javascript theme={null}
const response = await axios.get(
  '/api/v2/admin/who_am_i',
  {
    headers: {
      Authorization: `Bearer ${token}`
    }
  }
);

console.log('User:', response.data.user);
console.log('Tenants:', response.data.tenants);
```


## OpenAPI

````yaml GET /api/v2/admin/who_am_i
openapi: 3.1.0
info:
  title: Urban Things API
  description: Multi-tenant e-commerce platform API
  version: 2.0.0
  contact:
    email: info@faisalkc.com
servers:
  - url: https://faisalshop.mvp-apps.ae
    description: Production server
  - url: http://localhost:3000
    description: Development server
security:
  - bearerAuth: []
paths:
  /api/v2/admin/who_am_i:
    get:
      tags:
        - Authentication
      summary: Get current user info
      responses:
        '200':
          description: User information with tenants
          content:
            application/json:
              schema:
                type: object
                properties:
                  user:
                    $ref: '#/components/schemas/User'
                  tenants:
                    type: array
                    items:
                      $ref: '#/components/schemas/TenantMembership'
components:
  schemas:
    User:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        email:
          type: string
          format: email
        user_type:
          type: string
        is_active:
          type: string
        created_at:
          type: string
          format: date-time
    TenantMembership:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        role:
          type: string
          enum:
            - ADMIN
            - MEMBER
        is_active:
          type: boolean
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````