---
title: "Forgot Password"
method: POST
path: "/api/auth/forgot-password"
tags: ["auth"]
---

# Forgot Password

`POST /api/auth/forgot-password`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/auth/forgot-password`
- Auth: none declared

Initiate a password reset.

Generates a single-use token (1 hour expiry), stores its SHA-256 hash,
and emails a reset link. Always returns ok to prevent email enumeration.
Skips silently for OAuth-only users.

## Request body

- ForgotPasswordRequest: Request schema for initiating a password reset.
  - `email` string, email, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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