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

# User login

`POST /users/login`

## Request body

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

## Response `200`

Login successful

- object
  - `message` string
  - `data` object
    - `user` User
      - `id` integer
      - `name` string
      - `surname` string
      - `email` string, email
      - `role_id` integer
      - `organization_id` integer
      - `created_at` string, date-time
      - `updated_at` string, date-time
    - `token` string

## Changes

- **2025-09-11** `cfa9ae933c17` — 5 warning, 11 info
  - removed the optional property `data/accessToken` from the response with the `200` status
  - removed the optional property `data/refreshToken` from the response with the `200` status
  - removed the optional property `data/user/last_login` from the response with the `200` status
  - removed the optional property `data/user/password_hash` from the response with the `200` status
  - …12 more
- **2025-08-31** `0d2ea2f98fd4` — 1 info
  - removed the non-success response with the status `429`
- **2025-08-29** `af64a3a9480e` — 5 breaking, 7 info
  - the request property `email` became required
  - the request property `password` became required
  - the `email` request property format changed from no format to `email`
  - the `password` request property format changed from no format to `password`
  - …8 more
- **2025-01-22** `ed48b7196725` — 1 warning, 12 info
  - the optional response header `Set-Cookie` removed for the status `202`
  - api operation id `loginUser` removed and replaced with ``
  - api tag `users` added
  - api tag `Users` removed
  - …9 more

[Change history](https://skmtc.dev/verifywise-ai/apis/verifywise-api/changes/users/login/post.md)

---

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