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

# /login

`POST /login`

## Request body

- object
  - `email` string, email, required
  - `password` string, required

## Response `200`

Successful response

- object

## Other responses

- `422` — Validation failed
- `500` — Server error

## Changes

> 36 revisions in range; 2 not diffed.

- **2026-08-24** `fea859ba34de` — 3 breaking
  - request body became required
  - the request property `email` became required
  - the request property `password` became required
- **2026-08-08** `eca3457f01d0` — 2 breaking, 1 warning
  - the `password` request property's minLength was increased from `0` to `1`
  - the `email` request property type/format changed from `string`/`` to `string`/`email`
  - the `password` request property's maxLength was set to `255`
- **2026-08-08** `5605cf1dc74f` — 1 info
  - added optional request body
- **2026-07-03** `e9611e87a70b` — 1 info
  - endpoint added
- **2025-04-08** `bab32bb1d3ec` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/stacksjs/apis/stacks-api/changes/login/post.md)

---

[API](https://skmtc.dev/stacksjs/apis/stacks-api.md) · [All operations](https://skmtc.dev/stacksjs/apis/stacks-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stacksjs/stacks-api/revisions/fea859ba34de/schema)
