v1 demo

Reset user password with token

Reset user password using the token from password reset email.

This endpoint:
- Verifies the reset token validity
- Updates user password
- Sends password changed notification email
- Invalidates the reset token after use

**Authentication**: Requires valid reset token (no user authentication)
post/v1/demo/reset-password

Request body

tokenstring required

Password reset token

new_passwordstring required

New password (minimum 6 characters)

confirm_passwordstring required

Confirmation of new password

Example request

{
  "confirm_password": "newpassword456",
  "new_password": "newpassword456",
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
}

Response

Successful Response

messagestring required

Success message

timestampstring date-time required

When the password was reset

Example response

{
  "message": "Password reset successfully",
  "timestamp": "2023-01-01T12:00:00Z"
}

Changes