---
title: "Reset user password"
method: POST
path: "/users/reset-password"
tags: ["Users"]
---

# Reset user password

`POST /users/reset-password`

Resets the password for a user identified by email. Protected by
resetPasswordMiddleware (validates reset token/permission).
Password is hashed via bcrypt before storage.

## Request body

- object
  - `email` string, email, required
  - `newPassword` string, password, required — Must be 8+ chars with uppercase, lowercase, and digit

## Response `202`

Password reset successfully

- object
  - `message` string
  - `data` UserSafe — User object with password_hash excluded
    - `id` integer, required
    - `name` string, required
    - `surname` string, required
    - `email` string, email, required
    - `role_id` integer, required — 1=Admin, 2=Reviewer, 3=Editor, 4=Auditor, 5=SuperAdmin
    - `created_at` string, date-time, required
    - `last_login` string, date-time
    - `updated_at` string, date-time
    - `is_demo` boolean
    - `organization_id` integer, nullable
    - `profile_photo_id` integer, nullable

## Other responses

- `400` — Validation error (weak password)
- `403` — Business logic error
- `404` — User not found
- `500` — Internal server error

## Changes

- **2026-07-13** `d86d0bf8bebe` — 3 info
  - api operation id `resetPassword` was added
  - api tag `Users` added
  - api tag `Users - Password` removed
- **2026-07-13** `655215fe8c81` — 3 info
  - api operation id `resetPassword` removed and replaced with ``
  - api tag `Users - Password` added
  - api tag `Users` removed
- **2026-06-22** `5878ba786a89` — 3 info
  - api operation id `resetPassword` was added
  - api tag `Users` added
  - api tag `Users - Password` removed
- **2026-04-21** `55cdc040840c` — 4 breaking, 7 info
  - added the new required request property `email`
  - added the new required request property `newPassword`
  - request body became required
  - removed the success response with the status `201`
  - …7 more
- **2026-04-05** `c419b1e72a65` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/verifywise-ai/apis/verifywise-api/changes/users/reset-password/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/d86d0bf8bebe/schema)
