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

# Login with password

> Authenticate admin user with username and password



## OpenAPI

````yaml docs/api-reference/general-monitoring.yaml post /admins/login-with-password
openapi: 3.0.3
info:
  title: Zochil General Monitoring API
  description: >
    Zochil platform general monitoring API for system administration.


    ## Authentication


    All endpoints require authentication via the `access-token` header obtained
    through login.
  version: 1.0.0
  contact:
    name: Zochil Support
    email: info@zochil.mn
  license:
    name: Proprietary
servers:
  - url: https://api.zochil.io/v3/monitoring
    description: API server
security:
  - AccessToken: []
tags:
  - name: Authentication
    description: Admin authentication and session management
  - name: Admin Management
    description: System administrator management
  - name: Profile
    description: Admin profile management
paths:
  /admins/login-with-password:
    post:
      tags:
        - Authentication
      summary: Login with password
      description: Authenticate admin user with username and password
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - username
                - password
              properties:
                username:
                  type: string
                  description: Admin username
                password:
                  type: string
                  description: Admin password
            example:
              username: admin-username
              password: admin-password
      responses:
        '200':
          description: Successful authentication
          content:
            application/json:
              schema:
                type: object
                properties:
                  access_token:
                    type: string
                    description: Access token for authenticated requests
        '401':
          description: Invalid credentials
      security: []
components:
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token

````