---
title: "Reset a user password"
method: POST
path: "/v2/users/{username}/reset_password"
tags: ["Users"]
---

# Reset a user password

`POST /v2/users/{username}/reset_password`

Resets the password for a user.

## Path parameters

- `username` string, required

## Headers

- `Request-Timeout` integer
- `Request-Timeout-Millis` integer

## Response `200`

A password reset email was sent to the user.

- object
  - `one_time_code` string — A one-time code to reset the password. This is optional, and is only populated for some platform deployments.
  - `one_time_code_link` string — The link where the user enters the `one_time_code`. This is optional, and is only populated for some platform deployments.

## Other responses

- `403` — Permissions do not allow resetting the user password.
- `404` — User not found.

---

[API](https://skmtc.net/vectara/apis/vectara-rest-api-v2.md) · [All operations](https://skmtc.net/vectara/apis/vectara-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vectara/vectara-rest-api-v2/versions/e85040b266cc/schema)
