---
title: "Set a new password with a reset code"
method: POST
path: "/auth/action/reset-password"
tags: ["Auth Pages"]
---

# Set a new password with a reset code

`POST /auth/action/reset-password`

## Request

- Base URL: `https://api.hiyd.ai`
- URL: `https://api.hiyd.ai/auth/action/reset-password`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Used by the hosted reset page. Consumes the code.

## Request body

- object
  - `oobCode` string, required
  - `newPassword` string, required

## Response `200`

Password updated

## Other responses

- `400`: Invalid/expired code, or the password was rejected (weak_password)
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/hiyd/apis/hiyd-backend-api.md) - [All operations](https://skmtc.dev/hiyd/apis/hiyd-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hiyd/apis/hiyd-backend-api/revisions/23598d347e1b?raw)
