---
title: "Login with JSON"
method: POST
path: "/api/login"
tags: ["Authorization"]
---

# Login with JSON

`POST /api/login`

Login with name and password using JSON body.

## Request body

- RoleLogin
  - `name` string, required
  - `password` string, required
  - `redirect` string, nullable

## Response `200`

Request fulfilled, document follows

- object

## Other responses

- `400` — Bad request syntax or unsupported method

## Changes

- **2025-08-08** `696ee83009f6` — 1 info
  - api operation id `ApiLoginLoginRoleJson` removed and replaced with `03_login_json`
- **2025-08-06** `82f6f0eba091` — 4 warning, 8 info
  - removed the optional property `KODOSUMI_API_KEY` from the response with the `200` status
  - removed the optional property `error` from the response with the `400` status
  - removed the optional property `id` from the response with the `200` status
  - removed the optional property `name` from the response with the `200` status
  - …8 more

[Change history](https://skmtc.dev/masumi-network/apis/kodosumi-api/changes/api/login/post.md)

---

[API](https://skmtc.dev/masumi-network/apis/kodosumi-api.md) · [All operations](https://skmtc.dev/masumi-network/apis/kodosumi-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/masumi-network/kodosumi-api/revisions/2092ce918678/schema)
