---
title: "Log out"
---

> Documentation Index
> Fetch the complete documentation index at: https://simplcron.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Log out

Path: Simplcron API › Session

`POST /auth/logout`

Revoke the current console session.

## Authentication

Requires one of the following:

- `browserSession`, apiKey, in cookie
- `localBrowserSession`, apiKey, in cookie

## Code samples

### cURL

```bash
curl --request POST \
  --url '<base-url>/auth/logout' \
  --cookie '__Host-simplcron_session=<__Host-simplcron_session>'
```

### TypeScript

```typescript
const url = '<base-url>/auth/logout';
const options = {
  method: 'POST',
  headers: {cookie: '__Host-simplcron_session=<__Host-simplcron_session>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/auth/logout"

headers = {"cookie": "__Host-simplcron_session=<__Host-simplcron_session>"}

response = requests.post(url, headers=headers)

print(response.text)
```

## Responses

### 204

Session ended


Source: https://simplcron.dev/docs/api/logout/index.md
