---
title: "POST /login"
method: POST
path: "/login"
---

# POST /login

`POST /login`

## Request

- Base URL: `https://localhost:3000`
- URL: `https://localhost:3000/login`
- Auth: none declared

This API is used to login into auth server.
<table>
  <tr>
  <th>Field</th>
  <th>Possible values</th>
  <th>Mandatory/Optional</th>
  </tr>
  <tr>
    <td>username</td>
    <td>admin</td>
    <td>Mandatory</td>
   </tr>
   <tr>
    <td>password</td>
    <td>pass123</td>
    <td>Mandatory</td>
  </tr>
</table>

## Request body

- object

## Response `200`

OK

- object

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/litmuschaos/apis/litmus-portal-authentication-api.md) - [All operations](https://skmtc.dev/litmuschaos/apis/litmus-portal-authentication-api/llms.txt) - [OpenAPI document](https://skmtc.dev/litmuschaos/apis/litmus-portal-authentication-api/revisions/2c5524204359?raw)
