---
title: "login"
method: POST
path: "/login"
tags: ["auth"]
---

# login

`POST /login`

## Request body

- object
  - `username` string, required
  - `password` string, required

## Response `200`

login is success

## Other responses

- `400` — login is failed

## Changes

- **2026-07-17** `d1ec4100a3ee` — 1 info
  - added the non-success response with the status `400`
- **2022-04-12** `26e961440320` — 2 info
  - api tag `auth` added
  - added the success response with the status `200`
- **2022-04-12** `abbac25b5edd` — 1 breaking, 2 info
  - removed the success response with the status `200`
  - api tag `auth` removed
  - removed the non-success response with the status `400`

[Change history](https://skmtc.dev/wednesday-solutions/apis/node-mongo-express-documentation/changes/login/post.md)

---

[API](https://skmtc.dev/wednesday-solutions/apis/node-mongo-express-documentation.md) · [All operations](https://skmtc.dev/wednesday-solutions/apis/node-mongo-express-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wednesday-solutions/node-mongo-express-documentation/revisions/d1ec4100a3ee/schema)
