API Reference

Change Password

Change the current user’s password for the active session.

Endpoint

Method
POST
Path
/api/v2/change-password

Request Body

{
  "session_id": "dc1ce...a3a75",
  "old_password": "old",
  "new_password": "new"
}

Success Response

{
  "success": true,
  "message": "Password changed successfully"
}

Error Codes

  • MISSING_FIELDS
  • PASSWORD_REUSED
  • INVALID_SESSION
  • SESSION_EXPIRED
  • PASSWORD_CHANGE_UNAVAILABLE
  • USER_NOT_FOUND
  • USER_BANNED
  • USER_SUSPENDED
  • INVALID_PASSWORD
  • INTERNAL