Skip to content
Changelog

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

ws://localhost:4455/rpc
{
"jsonrpc": "2.0",
"id": 1,
"method": "auth.login",
"params": {
"password": "…"
}
}

Result

{ "authenticated": true }

events.subscribe · app.version