---
title: "POST /api/login"
method: POST
path: "/api/login"
tags: ["Login API"]
---

# POST /api/login

`POST /api/login`

login

## Query parameters

- `clientId` string, required
- `responseType` string, required
- `redirectUri` string, required
- `scope` string
- `state` string
- `nonce` string
- `code_challenge_method` string
- `code_challenge` string

## Request body

- ControllersAuthForm

## Response `200`

The Response object

## Changes

- **2022-06-21** `d521546afb23` — 3 breaking, 1 warning, 5 info
  - added the new required `query` request parameter `clientId`
  - added the new required `query` request parameter `redirectUri`
  - added the new required `query` request parameter `responseType`
  - deleted the `query` request parameter `oAuthParams`
  - …5 more
- **2021-12-03** `1f675248e9cb` — 2 info
  - api tag `Login API` added
  - api tag `api` removed

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

---

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