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

# POST /login

`POST /login`

用户登录

## Request body

- V1LoginRequest — LoginRequest 表示登录请求
  - `username` string
  - `password` string

## Response `200`

OK

- V1LoginResponse — LoginResponse 表示登录响应
  - `token` string

## Changes

- **2024-12-10** `2cd7efbd4c2e` — 1 info
  - endpoint added
- **2024-04-03** `ae599f31f558` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/onexstack/apis/miniblog-api/changes/login/post.md)

---

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