---
title: "Set or change the signed-in user's password"
method: POST
path: "/auth/account/password"
tags: ["Auth"]
---

# Set or change the signed-in user's password

`POST /auth/account/password`

## Request

- Base URL: `https://api.run402.com`
- URL: `https://api.run402.com/auth/account/password`
- Auth: API key in cookie `__Host-Http-r402_session`

Hosted browser-session route (cookie + double-submit CSRF + same-origin). Freshness step-up: the session must have authenticated within 5 minutes else R402_AUTH_FRESHNESS_REQUIRED. new_password is at most 72 bytes. On success the user's OTHER sessions are rotated.

## Request body

- object
  - `new_password` string, required

## Response `200`

{ ok, sessions_revoked }

- object

## Other responses

- `401`: Missing or invalid authentication. Run402-originated JSON bodies use the canonical ErrorEnvelope.

---

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