---
title: "Reset Password"
method: POST
path: "/api/auth/reset-password"
tags: ["auth"]
---

# Reset Password

`POST /api/auth/reset-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/reset-password`
- Auth: none declared

Complete a password reset using a valid token.

Verifies the token's SHA-256 hash, expiry, and that it hasn't been used.
On success, updates the password and invalidates all of the user's other
outstanding tokens.

## Request body

- ResetPasswordRequest: Request schema for completing a password reset.
  - `token` string, required
  - `password` string, required

## Response `200`

Successful Response

- UserResponse: Response schema for user data (excludes password hash).
  - `id` string, required
  - `email` string, required
  - `name` string, nullable
  - `image` string, nullable

## 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)
