API Reference
Change Password
Change the current user’s password for the active session.
Endpoint
Method
POSTPath
/api/v2/change-passwordRequest Body
{
"session_id": "dc1ce...a3a75",
"old_password": "old",
"new_password": "new"
}
Success Response
{
"success": true,
"message": "Password changed successfully"
}
Error Codes
MISSING_FIELDSPASSWORD_REUSEDINVALID_SESSIONSESSION_EXPIREDPASSWORD_CHANGE_UNAVAILABLEUSER_NOT_FOUNDUSER_BANNEDUSER_SUSPENDEDINVALID_PASSWORDINTERNAL