auth.login
Signs this connection in with the remote API's password.
JSON-RPC 2.0not for scripts
Send it first, unless you connected with the password as Authorization: Bearer <password>. Until then every other method answers unauthorized (-32001). The password is shown in Settings › Remote API.
Parameters
- passwordstringrequiredThe remote API's password.
Result
- authenticatedbooleantrue.
Errors
Unauthorized (-32001) for a wrong password.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "auth.login", "params": { "password": "…" }}lightair call auth.login '{"password":"…"}'Result
{ "authenticated": true }