> ## 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.

# Authenticate User



## OpenAPI

````yaml POST /api/v2/admin/login
openapi: 3.1.0
info:
  title: Urban Soft Admin API
  version: 1.0.0
servers:
  - url: https://faisalshop.mvp-apps.ae
  - url: http://localhost:3000
security: []
paths:
  /api/v2/admin/login:
    post:
      summary: Admin login
      operationId: adminLogin
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - email
                - password
              properties:
                email:
                  type: string
                  format: email
                  example: faisal@b-seenapp.com
                password:
                  type: string
                  format: password
                  example: ••••••••
      responses:
        '200':
          description: Auth success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthResponse'
              examples:
                success:
                  value:
                    token: 322|gA24v1gzIJme72431KwUqyvPRotoRrIpMNAy3mXhe513ff48
                    user:
                      id: 17
                      tenant_id: null
                      name: Faisal KC
                      email: faisal@b-seenapp.com
                      phone: null
                      country_code: null
                      email_verified_at: null
                      phone_verified_at: null
                      user_type: CONSUMER
                      photo_url: null
                      theme: system
                      language: en
                      timezone: null
                      email_marketing: '0'
                      email_system: '1'
                      push_system: '1'
                      is_active: '1'
                      created_at: '2025-09-17T10:16:45.000000Z'
                      updated_at: '2025-09-17T10:16:45.000000Z'
        '400':
          description: Invalid credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalid:
                  value:
                    error: Sorry!, You have entered a wrong email or password
        '429':
          description: Too many attempts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    AuthResponse:
      type: object
      required:
        - token
        - user
      properties:
        token:
          type: string
          description: Bearer token
        user:
          $ref: '#/components/schemas/User'
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
    User:
      type: object
      properties:
        id:
          type: integer
        tenant_id:
          type:
            - integer
            - 'null'
        name:
          type: string
        email:
          type: string
          format: email
        phone:
          type:
            - string
            - 'null'
        country_code:
          type:
            - string
            - 'null'
        email_verified_at:
          type:
            - string
            - 'null'
          format: date-time
        phone_verified_at:
          type:
            - string
            - 'null'
          format: date-time
        user_type:
          type: string
          example: CONSUMER
        photo_url:
          type:
            - string
            - 'null'
          format: uri
        theme:
          type: string
          example: system
        language:
          type: string
          example: en
        timezone:
          type:
            - string
            - 'null'
        email_marketing:
          type: string
          example: '0'
        email_system:
          type: string
          example: '1'
        push_system:
          type: string
          example: '1'
        is_active:
          type: string
          example: '1'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time

````