Skip to main content
Keep your account secure by rotating your password regularly. The PATCH /users/me/password endpoint verifies your identity with your current password before accepting the change, enforces the platform’s complexity policy on the new password, and automatically revokes every other active session so you remain the sole authenticated party.

Change Password

Supply your current password and a new password in the request body. The new password must differ from your current one and must satisfy all complexity requirements listed below. PATCH /users/me/password
Before sending this request, call GET /auth/csrf-token to obtain a CSRF token and include it in the x-csrf-token header.

Request Body

string
required
Your existing account password. The request is rejected with 401 if this value does not match what is stored on the account.
string
required
The replacement password. Must be at least 8 characters and include all of the following:
  • One uppercase letter (A–Z)
  • One lowercase letter (a–z)
  • One digit (0–9)
  • One special character (e.g. !, @, #, $, %)
Must differ from current_password. Pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_]).{8,}/

Response — 200 OK

After a successful password change, all sessions except your current one are immediately revoked. Users on other devices will need to log in again. If you want to sign out of the current device as well, call DELETE /auth/session immediately after this request.

Error Responses

Returned when:
  • current_password or new_password is missing from the body.
  • new_password does not meet the complexity requirements.
  • new_password is identical to current_password.
Returned when current_password does not match the stored credential, or when the session cookie is missing or expired.
Password change attempts are rate-limited. Check the Retry-After response header for the number of seconds to wait before retrying.