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

# Authentication

> Authenticate a user using username and password.

## Description

Authenticate a user using username and password.

This endpoint is served from the **authentication service**, separate from the main API.

***

## Request

### Body (multipart/form-data)

| Field    | Type   | Required | Description            |
| -------- | ------ | -------- | ---------------------- |
| username | string | yes      | User username or email |
| password | string | yes      | User password          |

***

## Example Request

```bash id="auth_curl" theme={null}
curl --location 'https://zeus.ask-wire.com/auth/otp/login' \
--form 'username="user@example.com"' \
--form 'password="your_password"'
```


## OpenAPI

````yaml openapi.json POST /auth/otp/login
openapi: 3.1.0
info:
  title: Properties API
  version: 1.0.0
  description: Public properties and foreclosure listings API
servers:
  - url: https://pandora.ask-wire.com
    description: Main API (Properties)
  - url: https://zeus.ask-wire.com
    description: Auth API
security:
  - bearerAuth: []
paths:
  /auth/otp/login:
    post:
      summary: Login
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - username
                - password
              properties:
                username:
                  type: string
                  example: user@example.com
                password:
                  type: string
                  example: your_password
      responses:
        '200':
          description: OK
      security: []
      servers:
        - url: https://zeus.ask-wire.com
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````