This method allows to log out of the API and invalidates the current authentication token.

    This method is available to users of any type. Permissions to call the method can be revoked in user role settings. See for more information.

    Parameters

    (boolean) Returns if the user has been logged out successfully.

    Examples

    Logging out

    Log out from the API.

    Response:

    1. "jsonrpc": "2.0",
    2. "id": 1

    Source

    CUser::login() in ui/include/classes/api/services/CUser.php.