Platform API reference

Platform API · Me

post/v1/me/passwordAuth

Change the password while signed in

Checks the current password (it counts towards the same lockout as sign-in), applies the password policy to the new one, and changes it. Every other session of the account is signed out; this one stays signed in. A "password changed" email goes to the account address. An account with two-step sign-in must also have confirmed it is you in the last 10 minutes (`STEP_UP_REQUIRED`). Takes no `Idempotency-Key`: the body carries passwords, which a replay cache must not hold; a retry after a lost response answers 401 because the current password has already changed.

Request body

current_password*string · password

The password the account signs in with today.

new_password*string · password

The new password: at least 10 characters with a digit or symbol, not a common password, and not the current one (the platform password policy).

Response · 204

Password changed; other sessions signed out; email sent.

Example

Request

POST https://api.platform-auth.productcraft.co/v1/me/password
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json

{
  "current_password": "string",
  "new_password": "string"
}