# Request a password reset

`POST /api/v1/auth/password-reset`

Emails a password reset link, valid for an hour, to the account with this address if there is one. The answer is the same either way.

Sign-in: none.

Section: Sign-in and account. Operation id in openapi.json: `request_password_reset`.

## Request body

Required: yes.

`application/json`: ResetRequestInput

| Field | Type | Required | Description |
|---|---|---|---|
| `email` | string | yes |  |

## Responses

Errors are `application/problem+json` (`Problem`); branch on `type`.

### 202

Accepted.

`application/json`: SignupAccepted

| Field | Type | Required | Description |
|---|---|---|---|
| `checkEmail` | boolean | yes | Always true: the same answer whether or not the address already had an account. |

### 400

Bad Request.

- `request.malformed`: the body or a parameter is not of the expected shape
- `auth.credentials_conflict`: the request carries both a session cookie and a token

### 401

Unauthorized.

- `token.invalid`: the token is malformed, unknown, revoked or expired, or its creator left the workspace

### 403

Forbidden.

- `request.origin_mismatch`, `request.header_required`: a changing request with a session comes from another site or lacks `X-Monitorly-Request: 1`

### 413

Payload Too Large.

- `request.too_large`: the body is larger than 256 KiB

### 422

Unprocessable Entity.

- `field.required`, `field.too_long`, `field.invalid`: a field breaks a rule; `errors` points at it

### 429

Too Many Requests.

- `auth.rate_limited`: too many failed attempts; `Retry-After` in seconds

Schemas named above are listed with their fields in [the schema list](https://docs.monitorly.cloud/api/reference/schemas.md).
