---
title: "Account Authentication"
method: POST
path: "/public/login"
tags: ["Auth API"]
---

# Account Authentication

`POST /public/login`

Admin Login API

## Request body

- UserRequest
  - `userId` string
  - `userNm` string
  - `userPw` string
  - `email` string
  - `phone` string
  - `deptNm` string
  - `rankNm` string
  - `expireDt` string, date-time, required
  - `useYn` string
  - `myRoles` integer[], required

## Response `200`

OK

- ChamomileResponseUserResponse
  - `code` integer
  - `message` string
  - `data` UserResponse
    - `accessToken` string
    - `username` string
    - `deptNm` string
    - `latestLoginDate` string, date-time
    - `latestLoginIp` string
    - `roles` string[]
    - `menus` object
    - `testNumber` integer
    - `changePwYn` boolean
    - `message` string

## Other responses

- `500` — Internal Server Error

---

[API](https://skmtc.dev/lotteinnovate/apis/openapi-definition.md) · [All operations](https://skmtc.dev/lotteinnovate/apis/openapi-definition/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lotteinnovate/openapi-definition/revisions/4bf1c3086c66/schema)
