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

# User login

`POST /auth/login`

Authenticate user with email and password

## Request body

- LoginRequest
  - `email` string, email, required
  - `password` string, password, required

## Response `200`

Login successful

- AuthResponse
  - `success` boolean, required
  - `msg` string, required
  - `data` object — Response payload (varies by endpoint)
    - `token` string — JWT access token
    - `user` User
      - `_id` string
      - `firstName` string
      - `lastName` string
      - `email` string, email
      - `role` string[]
      - `profileImage` string — URL or path to profile image
      - `isActive` boolean
      - `teamId` string
      - `createdAt` string, date-time
      - `updatedAt` string, date-time

## Other responses

- `401` — Authentication required or token invalid
- `422` — Validation failed
- `500` — Internal server error

## Changes

- **2025-08-11** `db719f9e3d34` — 2 breaking, 3 warning, 10 info
  - request body became required
  - the response's body type changed from `object` to no type for status `200`
  - removed the optional property `data` from the response with the `200` status
  - removed the optional property `msg` from the response with the `200` status
  - …11 more
- **2025-04-20** `b97ec6888b3c` — 7 breaking, 2 warning, 7 info
  - the `password` request property format changed from no format to `password`
  - the response property `data` became optional for the status `200`
  - the response property `msg` became optional for the status `200`
  - the response property `msg` became optional for the status `500`
  - …12 more

[Change history](https://skmtc.dev/bluewave-labs/apis/checkmate-api/changes/auth/login/post.md)

---

[API](https://skmtc.dev/bluewave-labs/apis/checkmate-api.md) · [All operations](https://skmtc.dev/bluewave-labs/apis/checkmate-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bluewave-labs/checkmate-api/revisions/8453661342e1/schema)
