Getting secret code for Drayton Wiser

I recently purchases a new Drayton wise for my heating system. Trying to get secret code so I can connect to Homes assistant.
After pressing setup button on the wiser I can find the IP address. I try the following code in my browser “http://192.168.1.174/secret” but get the following response “{“Error”:“Unauthorized”}”
How do I find the code so I can connect my Wise to Home assistant.
I also tried the following code in powershell “Invoke-RestMethod -Method Get -UseBasicParsing -Uri http://192.168.1.174/secret/” but got an error message “(401) Unauthorized”.

Does any know how I can connect my Drayton Wiser to Home assistant?