Yes, unfortunately the old API (with husarnet login ) is retired and docs are not updated yet sorry for the inconvenience, we will try to update the docs soon.
To use the Dashboard API now, you need to flip the switch in Husarnet Dashboard and use root account on your machine. There is also more manual method (manually obtaining JWT to use with curl) possible. Refer to this documentation: Husarnet Dashboard API documentation and manual | Husarnet
I tried with my own login and with sudo, so I don’t think that the root access is the source of the problem.
I tried to look at my Husarnet dashboard, but can’t see any “switch” (settings only include my “Account information” and “Network settings”) and link to Beta Dashboard seems dead!
Alright, first you need to claim a device. You will see “copy claim code” button at the top of the Dashboard. You execute sudo husarnet claim <CLAIM_CODE> (or sudo husarnet join <CLAIM_CODE>, one is the alias of the other
And the device should appear in “Devices” section of your Dashboard. If you open the Device details, you will see “AccountAdmin” switch. This enables the CLI API.