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

# Log in

`POST /auth/login`

## Request body

- object
  - `email` string, email, required
  - `password` string, required

## Response `200`

OK

- object
  - `success` true, required
  - `msg` string, required
  - `data` AuthPayload, required
    - `user` User, required
      - `_id` string, required
      - `firstName` string, required
      - `lastName` string, required
      - `email` string, required
      - `role` string[], required
      - `teamId` string
      - `profileImage` string, nullable
      - `createdAt` string, required
      - `updatedAt` string, required
    - `token` string

## Other responses

- `401` — Invalid credentials
- `500` — Internal server error

## Changes

- **2026-05-01** `39082d385dda` — 2 breaking, 4 warning, 8 info
  - the `password` request property's minLength was increased from `0` to `1`
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - removed the optional property `details` from the response with the `401` status
  - removed the optional property `details` from the response with the `500` status
  - …10 more
- **2025-08-11** `db719f9e3d34` — 2 breaking, 3 warning, 10 info
  - request body became required
  - the response's body type/format changed from `object`/`` to ``/`` 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 type/format changed from `string`/`` to `string`/`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/a9ac59e12c59/schema)
