unifi_console_session_status
Check UniFi console connection, account permissions, session cookie lifetime, CSRF rotation, and safety settings. Use before retrying calls blocked by auth or permission errors.
Instructions
Check the connection and report which account the server runs as, what it may do, and session facts.
Logs in if needed. Reports the controller version, the account's permissions, the session cookie's lifetime and whether the CSRF token has rotated, plus the server's safety settings. Use it first when a call fails with a permission or authentication error.
Returns JSON: {"ok", "controller": {...}, "account": {...}, "session": {...}, "server": {...}}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |