I've enabled the API Key by going to:
Settings > Web Interface - API Settings > Configure app password
And copying the generated key. Then use it to send an HTTP request from my local machine:
❯ curl -k -X POST "http://192.168.0.250:20720/api/auth" --data '{"password":"Knv809sYM3Xz64dWKmDtmyEv14BIv94g/NFpF41UlWo="}'
Expected Behaviour:
{
"session": {
"valid": true,
"totp": false,
"sid": "vFA+EP4MQ5JJvJg+3Q2Jnw=",
"csrf": "Ux87YTIiMOf/GKCefVIOMw=",
"validity": 300
},
"took": 0.0002
}
Actual Behaviour:
{
"session": {
"valid": true,
"totp": false,
"sid": null,
"validity": -1,
"message": "password incorrect"
},
"took": 3.8623809814453125e-05
}%
Debug Token:
I cannot find the option in the web interface to generate the debug token.