# logout

Initiates the bot logout sequence.

```csharp
// See "LSL Helper Functions" page for this function
smartbotsAPI("logout", []);
```

```snippet http-api-variables-OmJyUigTgO
```

```snippet http-api-input-basic-parameters-5FcVlaJbq0 action="logout"
```

```snippet http-api-output-JAwUcmg7i7
```

# Comments

This command instructs the bot to begin the logout process.  
It is always successful — you won’t receive an error even if the bot is already logged out.