---
title: "Register a code to reset the password"
method: POST
path: "/users/password-reset-code"
tags: ["Users"]
---

# Register a code to reset the password

`POST /users/password-reset-code`

## Request

- Base URL: `https://artifacthub.io/api/v1`
- URL: `https://artifacthub.io/api/v1/users/password-reset-code`
- Auth: none declared
- TypeScript: <https://skmtc.dev/artifacthub/apis/artifact-hub/docs/users/password-reset-code/post.ts> (a function with typed inputs; its response is checked against the schema)

Register a code to reset the password

## Request body

- object
  - `email` string, required

## Response `201`

The request has succeeded and has led to the creation of a resource

## Other responses

- `400`: The request sent was not valid
- `429`: The user has sent too many requests in a given amount of time
- `500`: The server encountered an unexpected condition that prevented it from fulfilling the request

---

[API](https://skmtc.dev/artifacthub/apis/artifact-hub.md) - [All operations](https://skmtc.dev/artifacthub/apis/artifact-hub/llms.txt) - [OpenAPI document](https://skmtc.dev/artifacthub/apis/artifact-hub/revisions/d2e9234264b1?raw)
