Miscellaneous API operations

Reading logs

Use logs to fetch backend disk logs for a scope/entity. The return value is the raw backend response dict and currently includes at least {"result": [...]}.

# Workspace logs
logs_response = session.logs("workspace")
entries = logs_response.get("result", [])

# Filtered and sorted logs with optional pagination controls
logs_response = session.logs(
    "workspace",
    search="error",
    sort="date",
    sort_reverse=True,
    pagination_page=1,
    pagination_limit=50,
)

App and daemon status

Check whether the accsyn app or daemon (user server) is running on the same machine under the same user:

session.app_is_running()

session.daemon_is_running()

Returns True if the GUI/server is running, False if offline, None if not installed or detected.