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

# Sign out

Destroy the current session and clear the cookie.

` POST /api/user/signout `

Sign out

## Servers

- ` https://motioness.com ` — Production

## Authentication

The operation accepts these alternatives. Schemes within one alternative are required together.

### Alternative 1

- ` sessionCookie `: ` apiKey `

  - Credential: ` better-auth.session_token ` in ` cookie `

  - Session cookie set by /api/user/signin, /api/user/signup, or the OAuth callback. Required for all authenticated endpoints.

## Responses

### ` 200 ` — Signed out

Content type: ` application/json `

- ` value `: type ` object `

  - Required fields: ` ok `

  - ` ok `: type ` boolean `

## Request examples

### cURL

```curl
curl -X POST 'https://motioness.com/api/user/signout'
```

### JavaScript

```javascript
const response = await fetch('https://motioness.com/api/user/signout', {
  method: 'POST'
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

response = requests.post('https://motioness.com/api/user/signout')
print(response.json())
```